Belle II Software development
KLMTriggerTrack Class Reference

Store KLM TRG track information as a ROOT object. More...

#include <KLMTriggerTrack.h>

Inheritance diagram for KLMTriggerTrack:
RelationsInterface< BASE >

Public Member Functions

 KLMTriggerTrack ()
 Empty constructor for ROOT IO (needed to make the class storable)
 
 KLMTriggerTrack (int fwd, int sector)
 Constructor with initial values for a track.
 
virtual ~KLMTriggerTrack ()
 Destructor.
 
int getForward () const
 Get detector end.
 
int getSector () const
 Get sector number.
 
double getSlopeXY () const
 Get slope parameter of the track in XY plain.
 
double getInterceptXY () const
 Get intercept parameter of the track in XY plain.
 
double getImpactParameterXY () const
 Get impact parameter of the track in XY plain.
 
double getChisqXY () const
 Get chi squared of the track in XY plain.
 
double getSlopeXZ () const
 Get slope parameter of the track in XZ plain.
 
double getInterceptXZ () const
 Get intercept parameter of the track in XZ plain.
 
double getImpactParameterXZ () const
 Get impact parameter of the track in XZ plain.
 
double getChisqXZ () const
 Get chi squared of the track in XZ plain.
 
int getNLayers () const
 Get number of fired layers.
 
int getFirstLayer () const
 Get number of the first fired layer.
 
int getLastLayer () const
 Get number of the last fired layer.
 
bool getTrigger () const
 Get trigger flag.
 
void setSlopeXY (double slopeXY)
 Set slope parameter of the track in XY plain.
 
void setInterceptXY (double interceptXY)
 Set intercept parameter of the track in XY plain.
 
void setImpactParameterXY (double ipXY)
 Set impact parameter of the track in XY plain.
 
void setChisqXY (double chisqXY)
 Set chi squared of the track in XY plain.
 
void setSlopeXZ (double slopeXZ)
 Set slope parameter of the track in XZ plain.
 
void setInterceptXZ (double interceptXZ)
 Set intercept parameter of the track in XZ plain.
 
void setImpactParameterXZ (double ipXZ)
 Set impact parameter of the track in XZ plain.
 
void setChisqXZ (double chisqXZ)
 Set chi squared of the track in XZ plain.
 
void setNLayers (int nLayers)
 Set number of fired layers.
 
void setFirstLayer (int firstLayer)
 Set number of the first fired layer.
 
void setLastLayer (int lastLayer)
 Set number of the last fired layer.
 
void setTrigger (bool trg)
 Set trigger flag.
 
void setBKLM_n_trg_sectors (int n_trg)
 
void setEKLM_n_trg_sectors (int n_trg)
 
void setBKLM_back_to_back_flag (int n_trg)
 
void setEKLM_back_to_back_flag (int n_trg)
 
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 (KLMTriggerTrack, 1)
 Needed to make the ROOT object storable version 4 adds ctime etc.
 

Private Attributes

int m_fwd
 forward-backward
 
int m_sector
 sector number
 
int m_nHits
 number of hits in the sector
 
double m_slopeXY
 calculated slope of the straight track in XY plain
 
double m_interceptXY
 calculated y-intercept of the straight track in XY plain
 
double m_impactParameterXY
 calculated impact parameter of the straight track in XY plain
 
double m_chisqXY
 calculated chi squared of the straight track in XY plain
 
double m_slopeXZ
 calculated slope of the straight track in XZ plain
 
double m_interceptXZ
 calculated z-intercept of the straight track in XZ plain
 
double m_impactParameterXZ
 calculated impact parameter of the straight track in XZ plain
 
double m_chisqXZ
 calculated chi squared of the straight track in XZ plain
 
int m_nLayers
 number of fired layers
 
int m_firstLayer
 number of the first fired layer
 
int m_lastLayer
 number of the last fired layer
 
bool m_trigger
 if the track generates a trigger
 
int m_bklm_n_trg_sectors
 
int m_eklm_n_trg_sectors
 
int m_bklm_back_to_back_flag
 
int m_eklm_back_to_back_flag
 
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

Store KLM TRG track information as a ROOT object.

Definition at line 20 of file KLMTriggerTrack.h.

Constructor & Destructor Documentation

◆ KLMTriggerTrack() [1/2]

KLMTriggerTrack ( )
inline

Empty constructor for ROOT IO (needed to make the class storable)

Definition at line 25 of file KLMTriggerTrack.h.

