Belle II Software development
ECLCalDigit Class Reference

Class to store calibrated ECLDigits: ECLCalDigits. More...

#include <ECLCalDigit.h>

Inheritance diagram for ECLCalDigit:
RelationsInterface< BASE >

Public Types

enum  StatusBit {
  c_IsEnergyCalibrated = 1 << 0 ,
  c_IsTimeCalibrated = 1 << 1 ,
  c_IsTimeResolutionCalibrated = 1 << 2 ,
  c_IsFailedFit = 1 << 3 ,
  c_IsFailedTimeResolution = 1 << 4 ,
  c_IsCalibrated = c_IsEnergyCalibrated | c_IsTimeCalibrated | c_IsTimeResolutionCalibrated ,
  c_OnlineFitQuality1 = 1 << 5 ,
  c_OnlineFitQuality2 = 1 << 6 ,
  c_OnlineFitQuality3 = 1 << 7 ,
  c_OnlineFitQuality0 = 1 << 8
}
 status enumerator More...
 

Public Member Functions

 ECLCalDigit ()
 default constructor for ROOT
 
void setCellId (int CellId)
 Set Cell ID.
 
void setEnergy (double Energy)
 Set Calibrated Energy.
 
void setTwoComponentTotalEnergy (double Energy)
 Set two component total energy.
 
void setTwoComponentHadronEnergy (double Energy)
 Set two component hadron energy.
 
void setTwoComponentDiodeEnergy (double Energy)
 Set two component diode energy.
 
void setTwoComponentChi2 (double chi)
 Set two component chi2.
 
void setTwoComponentSavedChi2 (ECLDsp::TwoComponentFitType FitTypeIn, double input)
 Set two comp chi2 for a fit type see enum TwoComponentFitType in ECLDsp.h for description of fit types.
 
void setTwoComponentFitType (ECLDsp::TwoComponentFitType ft)
 Set two component fit type.
 
void setTime (double Time)
 Set Calibrated Time.
 
void setTimeResolution (double TimeResolution)
 Set Calibrated Time Resolution.
 
void setStatus (unsigned short int status)
 Set Calibration Status (overwrites previously set bits)
 
void addStatus (unsigned short int bitmask)
 Add Calibration Status.
 
void removeStatus (unsigned short int bitmask)
 Remove Calibration Status.
 
int getCellId () const
 Get Cell ID.
 
double getEnergy () const
 Get Calibrated Energy.
 
double getTwoComponentTotalEnergy () const
 Get Two Component calibrated Total Energy.
 
double getTwoComponentHadronEnergy () const
 Get Two Component calibrated hadron component Energy.
 
double getTwoComponentDiodeEnergy () const
 Get Two Component calibrated diode component Energy.
 
double getTwoComponentChi2 () const
 Get two componnent chi2.
 
double getTwoComponentSavedChi2 (ECLDsp::TwoComponentFitType FitTypeIn) const
 get two comp chi2 for a fit type see enum TwoComponentFitType in ECLDsp.h for description of fit types.
 
ECLDsp::TwoComponentFitType getTwoComponentFitType () const
 Get two componnent fit type.
 
double getTime () const
 Get Calibrated Time.
 
double getTimeResolution () const
 Get Calibrated Time Resolution.
 
bool hasStatus (unsigned short int bitmask) const
 Get Calibration Status.
 
bool isCalibrated () const
 Get Boolean Calibration Status.
 
bool isEnergyCalibrated () const
 Get Boolean Energy Calibration Status.
 
bool isTimeCalibrated () const
 Get Boolean Time Calibration Status.
 
bool isTimeResolutionCalibrated () const
 Get Boolean Time Resolution Calibration Status.
 
bool isFailedFit () const
 Get Boolean Fit Failed Status.
 
bool isTimeResolutionFailed () const
 Get Boolean time resolution failed status.
 
bool isOnlineFitQuality1 () const
 Get Boolean online fit quality 1.
 
bool isOnlineFitQuality2 () const
 Get Boolean online fit quality 2.
 
