Belle II Software development
ARICHPhoton Class Reference

Struct for ARICH reconstructed photon (hit related to track) information. More...

#include <ARICHPhoton.h>

Inheritance diagram for ARICHPhoton:
RelationsInterface< BASE >

Public Member Functions

 ARICHPhoton ()
 default constructor
 
 ARICHPhoton (int hitID, float thetaCer, float phiCer, int mirror)
 Constructor to allow initialization.
 
void setHitID (int id)
 Set ID of corresponding ARICHHit.
 
void setPhiCerTrk (float phi)
 Set hit phi angle in track coordinates.
 
void setXY (float x, float y)
 Set X-Y position of hit.
 
void setModuleID (int modID)
 Set id of hit module.
 
void setChannel (int chn)
 set channel (asic) of hit
 
void setSigExp (const double *sigExp)
 Set expected signal contribution.
 
void setBkgExp (const double *bkgExp)
 Set expected background contribution.
 
void setNCosThetaCh (const double *n_cos_theta_ch)
 Set n cos(theta_ch)
 
void setPhiCh (const double *phi_ch)
 Set phi_ch.
 
float getSigExp (const Const::ChargedStable &part) const
 Get expected signal contribution for given pid hypothesis.
 
float getBkgExp (const Const::ChargedStable &part) const
 Get expected background contribution for given pid hypothesis.
 
float getNCosThetaCh (const Const::ChargedStable &part) const
 Get n cos(theta_ch) for given pid hypothesis.
 
float getPhiCh (const Const::ChargedStable &part) const
 Get phi_ch for given pid hypothesis.
 
double getThetaCer ()
 Get reconstructed theta cherenkov angle.
 
double getPhiCer ()
 Get reconstructed phi cherenkov angle.
 
double getPhiCerTrk ()
 Get reconstructed phi cherenkov angle in track coordinate system.
 
int getMirror ()
 Get used mirror hypothesis (0 for no reflection)
 
int getHitID ()
 Get ID of corresponding ARICHHit.
 
double getX ()
 Get hit X position.
 
double getY ()
 Get hit Y position.
 
int getModuleID ()
 Get hit module ID.
 
int getChannel ()
 Get hit channel (asic)
 
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 (ARICHPhoton, 5)
 ClassDef.
 

Private Attributes

int m_hitID = 0
 id of corresponding ARICHHit
 
float m_thetaCer = 0.
 reconstructed theta angle
 
float m_phiCer = 0.
 reconstructed phi angle
 
int m_mirror = 0
 assumed reflection of mirror plate (0 for no reflection)
 
float m_sigExp_e = 0.
 number of expected signal photons on pad for e hypotheses
 
float m_bkgExp_e = 0.
 number of expected background photons on pad for e hypotheses
 
float m_sigExp_mu = 0.
 number of expected signal photons on pad for mu hypotheses
 
float m_bkgExp_mu = 0.
 number of expected background photons on pad for mu hypotheses
 
float m_sigExp_pi = 0.
 number of expected signal photons on pad for pi hypotheses
 
float m_bkgExp_pi = 0.
 number of expected background photons on pad for pi hypotheses
 
float m_sigExp_K = 0.
 number of expected signal photons on pad for K hypotheses
 
float m_bkgExp_K = 0.
 number of expected background photons on pad for K hypotheses
 
float m_sigExp_p = 0.
 number of expected signal photons on pad for p hypotheses
 
float m_bkgExp_p = 0.
 number of expected background photons on pad for p hypotheses
 
float m_nCosThetaCh_e = 0.
 n cos(theta_ch) for e hypotheses
 
float m_nCosThetaCh_mu = 0.
 n cos(theta_ch) for mu hypotheses
 
float m_nCosThetaCh_pi = 0.
 n cos(theta_ch) for pi hypotheses
 
float m_nCosThetaCh_K = 0.
 n cos(theta_ch) for K hypotheses
 
float m_nCosThetaCh_p = 0.
 n cos(theta_ch) for p hypotheses
 
float m_phiCh_e = 0.
 n phi_ch for e hypotheses
 
float m_phiCh_mu = 0.
 n phi_ch for mu hypotheses
 
float m_phiCh_pi = 0.
 n phi_ch for pi hypotheses
 
float m_phiCh_K = 0.
 n phi_ch for K hypotheses
 