25 :
26 m_fwd(0),
27 m_sector(0),
28 m_nHits(0),
29 m_slopeXY(0.0),
30 m_interceptXY(0.0),
32 m_chisqXY(0.0),
33 m_slopeXZ(0.0),
34 m_interceptXZ(0.0),
36 m_chisqXZ(0.0),
37 m_nLayers(0),
38 m_firstLayer(0),
39 m_lastLayer(0),
40 m_trigger(false),
41 m_bklm_n_trg_sectors(0),
42 m_eklm_n_trg_sectors(0),
43 m_bklm_back_to_back_flag(0),
44 m_eklm_back_to_back_flag(0)
45 { }
double m_slopeXY
calculated slope of the straight track in XY plain
double m_slopeXZ
calculated slope of the straight track in XZ plain
double m_impactParameterXY
calculated impact parameter of the straight track in XY plain
double m_interceptXZ
calculated z-intercept of the straight track in XZ plain
double m_impactParameterXZ
calculated impact parameter of the straight track in XZ plain
int m_nHits
number of hits in the sector
int m_sector
sector number
int m_lastLayer
number of the last fired layer
double m_chisqXY
calculated chi squared of the straight track in XY plain
double m_interceptXY
calculated y-intercept of the straight track in XY plain
double m_chisqXZ
calculated chi squared of the straight track in XZ plain
int m_fwd
forward-backward
bool m_trigger
if the track generates a trigger
int m_nLayers
number of fired layers
int m_firstLayer
number of the first fired layer

◆ KLMTriggerTrack() [2/2]

KLMTriggerTrack ( int  fwd,
int  sector 
)
inline

Constructor with initial values for a track.

Parameters
fwddetector end (forward=true and backward=false)
sectorsector number

Definition at line 50 of file KLMTriggerTrack.h.

50 :
51 m_fwd(fwd),
52 m_sector(sector),
53 m_nHits(0),
54 m_slopeXY(0.0),
55 m_interceptXY(0.0),
57 m_chisqXY(0.0),
58 m_slopeXZ(0.0),
59 m_interceptXZ(0.0),
61 m_chisqXZ(0.0),
62 m_nLayers(0),
63 m_firstLayer(0),
64 m_lastLayer(0),
65 m_trigger(false),
66 m_bklm_n_trg_sectors(0),
67 m_eklm_n_trg_sectors(0),
68 m_bklm_back_to_back_flag(0),
69 m_eklm_back_to_back_flag(0)
70 { }

◆ ~KLMTriggerTrack()

virtual ~KLMTriggerTrack ( )
inlinevirtual

Destructor.

Definition at line 73 of file KLMTriggerTrack.h.

73{ }

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 }

◆ 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

◆ getChisqXY()

double getChisqXY ( ) const
inline

Get chi squared of the track in XY plain.

Returns
chi squared of the track in XY plain

Definition at line 99 of file KLMTriggerTrack.h.

99{ return m_chisqXY; }

◆ getChisqXZ()

double getChisqXZ ( ) const
inline

Get chi squared of the track in XZ plain.

Returns
chi squared of the track in XZ plain

Definition at line 115 of file KLMTriggerTrack.h.

115{ return m_chisqXZ; }

◆ getFirstLayer()

int getFirstLayer ( ) const
inline

Get number of the first fired layer.

Returns
number of the first fired layer

Definition at line 123 of file KLMTriggerTrack.h.

123{ return m_firstLayer; }

◆ getForward()

int getForward ( ) const
inline

Get detector end.

Returns
detector end (forward=true and backward=false)

Definition at line 79 of file KLMTriggerTrack.h.

79{ return m_fwd; }

◆ getImpactParameterXY()

double getImpactParameterXY ( ) const
inline

Get impact parameter of the track in XY plain.

Returns
impact parameter of the track in XY plain

Definition at line 95 of file KLMTriggerTrack.h.

95{ return m_impactParameterXY; }

◆ getImpactParameterXZ()

double getImpactParameterXZ ( ) const
inline

Get impact parameter of the track in XZ plain.

Returns
impact parameter of the track in XZ plain

Definition at line 111 of file KLMTriggerTrack.h.

111{ return m_impactParameterXZ; }

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

◆ getInterceptXY()

double getInterceptXY ( ) const
inline

Get intercept parameter of the track in XY plain.

Returns
intercept parameter of the track in XY plain

Definition at line 91 of file KLMTriggerTrack.h.

91{ return m_interceptXY; }

◆ getInterceptXZ()