bool isOnlineFitQuality3 () const
 Get Boolean online fit quality 3.
 
bool isOnlineFitQuality0 () const
 Get Boolean online fit quality 0.
 
void addRelationTo (const RelationsInterface< BASE > *object, float weight=1.0, const std::string &namedRelation="") const
 Add a relation from this object to another object (with caching).
 
void addRelationTo (const TObject *object, float weight=1.0, const std::string &namedRelation="") const
 Add a relation from this object to another object (no caching, can be quite slow).
 
void copyRelations (const RelationsInterface< BASE > *sourceObj)
 Copies all relations of sourceObj (pointing from or to sourceObj) to this object (including weights).
 
template<class TO >
RelationVector< TO > getRelationsTo (const std::string &name="", const std::string &namedRelation="") const
 Get the relations that point from this object to another store array.
 
template<class FROM >
RelationVector< FROM > getRelationsFrom (const std::string &name="", const std::string &namedRelation="") const
 Get the relations that point from another store array to this object.
 
template<class T >
RelationVector< T > getRelationsWith (const std::string &name="", const std::string &namedRelation="") const
 Get the relations between this object and another store array.
 
template<class TO >
TO * getRelatedTo (const std::string &name="", const std::string &namedRelation="") const
 Get the object to which this object has a relation.
 
template<class FROM >
FROM * getRelatedFrom (const std::string &name="", const std::string &namedRelation="") const
 Get the object from which this object has a relation.
 
template<class T >
T * getRelated (const std::string &name="", const std::string &namedRelation="") const
 Get the object to or from which this object has a relation.
 
template<class TO >
std::pair< TO *, float > getRelatedToWithWeight (const std::string &name="", const std::string &namedRelation="") const
 Get first related object & weight of relation pointing to an array.
 
template<class FROM >
std::pair< FROM *, float > getRelatedFromWithWeight (const std::string &name="", const std::string &namedRelation="") const
 Get first related object & weight of relation pointing from an array.
 
template<class T >
std::pair< T *, float > getRelatedWithWeight (const std::string &name="", const std::string &namedRelation="") const
 Get first related object & weight of relation pointing from/to an array.
 
virtual std::string getName () const
 Return a short name that describes this object, e.g.
 
virtual std::string getInfoHTML () const
 Return a short summary of this object's contents in HTML format.
 
std::string getInfo () const
 Return a short summary of this object's contents in raw text format.
 
std::string getArrayName () const
 Get name of array this object is stored in, or "" if not found.
 
int getArrayIndex () const
 Returns this object's array index (in StoreArray), or -1 if not found.
 

Protected Member Functions

TClonesArray * getArrayPointer () const
 Returns the pointer to the raw DataStore array holding this object (protected since these arrays are easy to misuse).
 

Private Member Functions

 ClassDef (ECLCalDigit, 7)
 ClassDef.
 

Private Attributes

int m_CellId
 Cell ID.
 
double m_Time
 Calibrated Time.
 
double m_TimeResolution
 Calibrated Time resolution.
 
double m_Energy
 Calibrated Energy.
 
unsigned short int m_Status
 Calibration and Fit Status.
 
double m_TwoComponentTotalEnergy
 Calibrated Two Component Total Energy.
 
double m_TwoComponentHadronEnergy
 Calibrated Hadron Component Energy.
 
double m_TwoComponentDiodeEnergy
 Calibrated Diode Component Energy.
 
double m_TwoComponentChi2
 Two Component chi2.
 
double m_TwoComponentSavedChi2 [3]
 Two comp chi2 for each fit tried in reconstruction.
 
ECLDsp::TwoComponentFitType m_TwoComponentFitType
 offline fit hypothesis.
 
DataStore::StoreEntrym_cacheDataStoreEntry
 Cache of the data store entry to which this object belongs.
 
int m_cacheArrayIndex
 Cache of the index in the TClonesArray to which this object belongs.
 

Detailed Description

