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

A summary of the reconstruction information in a TReconPID. More...

#include <TP0DReconModule.hxx>

+ Inheritance diagram for ND::TP0DReconModule::TP0DParticle:
+ Collaboration diagram for ND::TP0DReconModule::TP0DParticle:

Public Member Functions

virtual ~TP0DParticle ()
 
 ClassDef (TP0DReconModule::TP0DParticle, 5)
 

Public Attributes

std::string AlgorithmName
 The name of the p0dRecon algorithm that created this object. More...
 
float Charge
 The reconstructed charge of the corresponding TReconPID. More...
 
std::vector< short > Clusters
 Holds internal Ids of Clusters pertinent to this reconstructed particle. More...
 
short Cycle
 The cycle number, based on the first hit. More...
 
TVector3 Direction
 Direction of the TPIDState of the corresponding ND::TReconPID. More...
 
TVector3 DirVariance
 Variance on the TP0DParticle::Direction of the TPIDState of the corresponding ND::TReconPID. More...
 
float EndDeposit
 The deposited charge in the end p0dules. More...
 
std::vector< short > Hits
 Holds internal Ids of Hits pertinent to this reconstructed particle. More...
 
std::vector< std::string > integerPIDNames
 Holds the variable names of ND::TIntegerDatum stored in the TReconPID. More...
 
std::vector< std::vector< short > > integerPIDValues
 Holds the PID variable values from ND::TIntegerDatum stored in the TReconPID. More...
 
float Momentum
 The reconstructed momentum of the corresponding TReconPID. More...
 
int NDOF
 The Number of Degrees of Freedom in the reconstruction of the. More...
 
short NHits
 A count of the Hits associated with this object. More...
 
std::vector< short > Nodes
 Holds internal Ids of Nodes pertinent to this reconstructed particle (probably not what you want for a TP0DParticle). This vector has the index in the ND::TP0DReconModule::fNodes vector of the nodes associated with this object. The nodes for a TP0DParticle don't hold the expected information for most P0D analyses, so you probably should be accessing the nodes of the constituent track. More...
 
std::vector< short > Particles
 Holds internal Ids of Particles pertinent to this reconstructed particle. More...
 
std::vector< short > PID
 Potential PIDs (ND::TReconPID::ParticleId) matching with. More...
 
std::vector< float > PID_weight
 PID weights for each PID in TP0DParticle::PID. More...
 
TLorentzVector Position
 Position of the TPIDState of the corresponding ND::TReconPID. More...
 
TLorentzVector PosVariance
 Variance on the position of the TPIDState of the corresponding ND::TReconPID. More...
 
float Quality
 The reported reconstruction 'quality' of the corresponding ND::TReconPID. More...
 
std::vector< std::string > realPIDNames
 Holds the variable names of ND::TRealDatum stored in the TReconPID. More...
 
std::vector< std::vector< float > > realPIDValues
 Holds the PID variable values from ND::TRealDatum stored in the TReconPID. More...
 
std::vector< short > Showers
 Holds internal Ids of Showers pertinent to this reconstructed particle. More...
 
float SideDeposit
 The deposited charge in the side bars. More...
 
int Status
 The reported Status of the corresponding ND::TReconPID. More...
 
std::vector< short > Tracks
 Holds internal Ids of Tracks pertinent to this reconstructed particle. More...
 
std::vector< float > Truth_ChargeShare
 The weighted reconstructed charge deposited by each truth trajectory. More...
 
std::vector< short > Truth_HitCount
 The number of THits that each truth trajectory contributed to. More...
 
std::vector< int > Truth_PrimaryTrajIDs
 The vector of primary true trajectory IDs which contribute to the ND::THits which are constituents of this vertex. More...
 
std::vector< int > Truth_TrajIDs
 The vector of true trajectory IDs which contribute to the ND::THits which are constituents of this vertex. More...
 
UInt_t UniqueID
 The Unique ID of the corresponding ND::TReconPID, used for global-subdetector matching. More...
 
short ValidDimensions
 Bit flag demarkating valid dimensions for this particle's position. More...
 
std::vector< short > Vertices
 Holds internal Ids of Vertices pertinent to this reconstructed particle. More...
 

Detailed Description

A summary of the reconstruction information in a TReconPID.

Do NOT access nodes for a TP0DParticle. Instead access the TP0DTrack or TP0DShower associated with the TP0DParticle and access the TP0DNodes associated with those objects. Currently, TP0DParticle's Nodes are not filled correctly.

Definition at line 331 of file TP0DReconModule.hxx.

