Constructor.
37 StoreArray<MCParticle> mcParticles;
38 StoreArray<BeamBackHit> beamBackHits;
40 beamBackHits.registerInDataStore();
41 mcParticles.registerRelationTo(beamBackHits);
45 RelationArray relation(mcParticles, beamBackHits);
49 std::string subDet = subDett;
51 else if (subDet ==
"PXD")
m_subDet = 1;
52 else if (subDet ==
"SVD")
m_subDet = 2;
53 else if (subDet ==
"CDC")
m_subDet = 3;
54 else if (subDet ==
"ARICH")
m_subDet = 4;
55 else if (subDet ==
"TOP")
m_subDet = 5;
56 else if (subDet ==
"ECL")
m_subDet = 6;
57 else if (subDet ==
"EKLM")
m_subDet = 7;
58 else if (subDet ==
"BKLM")
m_subDet = 8;
62 const int nc[] = {3, 4, 6, 9, 2, 9, 6, 4};
63 const int indx[] = {96, 288, 864, 1151, 7776, 8064, 8544, 8736};
64 std::vector<int> indxv(indx, indx +
sizeof(indx) /
sizeof(
int));
65 m_eclrepscale = nc[upper_bound(indxv.begin(), indxv.end(), iden) - indxv.begin()];
double m_energyDeposit
Energy deposited in volume.
ROOT::Math::XYZVector m_startPos
Particle position at the entrance in volume.
double m_startEnergy
Particle energy at the entrance in volume.
double m_startTime
Global time.
double m_trackLength
Length of the track in the volume.
int m_eclrepscale
Replica (=sector) scale in ECL.
int m_subDet
Subdetector id number.
ROOT::Math::XYZVector m_startMom
Particle momentum at the entrance in volume.
int m_identifier
Identifier of subdetector component.
static void registerMCParticleRelation(const std::string &name, RelationArray::EConsolidationAction ignoreAction=RelationArray::c_negativeWeight)
Register an relation involving MCParticles.