Class to store calibrated ECLDigits: ECLCalDigits.

Definition at line 23 of file ECLCalDigit.h.

Member Enumeration Documentation

◆ StatusBit

enum StatusBit

status enumerator

Definition at line 26 of file ECLCalDigit.h.

26 {
27 c_IsEnergyCalibrated = 1 << 0,
28 c_IsTimeCalibrated = 1 << 1,
29 c_IsTimeResolutionCalibrated = 1 << 2,
30 c_IsFailedFit = 1 << 3,
31 c_IsFailedTimeResolution = 1 << 4,
32 c_IsCalibrated = c_IsEnergyCalibrated | c_IsTimeCalibrated | c_IsTimeResolutionCalibrated,
33 // constants for the online Fit Quality Flags. For description of these Flags, see https://confluence.desy.de/pages/viewpage.action?spaceKey=BI&title=ECL+Quality+flag
34 c_OnlineFitQuality1 = 1 << 5,
35 c_OnlineFitQuality2 = 1 << 6,
36 c_OnlineFitQuality3 = 1 << 7,
37 c_OnlineFitQuality0 = 1 << 8,
38 };

Constructor & Destructor Documentation

◆ ECLCalDigit()

ECLCalDigit ( )
inline

default constructor for ROOT

< Cell ID

< Calibrated Time

< Calibrated Time Resolution

< Calibrated Energy

< Calibration Status

< Offline Two Component Total Energy

< Offline Two Component Hadron Energy

< Offline Two Component Diode Energy

< Offline Two Component chi2

< Offline two component chi2 FT=0

< Offline two component chi2 FT=1

< Offline two component chi2 FT=2

< Offline Two Component fit type

Definition at line 41 of file ECLCalDigit.h.

42 {
43 m_CellId = 0;
44 m_Time = 0;
46 m_Energy = 0;
47 m_Status = 0;
56 }
ECLDsp::TwoComponentFitType m_TwoComponentFitType
offline fit hypothesis.
Definition: ECLCalDigit.h:236
double m_TwoComponentChi2
Two Component chi2.
Definition: ECLCalDigit.h:234
double m_Energy
Calibrated Energy.
Definition: ECLCalDigit.h:229
double m_TimeResolution
Calibrated Time resolution.
Definition: ECLCalDigit.h:228
int m_CellId
Cell ID.
Definition: ECLCalDigit.h:226
double m_TwoComponentHadronEnergy
Calibrated Hadron Component Energy.
Definition: ECLCalDigit.h:232
double m_TwoComponentDiodeEnergy
Calibrated Diode Component Energy.
Definition: ECLCalDigit.h:233
double m_TwoComponentTotalEnergy
Calibrated Two Component Total Energy.
Definition: ECLCalDigit.h:231
unsigned short int m_Status
Calibration and Fit Status.
Definition: ECLCalDigit.h:230
double m_Time
Calibrated Time.
Definition: ECLCalDigit.h:227
double m_TwoComponentSavedChi2[3]
Two comp chi2 for each fit tried in reconstruction.
Definition: ECLCalDigit.h:235
@ poorChi2
All offline fit attempts were greater than chi2 threshold.
Definition: ECLDsp.h:30

Member Function Documentation

◆ addRelationTo() [1/2]

void addRelationTo ( const RelationsInterface< BASE > *  object,
float  weight = 1.0,
const std::string &  namedRelation = "" 
) const
inlineinherited

Add a relation from this object to another object (with caching).

Parameters
objectThe object to which the relation should point.
weightThe weight of the relation.
namedRelationAdditional name for the relation, or "" for the default naming

Definition at line 142 of file RelationsObject.h.

