eventAnalysis  7.0-49-g0ac7482
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ND::TP0DReconModule::ObjectID Struct Reference

An internal Id and object type for each Reconstruction object. More...

#include <TP0DReconModule.hxx>

+ Collaboration diagram for ND::TP0DReconModule::ObjectID:

Public Types

enum  OType_t {
  kBlank = 0, kVertex, kParticle, kTrack,
  kShower, kCluster, kHit
}
 

Public Member Functions

 ObjectID ()
 

Public Attributes

short id
 An internal Id for each Reconstruction object. More...
 
OType_t type
 The reconstruction object type that this internal Id refers to. More...
 

Detailed Description

An internal Id and object type for each Reconstruction object.

Definition at line 42 of file TP0DReconModule.hxx.

Member Enumeration Documentation

Enumerator
kBlank 
kVertex 
kParticle 
kTrack 
kShower 
kCluster 
kHit 

Definition at line 58 of file TP0DReconModule.hxx.

Constructor & Destructor Documentation

ND::TP0DReconModule::ObjectID::ObjectID ( )

Definition at line 75 of file TP0DReconModule.hxx.

References kBlank, and type.

Member Data Documentation

short ND::TP0DReconModule::ObjectID::id

An internal Id for each Reconstruction object.

These Ids are sequential from 0 for each object type within each event and correspond to their position within the respective TClonesArrays e.g. ND::TP0DReconModule::fNVertices. They are set within the various Fill<type>() methods e.g. ND::TP0DReconModule::FillVertexObject

ObjectID vertexID;
vertexID.id = fNVertices;
and used by the, per event, reconstruction objects to keep track of which other objects relate to this one e.g. ND::TP0DReconModule::TP0DVertex::Particles.

Definition at line 57 of file TP0DReconModule.hxx.

Referenced by ND::TP0DReconModule::FillAlgorithmResult(), ND::TP0DReconModule::FillBaseObject(), ND::TP0DReconModule::FillClusterObject(), ND::TP0DReconModule::FillParticleObject(), ND::TP0DReconModule::FillShowerObject(), ND::TP0DReconModule::FillTrackObject(), and ND::TP0DReconModule::FillVertexObject().

OType_t ND::TP0DReconModule::ObjectID::type

The reconstruction object type that this internal Id refers to.

Not explicitly stored in output TTree. Used in ND::TP0DReconModule::FillReconObject to determine which Fill<type>() Method to call.

std::string reco_class_name = reconObject->ClassName();
if(reco_class_name.find("ND::TReconVertex") != std::string::npos){
ND280Verbose("Fill Vertex");
return FillVertexObject(reconObject, saveHits);
}

Definition at line 74 of file TP0DReconModule.hxx.

Referenced by ND::TP0DReconModule::FillAlgorithmResult(), ND::TP0DReconModule::FillBaseObject(), ND::TP0DReconModule::FillClusterObject(), ND::TP0DReconModule::FillParticleObject(), ND::TP0DReconModule::FillShowerObject(), ND::TP0DReconModule::FillTrackObject(), ND::TP0DReconModule::FillVertexObject(), and ObjectID().


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

Package Summary
Package Name: eventAnalysis
Package Version: 7.0-49-g0ac7482
Package Manager:

Generated on Mon Mar 25 2024 14:44:02 for eventAnalysis by doxygen 1.8.5