Belle II Software development
ECLDsp Class Reference

Class to store ECL ShaperDSP waveform ADC data. More...

#include <ECLDsp.h>

Inheritance diagram for ECLDsp:
RelationsInterface< BASE > ECLDspWithExtraMCInfo

Public Types

enum  TwoComponentFitType {
  poorChi2 = -1 ,
  photonHadron = 0 ,
  photonHadronBackgroundPhoton = 1 ,
  photonDiodeCrossing = 2
}
 Offline two component fit type. More...
 

Public Member Functions

 ECLDsp ()
 default constructor for ROOT
 
 ECLDsp (int CellId, int NADCPoints, int *ADCData)
 Constructor for data.
 
 ECLDsp (int CellId, const std::vector< int > &ADCData)
 Constructor for data.
 
void setCellId (int CellId)
 Set Cell ID.
 
void setDspA (int DspArray[31])
 Set Dsp array.
 
void setDspA (const std::vector< int > &DspArrayVector)
 Set Dsp array.
 
void setTwoComponentTotalAmp (double input)
 Set two comp total amp.
 
void setTwoComponentHadronAmp (double input)
 Set two comp hadron amp.
 
void setTwoComponentDiodeAmp (double input)
 Set two comp diode amp.
 
void setTwoComponentChi2 (double input)
 Set two comp chi2.
 
void setTwoComponentSavedChi2 (TwoComponentFitType FitTypeIn, double input)
 Set two comp chi2 for a fit type see enum TwoComponentFitType in ECLDsp.h for description of fit types.
 
void setTwoComponentTime (double input)
 Set two comp time.
 
void setTwoComponentBaseline (double input)
 Set two comp baseline.
 
void setBackgroundPhotonEnergy (double input)
 Set pile-up photon energy.
 
void setBackgroundPhotonTime (double input)
 Set pile-up photon time.
 
void setTwoComponentFitType (TwoComponentFitType ft)
 Set fit type.
 
int getCellId () const
 Get Cell ID.
 
void getDspA (int DspArray[31]) const
 Get Dsp Array.
 
double getTwoComponentTotalAmp () const
 get two comp total amp
 
double getTwoComponentHadronAmp () const
 get two comp hadron amp
 
double getTwoComponentDiodeAmp () const
 get two comp diode amp
 
double getTwoComponentChi2 () const
 get two comp chi2
 
double getTwoComponentSavedChi2 (TwoComponentFitType FitTypeIn) const
 get two comp chi2 for a fit type see enum TwoComponentFitType in ECLDsp.h for description of fit types.
 
double getTwoComponentTime () const
 get two comp time
 
double getTwoComponentBaseline () const
 get two comp baseline
 
TwoComponentFitType getTwoComponentFitType () const
 get two comp fit type
 
double getBackgroundPhotonEnergy () const
 get pile up photon energy
 
double getBackgroundPhotonTime () const
 get pile up photon time
 
std::vector< int > getDspA () const
 Get Dsp Array.
 
int computePeaktoPeakAmp () const
 Compute maximum peak to peak value.
 
int getNADCPoints () const
 Get number of ADC points.
 
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.
 

Static Public Member Functions

static ECLDspgetByCellID (int cid)
 Find ECLDsp by Cell ID using linear search.
 

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 (ECLDsp, 6)
 2 dspa array with variable length
 

Private Attributes

int m_CellId {0}
 Cell ID.
 
double m_TwoComponentTotalAmp { -1}
 Two comp total amp.
 
double m_TwoComponentHadronAmp { -1}
 Two comp hadron amp.
 
double m_TwoComponentDiodeAmp { -1}
 Two comp diode amp.
 
double m_TwoComponentChi2 { -1}
 Two comp chi2.
 
double m_TwoComponentSavedChi2 [3] = { -1, -1, -1}
 Two comp chi2 for each fit tried in reconstruction.
 
double m_TwoComponentTime {1}
 Two comp time.
 
double m_TwoComponentBaseline {1}
 Two comp baseline.
 
double m_backgroundPhotonEnergy { -1}
 Pile-up photon energy.
 
double m_backgroundPhotonTime { -1}
 Pile-up photon time.
 
TwoComponentFitType m_TwoComponentFitType {poorChi2}
 offline fit hypothesis.
 
std::vector< int > m_DspAVector
 Dsp array vith variable length for calibration, tests, etc.
 
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 ECL ShaperDSP waveform ADC data.