143 {
144 if (object)
146 object, object->m_cacheDataStoreEntry, object->m_cacheArrayIndex, weight, namedRelation);
147 }
void addRelation(const TObject *fromObject, StoreEntry *&fromEntry, int &fromIndex, const TObject *toObject, StoreEntry *&toEntry, int &toIndex, float weight, const std::string &namedRelation)
Add a relation from an object in a store array to another object in a store array.
Definition: DataStore.cc:492
static DataStore & Instance()
Instance of singleton Store.
Definition: DataStore.cc:54
DataStore::StoreEntry * m_cacheDataStoreEntry
Cache of the data store entry to which this object belongs.
int m_cacheArrayIndex
Cache of the index in the TClonesArray to which this object belongs.

◆ addRelationTo() [2/2]

void addRelationTo ( const TObject *  object,
float  weight = 1.0,
const std::string &  namedRelation = "" 
) const
inlineinherited

Add a relation from this object to another object (no caching, can be quite slow).

Parameters
objectThe object to which the relation should point.
weightThe weight of the relation.
namedRelationAdditional name for the relation, or "" for the default naming

Definition at line 155 of file RelationsObject.h.

156 {
157 StoreEntry* toEntry = nullptr;
158 int toIndex = -1;
159 DataStore::Instance().addRelation(this, m_cacheDataStoreEntry, m_cacheArrayIndex, object, toEntry, toIndex, weight, namedRelation);
160 }

◆ addStatus()

void addStatus ( unsigned short int  bitmask)
inline

Add Calibration Status.

Definition at line 109 of file ECLCalDigit.h.

109{ m_Status |= bitmask; }

◆ copyRelations()

void copyRelations ( const RelationsInterface< BASE > *  sourceObj)
inlineinherited

Copies all relations of sourceObj (pointing from or to sourceObj) to this object (including weights).

Useful if you want to make a complete copy of a StoreArray object to make modifications to it, but retain all information on linked objects.

Note: this only works if sourceObj inherits from the same base (e.g. RelationsObject), and only for related objects that also inherit from the same base.

Definition at line 170 of file RelationsObject.h.

171 {
172 if (!sourceObj)
173 return;
174 auto fromRels = sourceObj->getRelationsFrom<RelationsInterface<BASE>>("ALL");
175 for (unsigned int iRel = 0; iRel < fromRels.size(); iRel++) {
176 fromRels.object(iRel)->addRelationTo(this, fromRels.weight(iRel));
177 }
178
179 auto toRels = sourceObj->getRelationsTo<RelationsInterface<BASE>>("ALL");
180 for (unsigned int iRel = 0; iRel < toRels.size(); iRel++) {
181 this->addRelationTo(toRels.object(iRel), toRels.weight(iRel));
182 }
183 }
void addRelationTo(const RelationsInterface< BASE > *object, float weight=1.0, const std::string &namedRelation="") const
Add a relation from this object to another object (with caching).

◆ getArrayIndex()

int getArrayIndex ( ) const
inlineinherited

Returns this object's array index (in StoreArray), or -1 if not found.

Definition at line 385 of file RelationsObject.h.

386 {
388 return m_cacheArrayIndex;
389 }
bool findStoreEntry(const TObject *object, StoreEntry *&entry, int &index)
Find an object in an array in the data store.
Definition: DataStore.cc:398

◆ getArrayName()

std::string getArrayName ( ) const
inlineinherited

Get name of array this object is stored in, or "" if not found.

Definition at line 377 of file RelationsObject.h.

◆ getArrayPointer()

TClonesArray * getArrayPointer ( ) const
inlineprotectedinherited

Returns the pointer to the raw DataStore array holding this object (protected since these arrays are easy to misuse).

Definition at line 418 of file RelationsObject.h.

419 {
422 return nullptr;
424 }
TClonesArray * getPtrAsArray() const
Return ptr cast to TClonesArray.
Definition: StoreEntry.cc:83

◆ getCellId()

int getCellId ( ) const
inline

Get Cell ID.

Returns
cell ID

Definition at line 118 of file ECLCalDigit.h.

118{ return m_CellId; }

◆ getEnergy()

double getEnergy ( ) const
inline

Get Calibrated Energy.

Returns
Calibrated Energy

Definition at line 123 of file ECLCalDigit.h.

123{ return m_Energy; }

◆ getInfo()

