Belle II Software development
|
This class stores additional information to every CDC/SVD/PXD hit stored in a RecoTrack. More...
#include <RecoHitInformation.h>
Public Types | |
enum | RightLeftInformation { c_undefinedRightLeftInformation , c_invalidRightLeftInformation , c_right , c_left } |
The RightLeft information of the hit which is only valid for CDC hits. More... | |
enum | OriginTrackFinder { c_undefinedTrackFinder , c_MCTrackFinderPriorityHit , c_MCTrackFinderAuxiliaryHit , c_invalidTrackFinder , c_CDCTrackFinder , c_LocalTrackFinder , c_SegmentTrackCombiner , c_VXDTrackFinder , c_SVDtoCDCCKF , c_ECLtoCDCCKF , c_CDCtoSVDCKF , c_SVDtoPXDCKF , c_SVDHough , c_ReattachCDCWireHitsToRecoTracks , c_Trasan , c_other } |
The TrackFinder which has added the hit to the track. More... | |
enum | RecoHitFlag { c_undefinedRecoHitFlag , c_dismissedByFit , c_pruned } |
Another flag to be used (currently unused) More... | |
enum | RecoHitDetector { c_undefinedTrackingDetector , c_invalidTrackingDetector , c_SVD , c_PXD , c_CDC , c_EKLM , c_BKLM } |
The detector this hit comes from (which is of course also visible in the hit type) More... | |
typedef SVDCluster | UsedSVDHit |
Define, use of clusters or true hits for SVD. | |
typedef PXDCluster | UsedPXDHit |
Define, use of clusters or true hits for PXD. | |
typedef CDCHit | UsedCDCHit |
Define, use of CDC hits as CDC hits (for symmetry). | |
typedef KLMHit2d | UsedBKLMHit |
Define, use of KLMHit2d as BKLM hits. | |
typedef EKLMAlignmentHit | UsedEKLMHit |
Define, use of EKLMHit2d as EKLM hits. | |
Public Member Functions | |
RecoHitInformation () | |
Empty constructor for root. | |
RecoHitInformation (const UsedCDCHit *cdcHit, RightLeftInformation rightLeftInformation, OriginTrackFinder foundByTrackFinder, unsigned int sortingParameter) | |
Create hit information for a CDC hit with the given information. | |
RecoHitInformation (const UsedPXDHit *pxdHit, OriginTrackFinder foundByTrackFinder, unsigned int sortingParameter) | |
Create hit information for a PXD hit with the given information. | |
RecoHitInformation (const UsedSVDHit *svdHit, OriginTrackFinder foundByTrackFinder, unsigned int sortingParameter) | |
Create hit information for a SVD hit with the given information. | |
RecoHitInformation (const UsedEKLMHit *eklmHit, OriginTrackFinder foundByTrackFinder, unsigned int sortingParameter) | |
Create hit information for a EKLM hit with the given information. | |
RecoHitInformation (const UsedBKLMHit *bklmHit, OriginTrackFinder foundByTrackFinder, unsigned int sortingParameter) | |
Create hit information for a BKLM hit with the given information. | |
RecoHitFlag | getFlag () const |
Get the additional flag. | |
void | setFlag (RecoHitFlag flag) |
Set the additional flag. | |
OriginTrackFinder | getFoundByTrackFinder () const |
Get which track finder has found the track. | |
void | setFoundByTrackFinder (OriginTrackFinder foundByTrackFinder) |
Set which track finder has found the track. | |
unsigned int | getSortingParameter () const |
Get the sorting parameter. | |
void | setSortingParameter (unsigned int sortingParameter) |
Set the sorting parameter. | |
RightLeftInformation | getRightLeftInformation () const |
Get the right-left-information. | |
void | setRightLeftInformation (RightLeftInformation rightLeftInformation) |
Set the right-left-information. | |
RecoHitDetector | getTrackingDetector () const |
Get the detector this hit comes from. | |
bool | useInFit () const |
Get the flag, whether this his should be used in a fit or not. | |
void | setUseInFit (const bool useInFit=true) |
Set the hit to be used (default) or not in the next fit. | |
void | setCreatedTrackPointID (int trackPointID) |
Set the id of the created track point to the one from the genfit::Track. | |
int | getCreatedTrackPointID () const |
Get the id of the TrackPoint related to this reco hit information in the genfit::Track. | |
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 | |
template<class HitType > | |
RecoHitInformation (const HitType *hit, RecoHitDetector trackingDetector, RightLeftInformation rightLeftInformation, OriginTrackFinder foundByTrackFinder, unsigned int sortingParameter) | |
Create hit information for a generic hit with the given information. | |
ClassDef (RecoHitInformation, 6) | |
This class implements additional information for hits. | |
Private Attributes | |
RecoHitDetector | m_trackingDetector = RecoHitDetector::c_undefinedTrackingDetector |
The tracking detector this hit comes from (can not be changed once created) | |
RightLeftInformation | m_rightLeftInformation = RightLeftInformation::c_undefinedRightLeftInformation |
The right-left-information of the hit. Can be invalid (for VXD hits) or unknown. | |
unsigned int | m_sortingParameter = 0 |
The sorting parameter as an index. | |
OriginTrackFinder | m_foundByTrackFinder = OriginTrackFinder::c_undefinedTrackFinder |
Which track finder has found this hit and added it to the reco track. | |
RecoHitFlag | m_flag = RecoHitFlag::c_undefinedRecoHitFlag |
An additional flag to be used. | |
bool | m_useInFit = true |
Set this flag to false to not create a measurement out of this hit. | |
int | m_createdTrackPointID = -1 |
The index for the created TrackPoint in the genfit::Track of the related RecoTrack. | |
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. | |
This class stores additional information to every CDC/SVD/PXD hit stored in a RecoTrack.
Every hit information belongs to a single hit and a single RecoTrack (stored with relation). If one hit should belong to more than one track, you have to create more than one RecoHitInformation.
The RecoHitInformation stores information on:
The stored information can be used when transforming a RecoTrack into a genfit::Track or genfit::TrackCand
Definition at line 38 of file RecoHitInformation.h.
typedef KLMHit2d UsedBKLMHit |
Define, use of KLMHit2d as BKLM hits.
Definition at line 56 of file RecoHitInformation.h.
typedef CDCHit UsedCDCHit |
Define, use of CDC hits as CDC hits (for symmetry).
Definition at line 53 of file RecoHitInformation.h.
typedef EKLMAlignmentHit UsedEKLMHit |
Define, use of EKLMHit2d as EKLM hits.
Definition at line 59 of file RecoHitInformation.h.
typedef PXDCluster UsedPXDHit |
Define, use of clusters or true hits for PXD.
Definition at line 50 of file RecoHitInformation.h.
typedef SVDCluster UsedSVDHit |
Define, use of clusters or true hits for SVD.
You have to decide, if you want to use Clusters or true hits at compile-time. In the real experiment, we want to use clusters without overhead from checking every time, if we should use true hits instead.
Definition at line 47 of file RecoHitInformation.h.
enum OriginTrackFinder |
The TrackFinder which has added the hit to the track.
Definition at line 70 of file RecoHitInformation.h.
enum RecoHitDetector |
The detector this hit comes from (which is of course also visible in the hit type)
Definition at line 110 of file RecoHitInformation.h.
enum RecoHitFlag |
Another flag to be used (currently unused)
Definition at line 103 of file RecoHitInformation.h.
enum RightLeftInformation |
The RightLeft information of the hit which is only valid for CDC hits.
Definition at line 62 of file RecoHitInformation.h.
|
inline |
|
inline |
Create hit information for a CDC hit with the given information.
Adds the relation to the hit automatically.
cdcHit | The hit to create this information for. |
rightLeftInformation | The RL-information. |
foundByTrackFinder | Which track finder has found this hit? |
sortingParameter | The sorting parameter of this hit. |
Definition at line 133 of file RecoHitInformation.h.
|
inline |
Create hit information for a PXD hit with the given information.
Adds the relation to the hit automatically.
pxdHit | The hit to create this information for. |
foundByTrackFinder | Which track finder has found this hit? |
sortingParameter | The sorting parameter of this hit. |
Definition at line 145 of file RecoHitInformation.h.
|
inline |
Create hit information for a SVD hit with the given information.
Adds the relation to the hit automatically.
svdHit | The hit to create this information for. |
foundByTrackFinder | Which track finder has found this hit? |
sortingParameter | The sorting parameter of this hit. |
Definition at line 158 of file RecoHitInformation.h.
|
inline |
Create hit information for a EKLM hit with the given information.
Adds the relation to the hit automatically.
eklmHit | The hit to create this information for. |
foundByTrackFinder | Which track finder has found this hit? |
sortingParameter | The sorting parameter of this hit. |
Definition at line 171 of file RecoHitInformation.h.
|
inline |
Create hit information for a BKLM hit with the given information.
Adds the relation to the hit automatically.
bklmHit | The hit to create this information for. |
foundByTrackFinder | Which track finder has found this hit? |
sortingParameter | The sorting parameter of this hit. |
Definition at line 184 of file RecoHitInformation.h.
|
inlineprivate |
Create hit information for a generic hit with the given information.
Adds the relation to the hit automatically.
hit | the hit to create a reco hit information for. |
trackingDetector | The detector the hit comes from. |
rightLeftInformation | The right left information (can be invalid) |
foundByTrackFinder | Which track finder has found the hit. |
sortingParameter | The sorting parameter of the hit. |
Definition at line 309 of file RecoHitInformation.h.
|
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.
|
inline |
Get the id of the TrackPoint related to this reco hit information in the genfit::Track.
Do not use this method unless you really know what you are doing. Better, use the methods of the RecoTrack itself to retrieve the TrackPoint directly.
Definition at line 273 of file RecoHitInformation.h.
|
inline |
Get the additional flag.
Definition at line 192 of file RecoHitInformation.h.
|
inline |
Get which track finder has found the track.
Definition at line 204 of file RecoHitInformation.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.
|
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.
|
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 |
Get the right-left-information.
Definition at line 228 of file RecoHitInformation.h.
|
inline |
Get the sorting parameter.
Definition at line 216 of file RecoHitInformation.h.
|
inline |
Get the detector this hit comes from.
(can not be changed once created)
Definition at line 240 of file RecoHitInformation.h.
|
inline |
Set the id of the created track point to the one from the genfit::Track.
This should only be used, if you really know what you are doing.
Definition at line 261 of file RecoHitInformation.h.
|
inline |
Set the additional flag.
Definition at line 198 of file RecoHitInformation.h.
|
inline |
Set which track finder has found the track.
Definition at line 210 of file RecoHitInformation.h.
|
inline |
Set the right-left-information.
Definition at line 234 of file RecoHitInformation.h.
|
inline |
Set the sorting parameter.
Definition at line 222 of file RecoHitInformation.h.
|
inline |
Set the hit to be used (default) or not in the next fit.
Definition at line 252 of file RecoHitInformation.h.
|
inline |
Get the flag, whether this his should be used in a fit or not.
Definition at line 246 of file RecoHitInformation.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 |
The index for the created TrackPoint in the genfit::Track of the related RecoTrack.
Do not use this id, if you do not really know the consequences, but let the RecoTrack handle the internals.
Definition at line 298 of file RecoHitInformation.h.
|
private |
An additional flag to be used.
Definition at line 290 of file RecoHitInformation.h.
|
private |
Which track finder has found this hit and added it to the reco track.
Can only be used if creating the RecoTrack in the track finder.
Definition at line 288 of file RecoHitInformation.h.
|
private |
The right-left-information of the hit. Can be invalid (for VXD hits) or unknown.
Definition at line 282 of file RecoHitInformation.h.
|
private |
The sorting parameter as an index.
Definition at line 285 of file RecoHitInformation.h.
|
private |
The tracking detector this hit comes from (can not be changed once created)
Definition at line 280 of file RecoHitInformation.h.
|
private |
Set this flag to false to not create a measurement out of this hit.
Definition at line 292 of file RecoHitInformation.h.