For MC filled in ecl/modules/eclDigitizer/src/ECLDigitizerModule.cc For data filled in ecl/modules/eclUnpacker/src/eclUnpackerModule.cc

Definition at line 25 of file ECLDsp.h.

Member Enumeration Documentation

◆ TwoComponentFitType

Offline two component fit type.

Enumerator
poorChi2 

All offline fit attempts were greater than chi2 threshold.

photonHadron 

photon + hadron template fit

photonHadronBackgroundPhoton 

photon + hadron template + pile-up photon fit

photonDiodeCrossing 

photon + diode template fit

Definition at line 29 of file ECLDsp.h.

29 {
30 poorChi2 = -1,
31 photonHadron = 0,
34 };
@ photonHadronBackgroundPhoton
photon + hadron template + pile-up photon fit
Definition: ECLDsp.h:32
@ poorChi2
All offline fit attempts were greater than chi2 threshold.
Definition: ECLDsp.h:30
@ photonDiodeCrossing
photon + diode template fit
Definition: ECLDsp.h:33
@ photonHadron
photon + hadron template fit
Definition: ECLDsp.h:31

Constructor & Destructor Documentation

◆ ECLDsp() [1/3]

ECLDsp ( )
inline

default constructor for ROOT

Definition at line 37 of file ECLDsp.h.

37: m_DspAVector(31, 0) {}
std::vector< int > m_DspAVector
Dsp array vith variable length for calibration, tests, etc.
Definition: ECLDsp.h:227

◆ ECLDsp() [2/3]

ECLDsp ( int  CellId,
int  NADCPoints,
int *  ADCData 
)
inline

Constructor for data.

Definition at line 40 of file ECLDsp.h.

41 {
42 m_CellId = CellId;
43 m_DspAVector.assign(ADCData, ADCData + NADCPoints);
44 }
int m_CellId
Cell ID.
Definition: ECLDsp.h:216

◆ ECLDsp() [3/3]

ECLDsp ( int  CellId,
const std::vector< int > &  ADCData 
)
inline

Constructor for data.

Definition at line 47 of file ECLDsp.h.

47 :
48 m_CellId(CellId), m_DspAVector(ADCData) {}

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 }

◆ ClassDef()

ClassDef ( ECLDsp  ,
 
)
private

2 dspa array with variable length

3 Add two component variables 4 Add diode and pile-up photon offline fit hypothesis 5 Added m_TwoComponentSavedChi2[3] to save chi2 for each fit tried 6 removed IsData member

◆ computePeaktoPeakAmp()

int computePeaktoPeakAmp ( ) const
inline

Compute maximum peak to peak value.

Returns
maximum peak to peak value

Definition at line 194 of file ECLDsp.h.

195 {
196 const auto [min, max] = std::minmax_element(m_DspAVector.begin(), m_DspAVector.end());
197 return *max - *min;
198 }

◆ 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

◆ getBackgroundPhotonEnergy()

double getBackgroundPhotonEnergy ( ) const
inline

get pile up photon energy

Returns
pile up photon energy

Definition at line 176 of file ECLDsp.h.

176{ return m_backgroundPhotonEnergy; }
double m_backgroundPhotonEnergy
Pile-up photon energy.
Definition: ECLDsp.h:224

◆ getBackgroundPhotonTime()

double getBackgroundPhotonTime ( ) const
inline

get pile up photon time

Returns
pile up photon time

Definition at line 181 of file ECLDsp.h.

181{ return m_backgroundPhotonTime; }
double m_backgroundPhotonTime
Pile-up photon time.
Definition: ECLDsp.h:225

◆ getByCellID()

ECLDsp * getByCellID ( int  cid)
static

Find ECLDsp by Cell ID using linear search.

This is shown to be faster than getRelated(..) method.

Definition at line 14 of file ECLDsp.cc.

15{
16 static StoreArray<ECLDsp> ecl_dsp_arr;
17 for (auto& ecl_dsp : ecl_dsp_arr) {
18 if (ecl_dsp.getCellId() == cid) return &ecl_dsp;
19 }
20 return nullptr;
21}
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113

◆ getCellId()

int getCellId ( ) const
inline

Get Cell ID.

Returns
cell ID

Definition at line 116 of file ECLDsp.h.

116{ return m_CellId; }

◆ getDspA() [1/2]