std::string getInfo ( ) const
inlineinherited

Return a short summary of this object's contents in raw text format.

Returns the contents of getInfoHTML() while translating line-breaks etc.

Note
: You don't need to implement this function (it's not virtual), getInfoHTML() is enough.

Definition at line 370 of file RelationsObject.h.

371 {
373 }
virtual std::string getInfoHTML() const
Return a short summary of this object's contents in HTML format.
std::string htmlToPlainText(const std::string &html)
See RelationsObject::getInfo()

◆ getInfoHTML()

virtual std::string getInfoHTML ( ) const
inlinevirtualinherited

Return a short summary of this object's contents in HTML format.

Reimplement this in your own class to provide useful output for display or debugging purposes. For example, you might do something like:

std::stringstream out;
out << "<b>PDG</b>: " << m_pdg << "<br>";
out << "<b>Covariance Matrix</b>: " << HTML::getString(getCovariance5()) << "<br>";
return out.str();
std::string getString(const TMatrixFBase &matrix, int precision=2, bool color=true)
get HTML table representing a matrix.
Definition: HTML.cc:24
See also
Particle::getInfoHTML() for a more complex example.
HTML for some utility functions.
Use getInfo() to get a raw text version of this output.

Reimplemented in Particle, Cluster, MCParticle, PIDLikelihood, SoftwareTriggerResult, Track, TrackFitResult, TRGSummary, and RecoTrack.

Definition at line 362 of file RelationsObject.h.

362{ return ""; }

◆ getName()

virtual std::string getName ( ) const
inlinevirtualinherited

Return a short name that describes this object, e.g.

pi+ for an MCParticle.

Reimplemented in Particle, MCParticle, and SpacePoint.

Definition at line 344 of file RelationsObject.h.

344{ return ""; }

◆ getRelated()

T * getRelated ( const std::string &  name = "",
const std::string &  namedRelation = "" 
) const
inlineinherited

Get the object to or from which this object has a relation.

Template Parameters
TThe class of objects to or from which the relation points.
Parameters
nameThe name of the store array to or from which the relation points. If empty the default store array name for class T will be used. If the special name "ALL" is given all store arrays containing objects of type T are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
The first related object or a null pointer.

Definition at line 278 of file RelationsObject.h.

279 {
281 T::Class(), name, namedRelation).object);
282 }
@ c_BothSides
Combination of c_FromSide and c_ToSide.
Definition: DataStore.h:79
Belle2::RelationEntry getRelationWith(ESearchSide searchSide, const TObject *object, StoreEntry *&entry, int &index, const TClass *withClass, const std::string &withName, const std::string &namedRelation)
Get the first relation between an object and another object in a store array.
Definition: DataStore.cc:597
TObject * object
Pointer to the object.
Definition: RelationEntry.h:32

◆ getRelatedFrom()

FROM * getRelatedFrom ( const std::string &  name = "",
const std::string &  namedRelation = "" 
) const
inlineinherited

Get the object from which this object has a relation.

Template Parameters
FROMThe class of objects from which the relation points.
Parameters
nameThe name of the store array from which the relation points. If empty the default store array name for class FROM will be used. If the special name "ALL" is given all store arrays containing objects of type FROM are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
The first related object or a null pointer.

Definition at line 263 of file RelationsObject.h.

264 {
266 m_cacheArrayIndex, FROM::Class(), name, namedRelation).object);
267 }
@ c_FromSide
Return relations/objects pointed from (to a given object).
Definition: DataStore.h:77

◆ getRelatedFromWithWeight()

std::pair< FROM *, float > getRelatedFromWithWeight ( const std::string &  name = "",
const std::string &  namedRelation = "" 
) const
inlineinherited

Get first related object & weight of relation pointing from an array.

Template Parameters
FROMThe class of objects from which the relation points.
Parameters
nameThe name of the store array from which the relation points. If empty the default store array name for class FROM will be used. If the special name "ALL" is given all store arrays containing objects of type FROM are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
Pair of first related object and the relation weight, or (NULL, 1.0) if none found.