float m_phiCh_p = 0.
 n phi_ch for p hypotheses
 
float m_x = 0
 x of the hit position
 
float m_y = 0
 y of the hit position
 
int m_module = 0
 hit module
 
int m_channel = 0
 hit channel
 
float m_phiCerTrk = 0.
 reconstructed phi angle in track coordinate system
 
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

Struct for ARICH reconstructed photon (hit related to track) information.

Definition at line 25 of file ARICHPhoton.h.

Constructor & Destructor Documentation

◆ ARICHPhoton() [1/2]

ARICHPhoton ( )
inline

default constructor

Definition at line 32 of file ARICHPhoton.h.

32{};

◆ ARICHPhoton() [2/2]

ARICHPhoton ( int  hitID,
float  thetaCer,
float  phiCer,
int  mirror 
)
inline

Constructor to allow initialization.

Parameters
hitIDId of used ARICHHit
thetaCerreconstructed cherenkov angle theta for 1st aerogel
phiCerreconstructed cherenkov angle phi for 1st aerogel
mirrorassumed mirror plane of photon reflection

Definition at line 41 of file ARICHPhoton.h.

41 : m_hitID(hitID), m_thetaCer(thetaCer),
42 m_phiCer(phiCer),
43 m_mirror(mirror) {};
int m_hitID
id of corresponding ARICHHit
Definition: ARICHPhoton.h:270
float m_thetaCer
reconstructed theta angle
Definition: ARICHPhoton.h:271
float m_phiCer
reconstructed phi angle
Definition: ARICHPhoton.h:272
int m_mirror
assumed reflection of mirror plate (0 for no reflection)
Definition: ARICHPhoton.h:273

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

◆ getBkgExp()

float getBkgExp ( const Const::ChargedStable part) const
inline

Get expected background contribution for given pid hypothesis.

Parameters
partpid hypothesis

Definition at line 157 of file ARICHPhoton.h.

158 {
159 if (part == Const::electron) return m_bkgExp_e;
160 if (part == Const::muon) return m_bkgExp_mu;
161 if (part == Const::pion) return m_bkgExp_pi;
162 if (part == Const::kaon) return m_bkgExp_K;
163 if (part == Const::proton) return m_bkgExp_p;
164 else return 0;
165 }
float m_bkgExp_p
number of expected background photons on pad for p hypotheses
Definition: ARICHPhoton.h:283
float m_bkgExp_pi
number of expected background photons on pad for pi hypotheses
Definition: ARICHPhoton.h:279
float m_bkgExp_e
number of expected background photons on pad for e hypotheses
Definition: ARICHPhoton.h:275
float m_bkgExp_K
number of expected background photons on pad for K hypotheses
Definition: ARICHPhoton.h:281
float m_bkgExp_mu
number of expected background photons on pad for mu hypotheses
Definition: ARICHPhoton.h:277
static const ChargedStable muon
muon particle
Definition: Const.h:660
static const ChargedStable pion
charged pion particle
Definition: Const.h:661
static const ChargedStable proton
proton particle
Definition: Const.h:663
static const ChargedStable kaon
charged kaon particle
Definition: Const.h:662
static const ChargedStable electron
electron particle
Definition: Const.h:659

◆ getChannel()

int getChannel ( )
inline

Get hit channel (asic)

Definition at line 262 of file ARICHPhoton.h.

263 {
264 return m_channel;
265 }
int m_channel
hit channel
Definition: ARICHPhoton.h:297

◆ getHitID()

int getHitID ( )
inline

Get ID of corresponding ARICHHit.

Definition at line 230 of file ARICHPhoton.h.

231 {
232 return m_hitID;
233 }

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

◆ getMirror()

int getMirror ( )
inline

Get used mirror hypothesis (0 for no reflection)

Definition at line 222 of file ARICHPhoton.h.

223 {
224 return m_mirror;
225 }

◆ getModuleID()

int getModuleID ( )
inline

Get hit module ID.

Definition at line 254 of file ARICHPhoton.h.

255 {
256 return m_module;
257 }
int m_module
hit module
Definition: ARICHPhoton.h:296

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

◆ getNCosThetaCh()

float getNCosThetaCh ( const Const::ChargedStable part) const
inline

Get n cos(theta_ch) for given pid hypothesis.