std::vector< int > getDspA ( ) const
inline

Get Dsp Array.

Returns
Dsp Array of variable length

Definition at line 186 of file ECLDsp.h.

187 {
188 return m_DspAVector;
189 }

◆ getDspA() [2/2]

void getDspA ( int  DspArray[31]) const
inline

Get Dsp Array.

Parameters
DspArrayarray which gets filled with DspAVector values

Definition at line 121 of file ECLDsp.h.

122 {
123 for (int i = 0; i < 31; i++)
124 DspArray[i] = m_DspAVector[i];
125 }

◆ 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 ""; }

◆ getNADCPoints()

int getNADCPoints ( ) const
inline

Get number of ADC points.

Returns
number of ADC points

Definition at line 203 of file ECLDsp.h.

204 {
205 return m_DspAVector.size();
206 }

◆ 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 }

◆ getTwoComponentBaseline()

double getTwoComponentBaseline ( ) const
inline

get two comp baseline

Returns
two comp baseline

Definition at line 166 of file ECLDsp.h.

166{ return m_TwoComponentBaseline; }
double m_TwoComponentBaseline
Two comp baseline.
Definition: ECLDsp.h:223

◆ getTwoComponentChi2()

double getTwoComponentChi2 ( ) const
inline

get two comp chi2

Returns
two comp chi2

Definition at line 146 of file ECLDsp.h.

146{ return m_TwoComponentChi2; }
double m_TwoComponentChi2
Two comp chi2.
Definition: ECLDsp.h:220

◆ getTwoComponentDiodeAmp()

double getTwoComponentDiodeAmp ( ) const
inline

get two comp diode amp

Returns
two comp diode amp

Definition at line 141 of file ECLDsp.h.

141{ return m_TwoComponentDiodeAmp; }
double m_TwoComponentDiodeAmp
Two comp diode amp.
Definition: ECLDsp.h:219

◆ getTwoComponentFitType()

TwoComponentFitType getTwoComponentFitType ( ) const
inline

get two comp fit type

Returns
two comp fit type

Definition at line 171 of file ECLDsp.h.

171{ return m_TwoComponentFitType; }
TwoComponentFitType m_TwoComponentFitType
offline fit hypothesis.
Definition: ECLDsp.h:226

◆ getTwoComponentHadronAmp()

double getTwoComponentHadronAmp ( ) const
inline

get two comp hadron amp

Returns
two comp hadron amp

Definition at line 136 of file ECLDsp.h.

136{ return m_TwoComponentHadronAmp; }
double m_TwoComponentHadronAmp
Two comp hadron amp.
Definition: ECLDsp.h:218

◆ getTwoComponentSavedChi2()