Constructor & Destructor Documentation

ND::TP0DReconModule::TP0DParticle::~TP0DParticle ( )
virtual

Definition at line 56 of file TP0DReconModule.cxx.

Member Function Documentation

ND::TP0DReconModule::TP0DParticle::ClassDef ( TP0DReconModule::TP0DParticle  ,
 
)

Member Data Documentation

std::string ND::TP0DReconModule::TP0DParticle::AlgorithmName

The name of the p0dRecon algorithm that created this object.

Definition at line 341 of file TP0DReconModule.hxx.

float ND::TP0DReconModule::TP0DParticle::Charge

The reconstructed charge of the corresponding TReconPID.

Definition at line 487 of file TP0DReconModule.hxx.

Referenced by ND::TP0DReconModule::FillParticleObject().

std::vector<short> ND::TP0DReconModule::TP0DParticle::Clusters

Holds internal Ids of Clusters pertinent to this reconstructed particle.

Holds ND::TP0DReconModule::ObjectID::id of ND::TP0DReconModule::TP0DCluster objects which are equivalent to indicies of ND::TP0DReconModule::fClusters which hold Clusters related to this reconstructed particle.

Definition at line 369 of file TP0DReconModule.hxx.

short ND::TP0DReconModule::TP0DParticle::Cycle

The cycle number, based on the first hit.

Definition at line 345 of file TP0DReconModule.hxx.

TVector3 ND::TP0DReconModule::TP0DParticle::Direction

Direction of the TPIDState of the corresponding ND::TReconPID.

ND::THandle<ND::TPIDState> particleState = particle->GetState();
p0dParticle->Direction = particleState->GetDirection();

Definition at line 475 of file TP0DReconModule.hxx.

Referenced by ND::TP0DReconModule::FillParticleObject().

TVector3 ND::TP0DReconModule::TP0DParticle::DirVariance

Variance on the TP0DParticle::Direction of the TPIDState of the corresponding ND::TReconPID.

ND::THandle<ND::TPIDState> particleState = particle->GetState();
p0dParticle->DirVariance = particleState->GetDirectionVariance();

Definition at line 479 of file TP0DReconModule.hxx.

Referenced by ND::TP0DReconModule::FillParticleObject().

float ND::TP0DReconModule::TP0DParticle::EndDeposit

The deposited charge in the end p0dules.

ND::TGeometryId geomid = (*hit)->GetGeomId();
int p0dule = ND::TGeomInfo::P0D().GetBar(geomid).GetP0Dule();
if(p0dule > 38){
p0dParticle->EndDeposit += (*hit)->GetCharge();
}

Definition at line 454 of file TP0DReconModule.hxx.

Referenced by ND::TP0DReconModule::FillParticleObject().

std::vector<short> ND::TP0DReconModule::TP0DParticle::Hits

Holds internal Ids of Hits pertinent to this reconstructed particle.

Holds ND::TP0DReconModule::ObjectID::id of ND::TP0DReconModule::TP0DHit objects which are equivalent to indicies of ND::TP0DReconModule::fHits which hold Hits related to this reconstructed particle.

Definition at line 375 of file TP0DReconModule.hxx.

std::vector<std::string> ND::TP0DReconModule::TP0DParticle::integerPIDNames

Holds the variable names of ND::TIntegerDatum stored in the TReconPID.

The index of a given variable's name corresponds to the index of it's value held in TP0DParticle::integerPIDValues.

Definition at line 496 of file TP0DReconModule.hxx.

Referenced by ND::TP0DReconModule::FillParticleObject().

std::vector<std::vector<short> > ND::TP0DReconModule::TP0DParticle::integerPIDValues

Holds the PID variable values from ND::TIntegerDatum stored in the TReconPID.

The index of a given variable's value vector corresponds to the index of it's name in TP0DParticle::integerPIDNames.

Definition at line 499 of file TP0DReconModule.hxx.

Referenced by ND::TP0DReconModule::FillParticleObject().

float ND::TP0DReconModule::TP0DParticle::Momentum

The reconstructed momentum of the corresponding TReconPID.

Definition at line 485 of file TP0DReconModule.hxx.

Referenced by ND::TP0DReconModule::FillParticleObject().

int ND::TP0DReconModule::TP0DParticle::NDOF

The Number of Degrees of Freedom in the reconstruction of the.

corresponding ND::TReconPID.

Retreived from ND::TReconBase::GetNDOF

p0dVertex->NDOF = vertex->GetNDOF();

Definition at line 400 of file TP0DReconModule.hxx.