double getInterceptXZ ( ) const
inline

Get intercept parameter of the track in XZ plain.

Returns
intercept parameter of the track in XZ plain

Definition at line 107 of file KLMTriggerTrack.h.

107{ return m_interceptXZ; }

◆ getLastLayer()

int getLastLayer ( ) const
inline

Get number of the last fired layer.

Returns
number of the last fired layer

Definition at line 127 of file KLMTriggerTrack.h.

127{ return m_lastLayer; }

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

◆ getNLayers()

int getNLayers ( ) const
inline

Get number of fired layers.

Returns
number of fired layers

Definition at line 119 of file KLMTriggerTrack.h.

119{ return m_nLayers; }

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

◆ getSector()

int getSector ( ) const
inline

Get sector number.

Returns
sector number of the track (0..7)

Definition at line 83 of file KLMTriggerTrack.h.

83{ return m_sector; }

◆ getSlopeXY()

double getSlopeXY ( ) const
inline

Get slope parameter of the track in XY plain.

Returns
slope parameter of the track in XY plain

Definition at line 87 of file KLMTriggerTrack.h.

87{ return m_slopeXY; }

◆ getSlopeXZ()

double getSlopeXZ ( ) const
inline

Get slope parameter of the track in XZ plain.

Returns
slope parameter of the track in XZ plain

Definition at line 103 of file KLMTriggerTrack.h.

103{ return m_slopeXZ; }

◆ getTrigger()

bool getTrigger ( ) const
inline

Get trigger flag.

Returns
if the track generates a trigger

Definition at line 131 of file KLMTriggerTrack.h.

131{ return m_trigger; }

◆ setBKLM_back_to_back_flag()

void setBKLM_back_to_back_flag ( int  n_trg)
inline

Definition at line 194 of file KLMTriggerTrack.h.

195 {
196 m_bklm_back_to_back_flag = n_trg;
197
198 }

◆ setBKLM_n_trg_sectors()

void setBKLM_n_trg_sectors ( int  n_trg)
inline

Definition at line 184 of file KLMTriggerTrack.h.

185 {
186 m_bklm_n_trg_sectors = n_trg;
187 }

◆ setChisqXY()

void setChisqXY ( double  chisqXY)
inline

Set chi squared of the track in XY plain.

Parameters
chisqXYchi squared of the track in XY plain

Definition at line 149 of file KLMTriggerTrack.h.

149{ m_chisqXY = chisqXY; }

◆ setChisqXZ()

void setChisqXZ ( double  chisqXZ)
inline

Set chi squared of the track in XZ plain.

Parameters
chisqXZchi squared of the track in XZ plain

Definition at line 165 of file KLMTriggerTrack.h.

165{ m_chisqXZ = chisqXZ; }

◆ setEKLM_back_to_back_flag()

void setEKLM_back_to_back_flag ( int  n_trg)
inline

Definition at line 199 of file KLMTriggerTrack.h.

200 {
201 m_eklm_back_to_back_flag = n_trg;
202
203 }

◆ setEKLM_n_trg_sectors()

void setEKLM_n_trg_sectors ( int  n_trg)
inline

Definition at line 190 of file KLMTriggerTrack.h.

191 {
192 m_eklm_n_trg_sectors = n_trg;
193 }

◆ setFirstLayer()

void setFirstLayer ( int  firstLayer)
inline

Set number of the first fired layer.

Parameters
firstLayernumber of the first fired layer

Definition at line 173 of file KLMTriggerTrack.h.

173{ m_firstLayer = firstLayer; }

◆ setImpactParameterXY()

void setImpactParameterXY ( double  ipXY)
inline

Set impact parameter of the track in XY plain.

Parameters
ipXYimpact parameter of the track in XY plain

Definition at line 145 of file KLMTriggerTrack.h.

145{ m_impactParameterXY = ipXY; }

◆ setImpactParameterXZ()

void setImpactParameterXZ ( double  ipXZ)
inline

Set impact parameter of the track in XZ plain.

Parameters
ipXZimpact parameter of the track in XZ plain

Definition at line 161 of file KLMTriggerTrack.h.

161{ m_impactParameterXZ = ipXZ; }

◆ setInterceptXY()

void setInterceptXY ( double  interceptXY)
inline

Set intercept parameter of the track in XY plain.

Parameters
interceptXYintercept parameter of the track in XY plain

Definition at line 141 of file KLMTriggerTrack.h.

141{ m_interceptXY = interceptXY; }

◆ setInterceptXZ()