Parameters
partpid hypothesis

Definition at line 171 of file ARICHPhoton.h.

172 {
173 if (part == Const::electron) return m_nCosThetaCh_e;
174 if (part == Const::muon) return m_nCosThetaCh_mu;
175 if (part == Const::pion) return m_nCosThetaCh_pi;
176 if (part == Const::kaon) return m_nCosThetaCh_K;
177 if (part == Const::proton) return m_nCosThetaCh_p;
178 else return 0;
179 }
float m_nCosThetaCh_K
n cos(theta_ch) for K hypotheses
Definition: ARICHPhoton.h:287
float m_nCosThetaCh_p
n cos(theta_ch) for p hypotheses
Definition: ARICHPhoton.h:288
float m_nCosThetaCh_mu
n cos(theta_ch) for mu hypotheses
Definition: ARICHPhoton.h:285
float m_nCosThetaCh_pi
n cos(theta_ch) for pi hypotheses
Definition: ARICHPhoton.h:286
float m_nCosThetaCh_e
n cos(theta_ch) for e hypotheses
Definition: ARICHPhoton.h:284

◆ getPhiCer()

double getPhiCer ( )
inline

Get reconstructed phi cherenkov angle.

Definition at line 206 of file ARICHPhoton.h.

207 {
208 return (double)m_phiCer;
209 }

◆ getPhiCerTrk()

double getPhiCerTrk ( )
inline

Get reconstructed phi cherenkov angle in track coordinate system.

Definition at line 214 of file ARICHPhoton.h.

215 {
216 return (double)m_phiCerTrk;
217 }
float m_phiCerTrk
reconstructed phi angle in track coordinate system
Definition: ARICHPhoton.h:298

◆ getPhiCh()

float getPhiCh ( const Const::ChargedStable part) const
inline

Get phi_ch for given pid hypothesis.

Parameters
partpid hypothesis

Definition at line 185 of file ARICHPhoton.h.

186 {
187 if (part == Const::electron) return m_phiCh_e;
188 if (part == Const::muon) return m_phiCh_mu;
189 if (part == Const::pion) return m_phiCh_pi;
190 if (part == Const::kaon) return m_phiCh_K;
191 if (part == Const::proton) return m_phiCh_p;
192 else return 0;
193 }
float m_phiCh_mu
n phi_ch for mu hypotheses
Definition: ARICHPhoton.h:290
float m_phiCh_pi
n phi_ch for pi hypotheses
Definition: ARICHPhoton.h:291
float m_phiCh_K
n phi_ch for K hypotheses
Definition: ARICHPhoton.h:292
float m_phiCh_e
n phi_ch for e hypotheses
Definition: ARICHPhoton.h:289
float m_phiCh_p
n phi_ch for p hypotheses
Definition: ARICHPhoton.h:293

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

◆ getSigExp()

float getSigExp ( const Const::ChargedStable part) const
inline

Get expected signal contribution for given pid hypothesis.

Parameters
partpid hypothesis

Definition at line 143 of file ARICHPhoton.h.

144 {
145 if (part == Const::electron) return m_sigExp_e;
146 if (part == Const::muon) return m_sigExp_mu;
147 if (part == Const::pion) return m_sigExp_pi;
148 if (part == Const::kaon) return m_sigExp_K;
149 if (part == Const::proton) return m_sigExp_p;
150 else return 0;
151 }
float m_sigExp_e
number of expected signal photons on pad for e hypotheses
Definition: ARICHPhoton.h:274
float m_sigExp_K
number of expected signal photons on pad for K hypotheses
Definition: ARICHPhoton.h:280
float m_sigExp_pi
number of expected signal photons on pad for pi hypotheses
Definition: ARICHPhoton.h:278
float m_sigExp_p
number of expected signal photons on pad for p hypotheses
Definition: ARICHPhoton.h:282
float m_sigExp_mu
number of expected signal photons on pad for mu hypotheses
Definition: ARICHPhoton.h:276

◆ getThetaCer()

double getThetaCer ( )
inline

Get reconstructed theta cherenkov angle.

Definition at line 198 of file ARICHPhoton.h.

199 {
200 return (double)m_thetaCer;
201 }

◆ getX()

double getX ( )
inline

Get hit X position.

Definition at line 238 of file ARICHPhoton.h.