double getTwoComponentSavedChi2 ( 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 152 of file ECLDsp.h.

153 {
154 unsigned int index = FitTypeIn ;
155 return m_TwoComponentSavedChi2[index];
156 }
double m_TwoComponentSavedChi2[3]
Two comp chi2 for each fit tried in reconstruction.
Definition: ECLDsp.h:221

◆ getTwoComponentTime()

double getTwoComponentTime ( ) const
inline

get two comp time

Returns
two comp time

Definition at line 161 of file ECLDsp.h.

161{ return m_TwoComponentTime; }
double m_TwoComponentTime
Two comp time.
Definition: ECLDsp.h:222

◆ getTwoComponentTotalAmp()

double getTwoComponentTotalAmp ( ) const
inline

get two comp total amp

Returns
two comp total amp

Definition at line 131 of file ECLDsp.h.

131{ return m_TwoComponentTotalAmp;}
double m_TwoComponentTotalAmp
Two comp total amp.
Definition: ECLDsp.h:217

◆ setBackgroundPhotonEnergy()

void setBackgroundPhotonEnergy ( double  input)
inline

Set pile-up photon energy.

Definition at line 103 of file ECLDsp.h.

103{ m_backgroundPhotonEnergy = input; }

◆ setBackgroundPhotonTime()

void setBackgroundPhotonTime ( double  input)
inline

Set pile-up photon time.

Definition at line 107 of file ECLDsp.h.

107{ m_backgroundPhotonTime = input; }

◆ setCellId()

void setCellId ( int  CellId)
inline

Set Cell ID.

Definition at line 52 of file ECLDsp.h.

52{ m_CellId = CellId; }

◆ setDspA() [1/2]

void setDspA ( const std::vector< int > &  DspArrayVector)
inline

Set Dsp array.

Definition at line 63 of file ECLDsp.h.

64 {
65 m_DspAVector = DspArrayVector;
66 }

◆ setDspA() [2/2]

void setDspA ( int  DspArray[31])
inline

Set Dsp array.

Definition at line 56 of file ECLDsp.h.

57 {
58 m_DspAVector.assign(DspArray, DspArray + 31);
59 }

◆ setTwoComponentBaseline()

void setTwoComponentBaseline ( double  input)
inline

Set two comp baseline.

Definition at line 99 of file ECLDsp.h.

99{ m_TwoComponentBaseline = input; }

◆ setTwoComponentChi2()

void setTwoComponentChi2 ( double  input)
inline

Set two comp chi2.

Definition at line 82 of file ECLDsp.h.

82{ m_TwoComponentChi2 = input; }

◆ setTwoComponentDiodeAmp()

void setTwoComponentDiodeAmp ( double  input)
inline

Set two comp diode amp.

Definition at line 78 of file ECLDsp.h.

78{ m_TwoComponentDiodeAmp = input; }

◆ setTwoComponentFitType()

void setTwoComponentFitType ( TwoComponentFitType  ft)
inline

Set fit type.

Definition at line 111 of file ECLDsp.h.

111{ m_TwoComponentFitType = ft; }

◆ setTwoComponentHadronAmp()

void setTwoComponentHadronAmp ( double  input)
inline

Set two comp hadron amp.

Definition at line 74 of file ECLDsp.h.

74{ m_TwoComponentHadronAmp = input; }

◆ setTwoComponentSavedChi2()

void setTwoComponentSavedChi2 ( 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 87 of file ECLDsp.h.

88 {
89 unsigned int index = FitTypeIn ;
90 m_TwoComponentSavedChi2[index] = input;
91 }

◆ setTwoComponentTime()

void setTwoComponentTime ( double  input)
inline

Set two comp time.

Definition at line 95 of file ECLDsp.h.

95{ m_TwoComponentTime = input; }

◆ setTwoComponentTotalAmp()

void setTwoComponentTotalAmp ( double  input)
inline

Set two comp total amp.

Definition at line 70 of file ECLDsp.h.

70{ m_TwoComponentTotalAmp = input; }

Member Data Documentation

◆ m_backgroundPhotonEnergy

double m_backgroundPhotonEnergy { -1}
private

Pile-up photon energy.

Definition at line 224 of file ECLDsp.h.

◆ m_backgroundPhotonTime

double m_backgroundPhotonTime { -1}
private

Pile-up photon time.

Definition at line 225 of file ECLDsp.h.

◆ 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 {0}
private

Cell ID.

Definition at line 216 of file ECLDsp.h.

◆ m_DspAVector

std::vector<int> m_DspAVector
private

Dsp array vith variable length for calibration, tests, etc.


Definition at line 227 of file ECLDsp.h.

◆ m_TwoComponentBaseline

double m_TwoComponentBaseline {1}
private

Two comp baseline.

Definition at line 223 of file ECLDsp.h.

◆ m_TwoComponentChi2

double m_TwoComponentChi2 { -1}
private

Two comp chi2.

Definition at line 220 of file ECLDsp.h.

◆ m_TwoComponentDiodeAmp

double m_TwoComponentDiodeAmp { -1}
private

Two comp diode amp.

Definition at line 219 of file ECLDsp.h.

◆ m_TwoComponentFitType

TwoComponentFitType m_TwoComponentFitType {poorChi2}
private

offline fit hypothesis.

Definition at line 226 of file ECLDsp.h.

◆ m_TwoComponentHadronAmp

double m_TwoComponentHadronAmp { -1}
private

Two comp hadron amp.

Definition at line 218 of file ECLDsp.h.

◆ m_TwoComponentSavedChi2

double m_TwoComponentSavedChi2[3] = { -1, -1, -1}
private

Two comp chi2 for each fit tried in reconstruction.

Definition at line 221 of file ECLDsp.h.

◆ m_TwoComponentTime

double m_TwoComponentTime {1}
private

Two comp time.

Definition at line 222 of file ECLDsp.h.

◆ m_TwoComponentTotalAmp

double m_TwoComponentTotalAmp { -1}
private

Two comp total amp.

Definition at line 217 of file ECLDsp.h.


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