Definition at line 314 of file RelationsObject.h.

316 {
318 FROM::Class(), name, namedRelation);
319 return std::make_pair(static_cast<FROM*>(entry.object), entry.weight);
320 }

◆ getRelatedTo()

TO * getRelatedTo ( const std::string &  name = "",
const std::string &  namedRelation = "" 
) const
inlineinherited

Get the object to which this object has a relation.

Template Parameters
TOThe class of objects to which the relation points.
Parameters
nameThe name of the store array to which the relation points. If empty the default store array name for class TO will be used. If the special name "ALL" is given all store arrays containing objects of type TO are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
The first related object or a null pointer.

Definition at line 248 of file RelationsObject.h.

249 {
251 TO::Class(), name, namedRelation).object);
252 }
@ c_ToSide
Return relations/objects pointed to (from a given object).
Definition: DataStore.h:78

◆ getRelatedToWithWeight()

std::pair< TO *, float > getRelatedToWithWeight ( const std::string &  name = "",
const std::string &  namedRelation = "" 
) const
inlineinherited

Get first related object & weight of relation pointing to an array.

Template Parameters
TOThe class of objects to which the relation points.
Parameters
nameThe name of the store array to which the relation points. If empty the default store array name for class TO will be used. If the special name "ALL" is given all store arrays containing objects of type TO are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
Pair of first related object and the relation weight, or (NULL, 1.0) if none found.

Definition at line 297 of file RelationsObject.h.

299 {
301 TO::Class(), name, namedRelation);
302 return std::make_pair(static_cast<TO*>(entry.object), entry.weight);
303 }

◆ getRelatedWithWeight()

std::pair< T *, float > getRelatedWithWeight ( const std::string &  name = "",
const std::string &  namedRelation = "" 
) const
inlineinherited

Get first related object & weight of relation pointing from/to an array.

Template Parameters
TThe class of objects to or from which the relation points.
Parameters
nameThe name of the store array to or from which the relation points. If empty the default store array name for class T will be used. If the special name "ALL" is given all store arrays containing objects of type T are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
Pair of first related object and the relation weight, or (NULL, 1.0) if none found.

Definition at line 331 of file RelationsObject.h.

333 {
335 T::Class(), name, namedRelation);
336 return std::make_pair(static_cast<T*>(entry.object), entry.weight);
337 }

◆ getRelationsFrom()

RelationVector< FROM > getRelationsFrom ( const std::string &  name = "",
const std::string &  namedRelation = "" 
) const
inlineinherited

Get the relations that point from another store array to this object.

Template Parameters
FROMThe class of objects from which the relations point.
Parameters
nameThe name of the store array from which the relations point. If empty the default store array name for class FROM will be used. If the special name "ALL" is given all store arrays containing objects of type FROM are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
A vector of relations.

Definition at line 212 of file RelationsObject.h.

214 {
216 m_cacheArrayIndex, FROM::Class(), name, namedRelation));
217 }
RelationVector< T > getRelationsWith(const std::string &name="", const std::string &namedRelation="") const
Get the relations between this object and another store array.

◆ getRelationsTo()

RelationVector< TO > getRelationsTo ( const std::string &  name = "",
const std::string &  namedRelation = "" 
) const
inlineinherited

Get the relations that point from this object to another store array.

Template Parameters
TOThe class of objects to which the relations point.
Parameters
nameThe name of the store array to which the relations point. If empty the default store array name for class TO will be used. If the special name "ALL" is given all store arrays containing objects of type TO are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
A vector of relations.

Definition at line 197 of file RelationsObject.h.

198 {
200 m_cacheArrayIndex, TO::Class(), name, namedRelation));
201 }

◆ getRelationsWith()

RelationVector< T > getRelationsWith ( const std::string &  name = "",
const std::string &  namedRelation = "" 
) const
inlineinherited

Get the relations between this object and another store array.

Relations in both directions are returned.

