1 #ifndef FastSimulation_Event_FSimTrack_H 2 #define FastSimulation_Event_FSimTrack_H 52 if(particleInfo() ==
nullptr)
return charge_;
53 return particleInfo()->charge();
70 inline int nDaughters()
const;
73 inline const std::vector<int>&
daughters()
const;
76 inline bool noEndVertex()
const;
82 inline bool noMother()
const;
85 inline bool noDaughter()
const;
91 inline int id()
const {
return id_; }
121 inline int outHcal()
const {
return hcalexit; }
126 inline int onHO()
const {
return hoentr; }
165 void setLayer2(
const RawParticle& pp,
int success);
177 void setHcalExit(
const RawParticle& pp,
int success);
207 inline double decayTime()
const {
return properDecayTime; }
255 #include "FastSimulation/Event/interface/FSimTrack.icc" 259 #endif // FSimTrack_H
float charge() const
charge
const SimTrack & simTrack() const
Simply returns the SimTrack.
const HepPDT::ParticleData * particleInfo() const
particle info...
const RawParticle & vfcalEntrance() const
The particle at VFCAL entrance.
const RawParticle & hoEntrance() const
The particle at HCAL exir.
const RawParticle & hcalExit() const
The particle at HCAL exir.
RawParticle Layer1_Entrance
const HepPDT::ParticleData * info_
RawParticle VFCAL_Entrance
const XYZTLorentzVector & momentum() const
Temporary (until move of SimTrack to Mathcore) - No! Actually very useful.
const RawParticle & layer1Entrance() const
The particle at Preshower Layer 1.
void setClosestDaughterId(int id)
Set the index of the closest charged daughter.
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
bool propagated() const
The particle was tentatively propagated to calorimeters.
int closestDaughterId() const
Get the index of the closest charged daughter.
const RawParticle & ecalEntrance() const
The particle at ECAL entrance.
HepPDT::ParticleData ParticleData
RawParticle HCAL_Entrance
void setOriginVertex(const SimVertex &v)
Set origin vertex.
std::ostream & operator<<(std::ostream &o, const FSimTrack &t)
void setEndVertex(int endv)
Set the end vertex.
XYZTLorentzVector momentum_
int id() const
the index in FBaseSimEvent and other vectors
void addDaughter(int i)
Add a RecHit for a track on a layer.
const RawParticle & layer2Entrance() const
The particle at Preshower Layer 2.
const RawParticle & hcalEntrance() const
The particle at HCAL entrance.
RawParticle Layer2_Entrance
RawParticle ECAL_Entrance
void setMomentum(const math::XYZTLorentzVector &newMomentum)
Reset the momentum (to be used with care)
double decayTime() const
Return the pre-defined decay time.
std::vector< int > daugh_
math::XYZTLorentzVector XYZTLorentzVector