239 {
240 return (double)m_x;
241 }
float m_x
x of the hit position
Definition: ARICHPhoton.h:294

◆ getY()

double getY ( )
inline

Get hit Y position.

Definition at line 246 of file ARICHPhoton.h.

247 {
248 return (double)m_y;
249 }
float m_y
y of the hit position
Definition: ARICHPhoton.h:295

◆ setBkgExp()

void setBkgExp ( const double *  bkgExp)
inline

Set expected background contribution.

Parameters
bkgExparray of expected background photons on pad for all pid hypotheses

Definition at line 104 of file ARICHPhoton.h.

105 {
106 m_bkgExp_e = (float)bkgExp[0];
107 m_bkgExp_mu = (float)bkgExp[1];
108 m_bkgExp_pi = (float)bkgExp[2];
109 m_bkgExp_K = (float)bkgExp[3];
110 m_bkgExp_p = (float)bkgExp[4];
111 }

◆ setChannel()

void setChannel ( int  chn)
inline

set channel (asic) of hit

Definition at line 81 of file ARICHPhoton.h.

82 {
83 m_channel = chn;
84 }

◆ setHitID()

void setHitID ( int  id)
inline

Set ID of corresponding ARICHHit.

Definition at line 48 of file ARICHPhoton.h.

49 {
50 m_hitID = id;
51 }

◆ setModuleID()

void setModuleID ( int  modID)
inline

Set id of hit module.

Definition at line 73 of file ARICHPhoton.h.

74 {
75 m_module = modID;
76 }

◆ setNCosThetaCh()

void setNCosThetaCh ( const double *  n_cos_theta_ch)
inline

Set n cos(theta_ch)

Parameters
n_cos_theta_chn cos(theta_ch) for all pid hypotheses

Definition at line 117 of file ARICHPhoton.h.

118 {
119 m_nCosThetaCh_e = (float)n_cos_theta_ch[0];
120 m_nCosThetaCh_mu = (float)n_cos_theta_ch[1];
121 m_nCosThetaCh_pi = (float)n_cos_theta_ch[2];
122 m_nCosThetaCh_K = (float)n_cos_theta_ch[3];
123 m_nCosThetaCh_p = (float)n_cos_theta_ch[4];
124 }

◆ setPhiCerTrk()

void setPhiCerTrk ( float  phi)
inline

Set hit phi angle in track coordinates.

Definition at line 56 of file ARICHPhoton.h.

57 {
58 m_phiCerTrk = phi;
59 }

◆ setPhiCh()

void setPhiCh ( const double *  phi_ch)
inline

Set phi_ch.

Parameters
phi_chfor all pid hypotheses

Definition at line 130 of file ARICHPhoton.h.

131 {
132 m_phiCh_e = (float)phi_ch[0];
133 m_phiCh_mu = (float)phi_ch[1];
134 m_phiCh_pi = (float)phi_ch[2];
135 m_phiCh_K = (float)phi_ch[3];
136 m_phiCh_p = (float)phi_ch[4];
137 }

◆ setSigExp()

void setSigExp ( const double *  sigExp)
inline

Set expected signal contribution.

Parameters
sigExparray of expected signal photons on pad for all pid hypotheses

Definition at line 91 of file ARICHPhoton.h.

92 {
93 m_sigExp_e = (float)sigExp[0];
94 m_sigExp_mu = (float)sigExp[1];
95 m_sigExp_pi = (float)sigExp[2];
96 m_sigExp_K = (float)sigExp[3];
97 m_sigExp_p = (float)sigExp[4];
98 }

◆ setXY()

void setXY ( float  x,
float  y 
)
inline

Set X-Y position of hit.

Definition at line 64 of file ARICHPhoton.h.

65 {
66 m_x = x;
67 m_y = y;
68 }

Member Data Documentation

◆ m_bkgExp_e

float m_bkgExp_e = 0.
private

number of expected background photons on pad for e hypotheses

Definition at line 275 of file ARICHPhoton.h.

◆ m_bkgExp_K

float m_bkgExp_K = 0.
private

number of expected background photons on pad for K hypotheses

Definition at line 281 of file ARICHPhoton.h.

◆ m_bkgExp_mu

float m_bkgExp_mu = 0.
private

number of expected background photons on pad for mu hypotheses

Definition at line 277 of file ARICHPhoton.h.

◆ m_bkgExp_p

float m_bkgExp_p = 0.
private

number of expected background photons on pad for p hypotheses

Definition at line 283 of file ARICHPhoton.h.

◆ m_bkgExp_pi

float m_bkgExp_pi = 0.
private

number of expected background photons on pad for pi hypotheses

Definition at line 279 of file ARICHPhoton.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_channel

int m_channel = 0
private

hit channel

Definition at line 297 of file ARICHPhoton.h.

◆ m_hitID

int m_hitID = 0
private

id of corresponding ARICHHit

Definition at line 270 of file ARICHPhoton.h.

◆ m_mirror

int m_mirror = 0
private

assumed reflection of mirror plate (0 for no reflection)

Definition at line 273 of file ARICHPhoton.h.

◆ m_module

int m_module = 0
private

hit module

Definition at line 296 of file ARICHPhoton.h.

◆ m_nCosThetaCh_e

float m_nCosThetaCh_e = 0.
private

n cos(theta_ch) for e hypotheses

Definition at line 284 of file ARICHPhoton.h.

◆ m_nCosThetaCh_K

float m_nCosThetaCh_K = 0.
private

n cos(theta_ch) for K hypotheses

Definition at line 287 of file ARICHPhoton.h.

◆ m_nCosThetaCh_mu

float m_nCosThetaCh_mu = 0.
private

n cos(theta_ch) for mu hypotheses

Definition at line 285 of file ARICHPhoton.h.

◆ m_nCosThetaCh_p

float m_nCosThetaCh_p = 0.
private

n cos(theta_ch) for p hypotheses

Definition at line 288 of file ARICHPhoton.h.

◆ m_nCosThetaCh_pi

float m_nCosThetaCh_pi = 0.
private

n cos(theta_ch) for pi hypotheses

Definition at line 286 of file ARICHPhoton.h.

◆ m_phiCer

float m_phiCer = 0.
private

reconstructed phi angle

Definition at line 272 of file ARICHPhoton.h.

◆ m_phiCerTrk

float m_phiCerTrk = 0.
private

reconstructed phi angle in track coordinate system

Definition at line 298 of file ARICHPhoton.h.

◆ m_phiCh_e

float m_phiCh_e = 0.
private

n phi_ch for e hypotheses

Definition at line 289 of file ARICHPhoton.h.

◆ m_phiCh_K

float m_phiCh_K = 0.
private

n phi_ch for K hypotheses

Definition at line 292 of file ARICHPhoton.h.

◆ m_phiCh_mu

float m_phiCh_mu = 0.
private

n phi_ch for mu hypotheses

Definition at line 290 of file ARICHPhoton.h.

◆ m_phiCh_p

float m_phiCh_p = 0.
private

n phi_ch for p hypotheses

Definition at line 293 of file ARICHPhoton.h.

◆ m_phiCh_pi

float m_phiCh_pi = 0.
private

n phi_ch for pi hypotheses

Definition at line 291 of file ARICHPhoton.h.

◆ m_sigExp_e

float m_sigExp_e = 0.
private

number of expected signal photons on pad for e hypotheses

Definition at line 274 of file ARICHPhoton.h.

◆ m_sigExp_K

float m_sigExp_K = 0.
private

number of expected signal photons on pad for K hypotheses

Definition at line 280 of file ARICHPhoton.h.

◆ m_sigExp_mu

float m_sigExp_mu = 0.
private

number of expected signal photons on pad for mu hypotheses

Definition at line 276 of file ARICHPhoton.h.

◆ m_sigExp_p

float m_sigExp_p = 0.
private

number of expected signal photons on pad for p hypotheses

Definition at line 282 of file ARICHPhoton.h.

◆ m_sigExp_pi

float m_sigExp_pi = 0.
private

number of expected signal photons on pad for pi hypotheses

Definition at line 278 of file ARICHPhoton.h.

◆ m_thetaCer

float m_thetaCer = 0.
private

reconstructed theta angle

Definition at line 271 of file ARICHPhoton.h.

◆ m_x

float m_x = 0
private

x of the hit position

Definition at line 294 of file ARICHPhoton.h.

◆ m_y

float m_y = 0
private

y of the hit position

Definition at line 295 of file ARICHPhoton.h.


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