Template Parameters
TThe class of objects to or from which the relations point.
Parameters
nameThe name of the store array to or from which the relations point. If empty the default store array name for class T will be used. If the special name "ALL" is given all store arrays containing objects of type T are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
A vector of relations.

Definition at line 230 of file RelationsObject.h.

231 {
233 m_cacheArrayIndex, T::Class(), name, namedRelation));
234 }

◆ getTime()

double getTime ( ) const
inline

Get Calibrated Time.

Returns
Calibrated Time

Definition at line 163 of file ECLCalDigit.h.

163{ return m_Time; }

◆ getTimeResolution()

double getTimeResolution ( ) const
inline

Get Calibrated Time Resolution.

Returns
Calibrated Time Resolution

Definition at line 168 of file ECLCalDigit.h.

168{ return m_TimeResolution; }

◆ getTwoComponentChi2()

double getTwoComponentChi2 ( ) const
inline

Get two componnent chi2.

Returns
two componnent chi2

Definition at line 143 of file ECLCalDigit.h.

143{ return m_TwoComponentChi2; }

◆ getTwoComponentDiodeEnergy()

double getTwoComponentDiodeEnergy ( ) const
inline

Get Two Component calibrated diode component Energy.

Returns
Two Component calibrated diode component Energy

Definition at line 138 of file ECLCalDigit.h.

◆ getTwoComponentFitType()

ECLDsp::TwoComponentFitType getTwoComponentFitType ( ) const
inline

Get two componnent fit type.

Returns
two componnent fit type

Definition at line 158 of file ECLCalDigit.h.

158{ return m_TwoComponentFitType; }

◆ getTwoComponentHadronEnergy()

double getTwoComponentHadronEnergy ( ) const
inline

Get Two Component calibrated hadron component Energy.

Returns
Two Component calibrated hadron component Energy

Definition at line 133 of file ECLCalDigit.h.

◆ getTwoComponentSavedChi2()

double getTwoComponentSavedChi2 ( ECLDsp::TwoComponentFitType  FitTypeIn) const
inline

get two comp chi2 for a fit type see enum TwoComponentFitType in ECLDsp.h for description of fit types.

Returns
two comp chi2 for fit type

Definition at line 149 of file ECLCalDigit.h.

150 {
151 unsigned int index = FitTypeIn;
152 return m_TwoComponentSavedChi2[index];
153 }

◆ getTwoComponentTotalEnergy()

double getTwoComponentTotalEnergy ( ) const
inline

Get Two Component calibrated Total Energy.

Returns
Two Component calibrated Total Energy

Definition at line 128 of file ECLCalDigit.h.

◆ hasStatus()

bool hasStatus ( unsigned short int  bitmask) const
inline

Get Calibration Status.

Returns
Calibration Status

Definition at line 173 of file ECLCalDigit.h.

173{ return (m_Status & bitmask) == bitmask; }

◆ removeStatus()

void removeStatus ( unsigned short int  bitmask)
inline

Remove Calibration Status.

Definition at line 113 of file ECLCalDigit.h.

113{ m_Status &= (~bitmask); }

◆ setCellId()

void setCellId ( int  CellId)
inline

Set Cell ID.

Definition at line 60 of file ECLCalDigit.h.

60{ m_CellId = CellId; }

◆ setEnergy()

void setEnergy ( double  Energy)
inline

Set Calibrated Energy.

Definition at line 64 of file ECLCalDigit.h.

64{ m_Energy = Energy; }

◆ setStatus()

void setStatus ( unsigned short int  status)
inline

Set Calibration Status (overwrites previously set bits)

Definition at line 105 of file ECLCalDigit.h.

105{ m_Status = status; }

◆ setTime()

void setTime ( double  Time)
inline

Set Calibrated Time.

Definition at line 97 of file ECLCalDigit.h.

97{ m_Time = Time; }

◆ setTimeResolution()

void setTimeResolution ( double  TimeResolution)
inline

Set Calibrated Time Resolution.

Definition at line 101 of file ECLCalDigit.h.