void setInterceptXZ ( double  interceptXZ)
inline

Set intercept parameter of the track in XZ plain.

Parameters
interceptXZintercept parameter of the track in XZ plain

Definition at line 157 of file KLMTriggerTrack.h.

157{ m_interceptXZ = interceptXZ; }

◆ setLastLayer()

void setLastLayer ( int  lastLayer)
inline

Set number of the last fired layer.

Parameters
lastLayernumber of the last fired layer

Definition at line 177 of file KLMTriggerTrack.h.

177{ m_lastLayer = lastLayer; }

◆ setNLayers()

void setNLayers ( int  nLayers)
inline

Set number of fired layers.

Parameters
nLayersnumber of fired layers

Definition at line 169 of file KLMTriggerTrack.h.

169{ m_nLayers = nLayers; }

◆ setSlopeXY()

void setSlopeXY ( double  slopeXY)
inline

Set slope parameter of the track in XY plain.

Parameters
slopeXYslope parameter of the track in XY plain

Definition at line 137 of file KLMTriggerTrack.h.

137{ m_slopeXY = slopeXY; }

◆ setSlopeXZ()

void setSlopeXZ ( double  slopeXZ)
inline

Set slope parameter of the track in XZ plain.

Parameters
slopeXZslope parameter of the track in XZ plain

Definition at line 153 of file KLMTriggerTrack.h.

153{ m_slopeXZ = slopeXZ; }

◆ setTrigger()

void setTrigger ( bool  trg)
inline

Set trigger flag.

Parameters
trgif the track generates a trigger

Definition at line 181 of file KLMTriggerTrack.h.

181{ m_trigger = trg; }

Member Data Documentation

◆ m_bklm_back_to_back_flag

int m_bklm_back_to_back_flag
private

Definition at line 253 of file KLMTriggerTrack.h.

◆ m_bklm_n_trg_sectors

int m_bklm_n_trg_sectors
private

Definition at line 251 of file KLMTriggerTrack.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_chisqXY

double m_chisqXY
private

calculated chi squared of the straight track in XY plain

Definition at line 224 of file KLMTriggerTrack.h.

◆ m_chisqXZ

double m_chisqXZ
private

calculated chi squared of the straight track in XZ plain

Definition at line 236 of file KLMTriggerTrack.h.

◆ m_eklm_back_to_back_flag

int m_eklm_back_to_back_flag
private

Definition at line 254 of file KLMTriggerTrack.h.

◆ m_eklm_n_trg_sectors

int m_eklm_n_trg_sectors
private

Definition at line 252 of file KLMTriggerTrack.h.

◆ m_firstLayer

int m_firstLayer
private

number of the first fired layer

Definition at line 242 of file KLMTriggerTrack.h.

◆ m_fwd

int m_fwd
private

forward-backward

Definition at line 206 of file KLMTriggerTrack.h.

◆ m_impactParameterXY

double m_impactParameterXY
private

calculated impact parameter of the straight track in XY plain

Definition at line 221 of file KLMTriggerTrack.h.

◆ m_impactParameterXZ

double m_impactParameterXZ
private

calculated impact parameter of the straight track in XZ plain

Definition at line 233 of file KLMTriggerTrack.h.

◆ m_interceptXY

double m_interceptXY
private

calculated y-intercept of the straight track in XY plain

Definition at line 218 of file KLMTriggerTrack.h.

◆ m_interceptXZ

double m_interceptXZ
private

calculated z-intercept of the straight track in XZ plain

Definition at line 230 of file KLMTriggerTrack.h.

◆ m_lastLayer

int m_lastLayer
private

number of the last fired layer

Definition at line 245 of file KLMTriggerTrack.h.

◆ m_nHits

int m_nHits
private

number of hits in the sector

Definition at line 212 of file KLMTriggerTrack.h.

◆ m_nLayers

int m_nLayers
private

number of fired layers

Definition at line 239 of file KLMTriggerTrack.h.

◆ m_sector

int m_sector
private

sector number

Definition at line 209 of file KLMTriggerTrack.h.

◆ m_slopeXY

double m_slopeXY
private

calculated slope of the straight track in XY plain

Definition at line 215 of file KLMTriggerTrack.h.

◆ m_slopeXZ

double m_slopeXZ
private

calculated slope of the straight track in XZ plain

Definition at line 227 of file KLMTriggerTrack.h.

◆ m_trigger

bool m_trigger
private

if the track generates a trigger

Definition at line 248 of file KLMTriggerTrack.h.


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