|
Gaudi Framework, version v22r2 |
| Home | Generated: Tue May 10 2011 |
AIDA implementation for 1 D profiles using ROOT TProfile. More...
#include <P1D.h>


Public Member Functions | |
| Profile1D () | |
| Default Constructor. | |
| Profile1D (TProfile *rep) | |
| Standard constructor with initialization. The histogram representation will be adopted. | |
| virtual | ~Profile1D () |
| Destructor. | |
| virtual bool | fill (double x, double y, double weight=1.) |
| Fill the Profile1D with a value and the corresponding weight. | |
| virtual bool | setBinContents (int i, int entries, double height, double error, double spread, double centre) |
| virtual const CLID & | clID () const |
| Retrieve reference to class defininition identifier. | |
Static Public Member Functions | |
| static const CLID & | classID () |
| Retrieve reference to class definition structure (static access) | |
Private Types | |
| typedef AIDA::IAnnotation | IAnnotation |
Private Member Functions | |
| void | init (const std::string &title, bool initialize_axis=true) |
AIDA implementation for 1 D profiles using ROOT TProfile.
Definition at line 20 of file P1D.h.
typedef AIDA::IAnnotation Gaudi::Profile1D::IAnnotation [private] |
| Gaudi::Profile1D::Profile1D | ( | ) |
| Gaudi::Profile1D::Profile1D | ( | TProfile * | rep ) |
| virtual Gaudi::Profile1D::~Profile1D | ( | ) | [inline, virtual] |
| static const CLID& Gaudi::Profile1D::classID | ( | ) | [inline, static] |
Retrieve reference to class definition structure (static access)
Retrieve Pointer to class definition structure.
Reimplemented from DataObject.
Definition at line 36 of file P1D.h.
{ return CLID_ProfileH; }
| virtual const CLID& Gaudi::Profile1D::clID | ( | ) | const [inline, virtual] |
Retrieve reference to class defininition identifier.
Reimplemented from DataObject.
Definition at line 35 of file P1D.h.
{ return Gaudi::Profile1D::classID(); }
| bool Gaudi::Profile1D::fill | ( | double | x, |
| double | y, | ||
| double | weight = 1. |
||
| ) | [virtual] |
| void Gaudi::Profile1D::init | ( | const std::string & | title, |
| bool | initialize_axis = true |
||
| ) | [private] |
Definition at line 84 of file P1D.cpp.
{
m_classType = "IProfile1D";
setTitle(title);
setName(title);
if ( initialize_axis ) {
axis().initialize(m_rep->GetXaxis(),false);
}
//m_rep->SetErrorOption("s");
m_rep->SetDirectory(0);
m_sumEntries = 0;
}
| bool Gaudi::Profile1D::setBinContents | ( | int | i, |
| int | entries, | ||
| double | height, | ||
| double | error, | ||
| double | spread, | ||
| double | centre | ||
| ) | [virtual] |
Definition at line 96 of file P1D.cpp.
{
m_rep->SetBinEntries(rIndex(i), entries );
// set content takes in root height * entries
m_rep->SetBinContent(rIndex(i), height*entries );
// set error takes sqrt of bin sum(w*y**2)
double sumwy2Bin = ( spread*spread + height*height )*entries;
m_rep->SetBinError(rIndex(i), sqrt(sumwy2Bin) );
m_sumEntries += entries;
// not very efficient (but do evey bin since root cannot figure out by himself)
m_rep->SetEntries(m_sumEntries);
return true;
}