Referenced by ND::TP0DReconModule::FillParticleObject().

short ND::TP0DReconModule::TP0DParticle::NHits

A count of the Hits associated with this object.

Definition at line 380 of file TP0DReconModule.hxx.

std::vector<short> ND::TP0DReconModule::TP0DParticle::Nodes

Holds internal Ids of Nodes pertinent to this reconstructed particle (probably not what you want for a TP0DParticle). This vector has the index in the ND::TP0DReconModule::fNodes vector of the nodes associated with this object. The nodes for a TP0DParticle don't hold the expected information for most P0D analyses, so you probably should be accessing the nodes of the constituent track.

Definition at line 374 of file TP0DReconModule.hxx.

std::vector<short> ND::TP0DReconModule::TP0DParticle::Particles

Holds internal Ids of Particles pertinent to this reconstructed particle.

Holds ND::TP0DReconModule::ObjectID::id of ND::TP0DReconModule::TP0DParticle objects which are equivalent to indicies of ND::TP0DReconModule::fParticles which hold Particles related to this reconstructed particle.

Definition at line 354 of file TP0DReconModule.hxx.

std::vector<short> ND::TP0DReconModule::TP0DParticle::PID

Potential PIDs (ND::TReconPID::ParticleId) matching with.

TP0DParticle::PID_Weight values.

Definition at line 503 of file TP0DReconModule.hxx.

Referenced by ND::TP0DReconModule::FillParticleObject().

std::vector<float> ND::TP0DReconModule::TP0DParticle::PID_weight

PID weights for each PID in TP0DParticle::PID.

Definition at line 506 of file TP0DReconModule.hxx.

Referenced by ND::TP0DReconModule::FillParticleObject().

TLorentzVector ND::TP0DReconModule::TP0DParticle::Position

Position of the TPIDState of the corresponding ND::TReconPID.

ND::THandle<ND::TPIDState> particleState = particle->GetState();
p0dParticle->Position = particleState->GetPosition();

Definition at line 462 of file TP0DReconModule.hxx.

Referenced by ND::TP0DReconModule::FillParticleObject().

TLorentzVector ND::TP0DReconModule::TP0DParticle::PosVariance

Variance on the position of the TPIDState of the corresponding ND::TReconPID.

ND::THandle<ND::TPIDState> particleState = particle->GetState();
p0dParticle->PosVariance = particleState->GetPositionVariance();

Definition at line 466 of file TP0DReconModule.hxx.

Referenced by ND::TP0DReconModule::FillParticleObject().

float ND::TP0DReconModule::TP0DParticle::Quality

The reported reconstruction 'quality' of the corresponding ND::TReconPID.

Uses ND::TReconBase::GetQuality

p0dVertex->Quality = vertex->GetQuality();

Definition at line 396 of file TP0DReconModule.hxx.

Referenced by ND::TP0DReconModule::FillParticleObject().

std::vector<std::string> ND::TP0DReconModule::TP0DParticle::realPIDNames

Holds the variable names of ND::TRealDatum stored in the TReconPID.

The index of a given variable's name corresponds to the index of it's value held in TP0DParticle::realPIDValues.

Definition at line 489 of file TP0DReconModule.hxx.

Referenced by ND::TP0DReconModule::FillParticleObject().

std::vector<std::vector<float> > ND::TP0DReconModule::TP0DParticle::realPIDValues

Holds the PID variable values from ND::TRealDatum stored in the TReconPID.

The index of a given variable's value vector corresponds to the index of it's name in TP0DParticle::realPIDNames.

Definition at line 492 of file TP0DReconModule.hxx.

Referenced by ND::TP0DReconModule::FillParticleObject().

std::vector<short> ND::TP0DReconModule::TP0DParticle::Showers

Holds internal Ids of Showers pertinent to this reconstructed particle.

Holds ND::TP0DReconModule::ObjectID::id of ND::TP0DReconModule::TP0DShower objects which are equivalent to indicies of ND::TP0DReconModule::fShowers which hold Showers related to this reconstructed particle.

Definition at line 364 of file TP0DReconModule.hxx.

float ND::TP0DReconModule::TP0DParticle::SideDeposit

The deposited charge in the side bars.

ND::TGeometryId geomid = (*hit)->GetGeomId();
int layer = ND::TGeomInfo::P0D().GetBar(geomid).GetLayer();
int bar = ND::TGeomInfo::P0D().GetBar(geomid).GetNumber();
if(bar < 4 || (layer == 0 && bar > 121) || (layer == 1 && bar > 129)){
p0dParticle->SideDeposit += (*hit)->GetCharge();
}

Definition at line 446 of file TP0DReconModule.hxx.

Referenced by ND::TP0DReconModule::FillParticleObject().

int ND::TP0DReconModule::TP0DParticle::Status

The reported Status of the corresponding ND::TReconPID.

p0dVertex->Status = vertex->GetStatus();
Use ND::TReconBase::StateBits to check the which status flags are set.

Definition at line 392 of file TP0DReconModule.hxx.

Referenced by ND::TP0DReconModule::FillParticleObject().

std::vector<short> ND::TP0DReconModule::TP0DParticle::Tracks

Holds internal Ids of Tracks pertinent to this reconstructed particle.

Holds ND::TP0DReconModule::ObjectID::id of ND::TP0DReconModule::TP0DTrack objects which are equivalent to indicies of ND::TP0DReconModule::fTracks which hold Tracks related to this reconstructed particle.

Definition at line 359 of file TP0DReconModule.hxx.

std::vector<float> ND::TP0DReconModule::TP0DParticle::Truth_ChargeShare

The weighted reconstructed charge deposited by each truth trajectory.

For each THit, a trajectory will receive a proportional share of the charge, based on the total true charge deposited by all contributing trajectories. Indexed by the position of the relevant trajectory ID in TP0DParticle::Truth_TrajIDs. See ND::TP0DReconModule::HitTruthInfo for how they are calculated.

Definition at line 437 of file TP0DReconModule.hxx.

Referenced by ND::TP0DReconModule::FillParticleObject().

std::vector<short> ND::TP0DReconModule::TP0DParticle::Truth_HitCount

The number of THits that each truth trajectory contributed to.

This doesn't have to equal the number of hits, hits can be shared and some hits may not have associated trajectories. Indexed by the position of the relevant trajectory ID in TP0DParticle::Truth_TrajIDs. See ND::TP0DReconModule::HitTruthInfo for how they are calculated.

Definition at line 428 of file TP0DReconModule.hxx.

Referenced by ND::TP0DReconModule::FillParticleObject().

std::vector<int> ND::TP0DReconModule::TP0DParticle::Truth_PrimaryTrajIDs

The vector of primary true trajectory IDs which contribute to the ND::THits which are constituents of this vertex.

These are 'pseudo-primaries', which may or may not be primaries for a vertex. It is the 'interesting' primary that is defined by nd280Geant4Sim, and can include particles such as photons from pi0 decay and michel electrons from muon decay. If you want to be sure of finding a vertex, use the TP0DParticle::Truth_TrajIDs list and get primary ID from the trajectories. See ND::TP0DReconModule::HitTruthPrimaryInfo for how they are calculated.

Definition at line 410 of file TP0DReconModule.hxx.

Referenced by ND::TP0DReconModule::FillParticleObject().

std::vector<int> ND::TP0DReconModule::TP0DParticle::Truth_TrajIDs

The vector of true trajectory IDs which contribute to the ND::THits which are constituents of this vertex.

The index of a given trajectory id within this vector is used as the index for the corresponding information held in TP0DParticle::Truth_HitCount and TP0DParticle::Truth_ChargeShare. See ND::TP0DReconModule::HitTruthInfo for how they are calculated.

Definition at line 421 of file TP0DReconModule.hxx.

Referenced by ND::TP0DReconModule::FillParticleObject().

UInt_t ND::TP0DReconModule::TP0DParticle::UniqueID

The Unique ID of the corresponding ND::TReconPID, used for global-subdetector matching.

In ND::TP0DReconModule::FillBaseObject

basePtr->UniqueID = baseObject->GetUniqueID();

Definition at line 383 of file TP0DReconModule.hxx.

short ND::TP0DReconModule::TP0DParticle::ValidDimensions

Bit flag demarkating valid dimensions for this particle's position.

values(valid dimensions) : 1(x),2(y),4(z),3(xy),5(xz),6(yz),7(xyz)

Definition at line 472 of file TP0DReconModule.hxx.

Referenced by ND::TP0DReconModule::FillParticleObject().

std::vector<short> ND::TP0DReconModule::TP0DParticle::Vertices

Holds internal Ids of Vertices pertinent to this reconstructed particle.

Holds ND::TP0DReconModule::ObjectID::id of ND::TP0DReconModule::TP0DVertex objects which are equivalent to indicies of ND::TP0DReconModule::fVertices which hold Vertices related to this reconstructed particle.

Definition at line 349 of file TP0DReconModule.hxx.


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

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