101{ m_TimeResolution = TimeResolution; }

◆ setTwoComponentChi2()

void setTwoComponentChi2 ( double  chi)
inline

Set two component chi2.

Definition at line 80 of file ECLCalDigit.h.

80{ m_TwoComponentChi2 = chi; }

◆ setTwoComponentDiodeEnergy()

void setTwoComponentDiodeEnergy ( double  Energy)
inline

Set two component diode energy.

Definition at line 76 of file ECLCalDigit.h.

76{ m_TwoComponentDiodeEnergy = Energy; }

◆ setTwoComponentFitType()

void setTwoComponentFitType ( ECLDsp::TwoComponentFitType  ft)
inline

Set two component fit type.

Definition at line 93 of file ECLCalDigit.h.

◆ setTwoComponentHadronEnergy()

void setTwoComponentHadronEnergy ( double  Energy)
inline

Set two component hadron energy.

Definition at line 72 of file ECLCalDigit.h.

◆ setTwoComponentSavedChi2()

void setTwoComponentSavedChi2 ( ECLDsp::TwoComponentFitType  FitTypeIn,
double  input 
)
inline

Set two comp chi2 for a fit type see enum TwoComponentFitType in ECLDsp.h for description of fit types.

Definition at line 85 of file ECLCalDigit.h.

86 {
87 unsigned int index = FitTypeIn;
88 m_TwoComponentSavedChi2[index] = input;
89 }

◆ setTwoComponentTotalEnergy()

void setTwoComponentTotalEnergy ( double  Energy)
inline

Set two component total energy.

Definition at line 68 of file ECLCalDigit.h.

68{ m_TwoComponentTotalEnergy = Energy; }

Member Data Documentation

◆ m_cacheArrayIndex

int m_cacheArrayIndex
mutableprivateinherited

Cache of the index in the TClonesArray to which this object belongs.

Definition at line 432 of file RelationsObject.h.

◆ m_cacheDataStoreEntry

DataStore::StoreEntry* m_cacheDataStoreEntry
mutableprivateinherited

Cache of the data store entry to which this object belongs.

Definition at line 429 of file RelationsObject.h.

◆ m_CellId

int m_CellId
private

Cell ID.

Definition at line 226 of file ECLCalDigit.h.

◆ m_Energy

double m_Energy
private

Calibrated Energy.

Definition at line 229 of file ECLCalDigit.h.

◆ m_Status

unsigned short int m_Status
private

Calibration and Fit Status.

Definition at line 230 of file ECLCalDigit.h.

◆ m_Time

double m_Time
private

Calibrated Time.

Definition at line 227 of file ECLCalDigit.h.

◆ m_TimeResolution

double m_TimeResolution
private

Calibrated Time resolution.

Definition at line 228 of file ECLCalDigit.h.

◆ m_TwoComponentChi2

double m_TwoComponentChi2
private

Two Component chi2.

Definition at line 234 of file ECLCalDigit.h.

◆ m_TwoComponentDiodeEnergy

double m_TwoComponentDiodeEnergy
private

Calibrated Diode Component Energy.

Definition at line 233 of file ECLCalDigit.h.

◆ m_TwoComponentFitType

ECLDsp::TwoComponentFitType m_TwoComponentFitType
private

offline fit hypothesis.

Definition at line 236 of file ECLCalDigit.h.

◆ m_TwoComponentHadronEnergy

double m_TwoComponentHadronEnergy
private

Calibrated Hadron Component Energy.

Definition at line 232 of file ECLCalDigit.h.

◆ m_TwoComponentSavedChi2

double m_TwoComponentSavedChi2[3]
private

Two comp chi2 for each fit tried in reconstruction.

Definition at line 235 of file ECLCalDigit.h.

◆ m_TwoComponentTotalEnergy

double m_TwoComponentTotalEnergy
private

Calibrated Two Component Total Energy.

Definition at line 231 of file ECLCalDigit.h.


The documentation for this class was generated from the following file: