Belle II Software development
|
KLM simulation hit. More...
#include <KLMSimHit.h>
Public Member Functions | |
KLMSimHit () | |
Constructor. | |
~KLMSimHit () | |
Destructor. | |
int | getPDG () const |
Get the lund code of the (leading) particle. | |
void | setPDG (int pdg) |
Set the lund code of the (leading) particle. | |
int | getTrackID () const |
Get track ID. | |
void | setTrackID (int track) |
Set track ID. | |
int | getParentTrackID () const |
Get ID of parent track. | |
void | setParentTrackID (int track) |
Set ID of parent track. | |
int | getVolumeID () const |
Get volume identifier. | |
int | getSubdetector () const |
Get subdetector number. | |
void | setSubdetector (int subdetector) |
Set subdetector number. | |
int | getSection () const |
Get section number. | |
void | setSection (int Section) |
Set section number. | |
int | getLayer () const |
Get layer number. | |
void | setLayer (int layer) |
Set layer number. | |
int | getSector () const |
Get sector number. | |
void | setSector (int sector) |
Set sector number. | |
int | getPlane () const |
Get plane number. | |
bool | isPhiReadout () const |
Check whether the hit is from phi plane. | |
void | setPlane (int plane) |
Set plane number. | |
int | getStrip () const |
Get strip number. | |
void | setStrip (int strip) |
Set strip number. | |
int | getLastStrip () const |
Get last strip number. | |
void | setLastStrip (int lastStrip) |
Set last strip number. | |
bool | inRPC () const |
Determine whether the hit is in RPC or scintillator. | |
float | getEnergyDeposit () const |
Get energy deposit. | |
void | setEnergyDeposit (float eDep) |
Set EnergyDeposit. | |
float | getTime () const |
Get hit time. | |
void | setTime (float time) |
Set hit time. | |
float | getPropagationTime () const |
Get signal propagation time. | |
void | setPropagationTime (float propagationTime) |
Set signal propagation time. | |
void | setLocalPosition (float x, float y, float z) |
Set hit local position. | |
float | getLocalPositionX () const |
Get hit local position x coordinate. | |
float | getLocalPositionY () const |
Get hit local position y coordinate. | |
float | getLocalPositionZ () const |
Get hit local position z coordinate. | |
ROOT::Math::XYZVector | getLocalPosition () const |
Get ihit local position. | |
void | setPosition (float x, float y, float z) |
Set hit global position. | |
void | setPosition (const ROOT::Math::XYZVector &pos) |
Set hit global position. | |
float | getPositionX () const |
Get hit global position x coordinate. | |
float | getPositionY () const |
Get hit global position y coordinate. | |
float | getPositionZ () const |
Get hit global position z coordinate. | |
ROOT::Math::XYZVector | getPosition () const |
Get hit global position. | |
void | setMomentum (const ROOT::Math::PxPyPzEVector &p) |
Set momentum. | |
ROOT::Math::PxPyPzEVector | getMomentum () const |
Get momentum. | |
void | setVolumeID (int id) |
Set volume identifier. | |
float | getGlobalTime () const override |
Get hit time (implementation of base class function) | |
void | shiftInTime (float delta) override |
Shift SimHit in time (implementation of base class function) | |
virtual void | setBackgroundTag (unsigned int backgroundTag) |
Set background tag. | |
virtual unsigned short | getBackgroundTag () const |
Get background tag. | |
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 | |
ClassDefOverride (Belle2::KLMSimHit, 1) | |
Class version. | |
ClassDef (RelationsInterface, 0) | |
defines interface for accessing relations of objects in StoreArray. | |
Private Attributes | |
int | m_PDG = -1 |
PDG code of the (leading) particle. | |
int | m_trackID = -1 |
Track ID. | |
int | m_parentTrackID = -1 |
Parent track ID. | |
int | m_volid = -1 |
Volume identifier. | |
int | m_Subdetector = 0 |
Number of subdetector. | |
int | m_Section = 0 |
Number of section. | |
int | m_Layer = 0 |
Number of layer. | |
int | m_Sector = 0 |
Number of sector. | |
int | m_Plane = 0 |
Number of plane. | |
int | m_Strip = 0 |
Number of strip. | |
int | m_LastStrip |
Number of last strip (for BKLM RPC hits). | |
float | m_Time = -1 |
Time of the hit. | |
float | m_EDep = -1 |
Energy deposition. | |
float | m_PropagationTime = 0 |
Time of propagation (ns) from hit to sensor. | |
float | m_localX = 0 |
Local position X coordinate. | |
float | m_localY = 0 |
Local position Y coordinate. | |
float | m_localZ = 0 |
Local position Z coordinate. | |
float | m_globalX |
Global position X coordinate. | |
float | m_globalY |
Global position Y coordinate. | |
float | m_globalZ |
Global position Z coordinate. | |
float | m_e = 0 |
Energy. | |
float | m_pX = 0 |
Momentum X component. | |
float | m_pY = 0 |
Momentum Y component. | |
float | m_pZ = 0 |
Momentum Z component. | |
unsigned short | m_backgroundTag |
Background tag. | |
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. | |
KLM simulation hit.
Definition at line 31 of file KLMSimHit.h.
|
inline |
|
inline |
|
inlineinherited |
Add a relation from this object to another object (with caching).
object | The object to which the relation should point. |
weight | The weight of the relation. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 142 of file RelationsObject.h.
|
inlineinherited |
Add a relation from this object to another object (no caching, can be quite slow).
object | The object to which the relation should point. |
weight | The weight of the relation. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 155 of file RelationsObject.h.
|
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.
|
inlineinherited |
Returns this object's array index (in StoreArray), or -1 if not found.
Definition at line 385 of file RelationsObject.h.
|
inlineinherited |
Get name of array this object is stored in, or "" if not found.
Definition at line 377 of file RelationsObject.h.
|
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.
|
inlinevirtualinherited |
Get background tag.
Definition at line 46 of file SimHitBase.h.
|
inline |
|
inlineoverridevirtual |
Get hit time (implementation of base class function)
Reimplemented from SimHitBase.
Definition at line 453 of file KLMSimHit.h.
|
inlineinherited |
Return a short summary of this object's contents in raw text format.
Returns the contents of getInfoHTML() while translating line-breaks etc.
Definition at line 370 of file RelationsObject.h.
|
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:
Reimplemented in Particle, Cluster, MCParticle, PIDLikelihood, SoftwareTriggerResult, Track, TrackFitResult, TRGSummary, and RecoTrack.
Definition at line 362 of file RelationsObject.h.
|
inline |
Get last strip number.
Definition at line 232 of file KLMSimHit.h.
|
inline |
|
inline |
Get ihit local position.
Definition at line 354 of file KLMSimHit.h.
|
inline |
Get hit local position x coordinate.
Definition at line 327 of file KLMSimHit.h.
|
inline |
Get hit local position y coordinate.
Definition at line 336 of file KLMSimHit.h.
|
inline |
Get hit local position z coordinate.
Definition at line 345 of file KLMSimHit.h.
|
inline |
|
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.
|
inline |
|
inline |
Get the lund code of the (leading) particle.
Definition at line 53 of file KLMSimHit.h.
|
inline |
|
inline |
Get hit global position.
Definition at line 414 of file KLMSimHit.h.
|
inline |
Get hit global position x coordinate.
Definition at line 387 of file KLMSimHit.h.
|
inline |
Get hit global position y coordinate.
Definition at line 396 of file KLMSimHit.h.
|
inline |
Get hit global position z coordinate.
Definition at line 405 of file KLMSimHit.h.
|
inline |
Get signal propagation time.
Definition at line 296 of file KLMSimHit.h.
|
inlineinherited |
Get the object to or from which this object has a relation.
T | The class of objects to or from which the relation points. |
name | The 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. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 278 of file RelationsObject.h.
|
inlineinherited |
Get the object from which this object has a relation.
FROM | The class of objects from which the relation points. |
name | The 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. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 263 of file RelationsObject.h.
|
inlineinherited |
Get first related object & weight of relation pointing from an array.
FROM | The class of objects from which the relation points. |
name | The 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. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 314 of file RelationsObject.h.
|
inlineinherited |
Get the object to which this object has a relation.
TO | The class of objects to which the relation points. |
name | The 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. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 248 of file RelationsObject.h.
|
inlineinherited |
Get first related object & weight of relation pointing to an array.
TO | The class of objects to which the relation points. |
name | The 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. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 297 of file RelationsObject.h.
|
inlineinherited |
Get first related object & weight of relation pointing from/to an array.
T | The class of objects to or from which the relation points. |
name | The 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. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 331 of file RelationsObject.h.
|
inlineinherited |
Get the relations that point from another store array to this object.
FROM | The class of objects from which the relations point. |
name | The 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. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 212 of file RelationsObject.h.
|
inlineinherited |
Get the relations that point from this object to another store array.
TO | The class of objects to which the relations point. |
name | The 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. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 197 of file RelationsObject.h.
|
inlineinherited |
Get the relations between this object and another store array.
Relations in both directions are returned.
T | The class of objects to or from which the relations point. |
name | The 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. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 230 of file RelationsObject.h.
|
inline |
|
inline |
|
inline |
|
inline |
Get subdetector number.
Definition at line 116 of file KLMSimHit.h.
|
inline |
|
inline |
|
inline |
|
inline |
Determine whether the hit is in RPC or scintillator.
Definition at line 250 of file KLMSimHit.h.
|
inline |
|
inlinevirtualinherited |
Set background tag.
backgroundTag | The desired setting of the background tag. |
Definition at line 39 of file SimHitBase.h.
|
inline |
|
inline |
Set last strip number.
[in] | lastStrip | Last strip number. |
Definition at line 241 of file KLMSimHit.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Set the lund code of the (leading) particle.
[in] | pdg | Particle code. |
Definition at line 62 of file KLMSimHit.h.
|
inline |
|
inline |
|
inline |
|
inline |
Set signal propagation time.
[in] | propagationTime | Time of propagation (ns) from strip to sensor. |
Definition at line 305 of file KLMSimHit.h.
|
inline |
Set section number.
[in] | Section | Section number. |
Definition at line 143 of file KLMSimHit.h.
|
inline |
|
inline |
|
inline |
Set subdetector number.
[in] | subdetector | Subdetector number. |
Definition at line 125 of file KLMSimHit.h.
|
inline |
|
inline |
|
inline |
|
inlineoverridevirtual |
Shift SimHit in time (implementation of base class function)
delta | time shift. |
Reimplemented from SimHitBase.
Definition at line 462 of file KLMSimHit.h.
|
privateinherited |
Background tag.
Definition at line 68 of file SimHitBase.h.
|
mutableprivateinherited |
Cache of the index in the TClonesArray to which this object belongs.
Definition at line 432 of file RelationsObject.h.
|
mutableprivateinherited |
Cache of the data store entry to which this object belongs.
Definition at line 429 of file RelationsObject.h.
|
private |
Energy.
Definition at line 530 of file KLMSimHit.h.
|
private |
Energy deposition.
Definition at line 506 of file KLMSimHit.h.
|
private |
Global position X coordinate.
Definition at line 521 of file KLMSimHit.h.
|
private |
Global position Y coordinate.
Definition at line 524 of file KLMSimHit.h.
|
private |
Global position Z coordinate.
Definition at line 527 of file KLMSimHit.h.
|
private |
Number of last strip (for BKLM RPC hits).
Definition at line 500 of file KLMSimHit.h.
|
private |
Number of layer.
Definition at line 488 of file KLMSimHit.h.
|
private |
Local position X coordinate.
Definition at line 512 of file KLMSimHit.h.
|
private |
Local position Y coordinate.
Definition at line 515 of file KLMSimHit.h.
|
private |
Local position Z coordinate.
Definition at line 518 of file KLMSimHit.h.
|
private |
Parent track ID.
Definition at line 476 of file KLMSimHit.h.
|
private |
PDG code of the (leading) particle.
Definition at line 470 of file KLMSimHit.h.
|
private |
Number of plane.
Definition at line 494 of file KLMSimHit.h.
|
private |
Time of propagation (ns) from hit to sensor.
Definition at line 509 of file KLMSimHit.h.
|
private |
Momentum X component.
Definition at line 533 of file KLMSimHit.h.
|
private |
Momentum Y component.
Definition at line 536 of file KLMSimHit.h.
|
private |
Momentum Z component.
Definition at line 539 of file KLMSimHit.h.
|
private |
Number of section.
Definition at line 485 of file KLMSimHit.h.
|
private |
Number of sector.
Definition at line 491 of file KLMSimHit.h.
|
private |
Number of strip.
Definition at line 497 of file KLMSimHit.h.
|
private |
Number of subdetector.
Definition at line 482 of file KLMSimHit.h.
|
private |
Time of the hit.
Definition at line 503 of file KLMSimHit.h.
|
private |
Track ID.
Definition at line 473 of file KLMSimHit.h.
|
private |
Volume identifier.
Definition at line 479 of file KLMSimHit.h.