CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
FSimTrack Class Reference

#include <FSimTrack.h>

Inheritance diagram for FSimTrack:
SimTrack CoreSimTrack

Public Member Functions

void addDaughter (int i)
 Add a RecHit for a track on a layer. More...
 
float charge () const
 charge More...
 
int closestDaughterId () const
 Get the index of the closest charged daughter. More...
 
const FSimTrackdaughter (int i) const
 Ith daughter. More...
 
const std::vector< int > & daughters () const
 Vector of daughter indices. More...
 
double decayTime () const
 Return the pre-defined decay time. More...
 
const RawParticleecalEntrance () const
 The particle at ECAL entrance. More...
 
const FSimVertexendVertex () const
 end vertex More...
 
 FSimTrack ()
 Default constructor. More...
 
 FSimTrack (const RawParticle *p, int iv, int ig, int id, FBaseSimEvent *mom, double dt=-1.)
 Constructor from the EmmbSimTrack index in the FBaseSimEvent. More...
 
 FSimTrack (int ipart, const math::XYZTLorentzVector &p, int iv, int ig, int id, double charge, const math::XYZTLorentzVector &tkp, const math::XYZTLorentzVector &tkm, const SimVertex &tkv)
 Hack to interface "old" calorimetry with "new" propagation in tracker (need to construct FSimTracks) More...
 
const HepMC::GenParticle * genParticle () const
 The original GenParticle. More...
 
const RawParticlehcalEntrance () const
 The particle at HCAL entrance. More...
 
const RawParticlehcalExit () const
 The particle at HCAL exir. More...
 
const RawParticlehoEntrance () const
 The particle at HCAL exir. More...
 
int id () const
 the index in FBaseSimEvent and other vectors More...
 
bool isGlobal () const
 particle did not decay before more detectors (useful for newProducer) More...
 
const RawParticlelayer1Entrance () const
 The particle at Preshower Layer 1. More...
 
const RawParticlelayer2Entrance () const
 The particle at Preshower Layer 2. More...
 
const XYZTLorentzVectormomentum () const
 Temporary (until move of SimTrack to Mathcore) - No! Actually very useful. More...
 
const FSimTrackmother () const
 mother More...
 
int nDaughters () const
 Number of daughters. More...
 
bool noDaughter () const
 no daughters More...
 
bool noEndVertex () const
 no end vertex More...
 
bool noMother () const
 no mother particle More...
 
bool notYetToEndVertex (const XYZTLorentzVector &pos) const
 Compare the end vertex position with another position. More...
 
int onEcal () const
 
int onHcal () const
 
int onHO () const
 
int onLayer1 () const
 
int onLayer2 () const
 
int onVFcal () const
 
int outHcal () const
 
const HepPDT::ParticleDataparticleInfo () const
 particle info... More...
 
bool propagated () const
 The particle was tentatively propagated to calorimeters. More...
 
void setClosestDaughterId (int id)
 Set the index of the closest charged daughter. More...
 
void setEcal (const RawParticle &pp, int success)
 Set the ecal variables. More...
 
void setEndVertex (int endv)
 Set the end vertex. More...
 
void setGlobal ()
 particle did not decay before more detectors (useful for newProducer) More...
 
void setHcal (const RawParticle &pp, int success)
 Set the hcal variables. More...
 
void setHcalExit (const RawParticle &pp, int success)
 Set the hcal exit variables. More...
 
void setHO (const RawParticle &pp, int success)
 Set the ho variables. More...
 
void setLayer1 (const RawParticle &pp, int success)
 Set the preshower layer1 variables. More...
 
void setLayer2 (const RawParticle &pp, int success)
 Set the preshower layer2 variables. More...
 
void setMomentum (const math::XYZTLorentzVector &newMomentum)
 Reset the momentum (to be used with care) More...
 
void setOriginVertex (const SimVertex &v)
 Set origin vertex. More...
 
void setPropagate ()
 The particle has been propgated through the tracker. More...
 
void setVFcal (const RawParticle &pp, int success)
 Set the hcal variables. More...
 
const SimTracksimTrack () const
 Simply returns the SimTrack. More...
 
const FSimVertex vertex () const
 Origin vertex. More...
 
const RawParticlevfcalEntrance () const
 The particle at VFCAL entrance. More...
 
virtual ~FSimTrack ()
 Destructor. More...
 
- Public Member Functions inherited from SimTrack
bool crossedBoundary () const
 
int genpartIndex () const
 index of the corresponding Generator particle in the Event container (-1 if no Genpart) More...
 
int getIDAtBoundary () const
 
const math::XYZTLorentzVectorFgetMomentumAtBoundary () const
 
const math::XYZTLorentzVectorFgetPositionAtBoundary () const
 
bool noGenpart () const
 
bool noVertex () const
 
void setCrossedBoundaryVars (bool crossedBoundary, int idAtBoundary, math::XYZTLorentzVectorF positionAtBoundary, math::XYZTLorentzVectorF momentumAtBoundary)
 
void setTkMomentum (const math::XYZTLorentzVectorD &mom)
 
void setTkPosition (const math::XYZVectorD &pos)
 
void setVertexIndex (const int v)
 
 SimTrack ()
 constructor More...
 
 SimTrack (int ipart, const math::XYZTLorentzVectorD &p)
 
 SimTrack (int ipart, const math::XYZTLorentzVectorD &p, int iv, int ig)
 
 SimTrack (int ipart, const math::XYZTLorentzVectorD &p, int iv, int ig, const math::XYZVectorD &tkp, const math::XYZTLorentzVectorD &tkm)
 
 SimTrack (const CoreSimTrack &t, int iv, int ig)
 constructor from transient More...
 
const math::XYZTLorentzVectorDtrackerSurfaceMomentum () const
 
const math::XYZVectorDtrackerSurfacePosition () const
 
int vertIndex () const
 index of the vertex in the Event container (-1 if no vertex) More...
 
- Public Member Functions inherited from CoreSimTrack
float charge () const
 charge More...
 
 CoreSimTrack ()
 constructors More...
 
 CoreSimTrack (int ipart, const math::XYZTLorentzVectorD &p)
 
 CoreSimTrack (int ipart, math::XYZVectorD &ip, double ie)
 
EncodedEventId eventId () const
 
const math::XYZTLorentzVectorDmomentum () const
 
void setEventId (EncodedEventId e)
 
void setTrackId (unsigned int t)
 
unsigned int trackId () const
 
int type () const
 particle type (HEP PDT convension) More...
 

Private Attributes

double charge_
 
int closestDaughterId_
 
std::vector< int > daugh_
 
int ecal
 
RawParticle ECAL_Entrance
 
int endv_
 
int hcal
 
RawParticle HCAL_Entrance
 
RawParticle HCAL_Exit
 
int hcalexit
 
RawParticle HO_Entrance
 
int hoentr
 
int id_
 
const HepPDT::ParticleDatainfo_
 
bool isGlobal_
 
int layer1
 
RawParticle Layer1_Entrance
 
int layer2
 
RawParticle Layer2_Entrance
 
FBaseSimEventmom_
 
XYZTLorentzVector momentum_
 
bool prop
 
double properDecayTime
 
SimVertex vertex_
 
int vfcal
 
RawParticle VFCAL_Entrance
 

Additional Inherited Members

- Public Types inherited from SimTrack
typedef CoreSimTrack Core
 

Detailed Description

A class that mimics SimTrack, with enhanced features. Essentially an interface to SimTrack.

Author
Patrick Janot, CERN $Date: 9-Dec-2003

Definition at line 30 of file FSimTrack.h.

Constructor & Destructor Documentation

FSimTrack::FSimTrack ( )

Default constructor.

Definition at line 9 of file FSimTrack.cc.

10  : SimTrack(),
11  mom_(nullptr),
12  id_(-1),
13  charge_(-999),
14  endv_(-1),
15  layer1(0),
16  layer2(0),
17  ecal(0),
18  hcal(0),
19  vfcal(0),
20  hcalexit(0),
21  hoentr(0),
22  prop(false),
24  info_(nullptr),
25  properDecayTime(1E99) {
26  ;
27 }
int endv_
Definition: FSimTrack.h:229
int layer2
Definition: FSimTrack.h:232
int ecal
Definition: FSimTrack.h:233
double charge_
Definition: FSimTrack.h:227
const HepPDT::ParticleData * info_
Definition: FSimTrack.h:252
int hoentr
Definition: FSimTrack.h:237
SimTrack()
constructor
Definition: SimTrack.cc:3
int closestDaughterId_
Definition: FSimTrack.h:250
int vfcal
Definition: FSimTrack.h:235
int layer1
Definition: FSimTrack.h:231
FBaseSimEvent * mom_
Definition: FSimTrack.h:224
int hcal
Definition: FSimTrack.h:234
double properDecayTime
Definition: FSimTrack.h:256
int hcalexit
Definition: FSimTrack.h:236
bool prop
Definition: FSimTrack.h:239
FSimTrack::FSimTrack ( const RawParticle p,
int  iv,
int  ig,
int  id,
FBaseSimEvent mom,
double  dt = -1. 
)

Constructor from the EmmbSimTrack index in the FBaseSimEvent.

Definition at line 29 of file FSimTrack.cc.

References info_, mom_, CoreSimTrack::setTrackId(), FBaseSimEvent::theTable(), and CoreSimTrack::type().

30  : // SimTrack(p->pid(),*p,iv,ig), // to uncomment once Mathcore is installed
31  SimTrack(p->pid(), p->momentum(), iv, ig),
32  mom_(mom),
33  id_(id),
34  charge_(-999),
35  endv_(-1),
36  layer1(0),
37  layer2(0),
38  ecal(0),
39  hcal(0),
40  vfcal(0),
41  hcalexit(0),
42  hoentr(0),
43  prop(false),
45  momentum_(p->momentum()),
47  setTrackId(id);
48  info_ = mom_->theTable()->particle(HepPDT::ParticleID(type()));
49 }
float dt
Definition: AMPTWrapper.h:136
int endv_
Definition: FSimTrack.h:229
int32_t *__restrict__ iv
int layer2
Definition: FSimTrack.h:232
int ecal
Definition: FSimTrack.h:233
double charge_
Definition: FSimTrack.h:227
const HepPDT::ParticleData * info_
Definition: FSimTrack.h:252
const HepPDT::ParticleDataTable * theTable() const
Get the pointer to the particle data table.
Definition: FBaseSimEvent.h:54
int hoentr
Definition: FSimTrack.h:237
SimTrack()
constructor
Definition: SimTrack.cc:3
int pid() const
get the HEP particle ID number
Definition: RawParticle.h:277
const XYZTLorentzVector & momentum() const
the momentum fourvector
Definition: RawParticle.h:321
int closestDaughterId_
Definition: FSimTrack.h:250
int vfcal
Definition: FSimTrack.h:235
int layer1
Definition: FSimTrack.h:231
FBaseSimEvent * mom_
Definition: FSimTrack.h:224
void setTrackId(unsigned int t)
Definition: CoreSimTrack.h:30
int type() const
particle type (HEP PDT convension)
Definition: CoreSimTrack.h:22
XYZTLorentzVector momentum_
Definition: FSimTrack.h:254
int hcal
Definition: FSimTrack.h:234
double properDecayTime
Definition: FSimTrack.h:256
int hcalexit
Definition: FSimTrack.h:236
bool prop
Definition: FSimTrack.h:239
FSimTrack::FSimTrack ( int  ipart,
const math::XYZTLorentzVector p,
int  iv,
int  ig,
int  id,
double  charge,
const math::XYZTLorentzVector tkp,
const math::XYZTLorentzVector tkm,
const SimVertex tkv 
)

Hack to interface "old" calorimetry with "new" propagation in tracker (need to construct FSimTracks)

Definition at line 52 of file FSimTrack.cc.

References CoreSimTrack::setTrackId().

61  : SimTrack(ipart, p, iv, ig, math::XYZVectorD(tkp.X(), tkp.Y(), tkp.Z()), tkm),
62  vertex_(tkv),
63  mom_(nullptr),
64  id_(id),
65  charge_(charge),
66  endv_(-1),
67  layer1(0),
68  layer2(0),
69  ecal(0),
70  hcal(0),
71  vfcal(0),
72  hcalexit(0),
73  hoentr(0),
74  prop(false),
76  info_(nullptr),
77  momentum_(p),
78  properDecayTime(-1),
79  isGlobal_(false) {
80  setTrackId(id);
81 }
SimVertex vertex_
Definition: FSimTrack.h:222
int endv_
Definition: FSimTrack.h:229
float charge() const
charge
Definition: FSimTrack.h:56
int32_t *__restrict__ iv
int layer2
Definition: FSimTrack.h:232
int ecal
Definition: FSimTrack.h:233
double charge_
Definition: FSimTrack.h:227
const HepPDT::ParticleData * info_
Definition: FSimTrack.h:252
int hoentr
Definition: FSimTrack.h:237
SimTrack()
constructor
Definition: SimTrack.cc:3
bool isGlobal_
Definition: FSimTrack.h:258
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > XYZVectorD
spatial vector with cartesian internal representation
Definition: Vector3D.h:8
int closestDaughterId_
Definition: FSimTrack.h:250
int vfcal
Definition: FSimTrack.h:235
int layer1
Definition: FSimTrack.h:231
FBaseSimEvent * mom_
Definition: FSimTrack.h:224
void setTrackId(unsigned int t)
Definition: CoreSimTrack.h:30
XYZTLorentzVector momentum_
Definition: FSimTrack.h:254
int hcal
Definition: FSimTrack.h:234
double properDecayTime
Definition: FSimTrack.h:256
int hcalexit
Definition: FSimTrack.h:236
bool prop
Definition: FSimTrack.h:239
FSimTrack::~FSimTrack ( )
virtual

Destructor.

Definition at line 83 of file FSimTrack.cc.

83 { ; }

Member Function Documentation

void FSimTrack::addDaughter ( int  i)
inline

Add a RecHit for a track on a layer.

Add a RecHit for a track on a layer Update the vactors of daughter's id

Definition at line 200 of file FSimTrack.h.

References daugh_.

Referenced by FBaseSimEvent::addSimTrack().

200 { daugh_.push_back(i); }
std::vector< int > daugh_
Definition: FSimTrack.h:249
float FSimTrack::charge ( void  ) const
inline

charge

Definition at line 56 of file FSimTrack.h.

References charge_, and particleInfo().

Referenced by FBaseSimEvent::fill(), CalorimetryManager::HDShowerSimulation(), CalorimetryManager::MuonMipSimulation(), PFSimParticleProducer::produce(), CalorimetryManager::reconstructHCAL(), and CalorimetryManager::reconstructTrack().

56  {
57  if (particleInfo() == nullptr)
58  return charge_;
59  return particleInfo()->charge();
60  }
const HepPDT::ParticleData * particleInfo() const
particle info...
Definition: FSimTrack.h:53
double charge_
Definition: FSimTrack.h:227
int FSimTrack::closestDaughterId ( ) const
inline

Get the index of the closest charged daughter.

Definition at line 206 of file FSimTrack.h.

References closestDaughterId_.

Referenced by FSimEvent::load(), and TrajectoryManager::makeSinglePSimHit().

206 { return closestDaughterId_; }
int closestDaughterId_
Definition: FSimTrack.h:250
const FSimTrack& FSimTrack::daughter ( int  i) const
inline

Ith daughter.

Referenced by TrajectoryManager::moveAllDaughters(), and operator<<().

const std::vector<int>& FSimTrack::daughters ( ) const
inline

Vector of daughter indices.

Referenced by PFSimParticleProducer::produce().

double FSimTrack::decayTime ( ) const
inline

Return the pre-defined decay time.

Definition at line 218 of file FSimTrack.h.

References properDecayTime.

Referenced by ParticlePropagator::ParticlePropagator().

218 { return properDecayTime; }
double properDecayTime
Definition: FSimTrack.h:256
const RawParticle& FSimTrack::ecalEntrance ( ) const
inline
const FSimVertex& FSimTrack::endVertex ( ) const
inline
const HepMC::GenParticle* FSimTrack::genParticle ( ) const
inline

The original GenParticle.

const RawParticle& FSimTrack::hcalEntrance ( ) const
inline
const RawParticle& FSimTrack::hcalExit ( ) const
inline

The particle at HCAL exir.

Definition at line 152 of file FSimTrack.h.

References HCAL_Exit.

Referenced by PFSimParticleProducer::produce().

152 { return HCAL_Exit; }
RawParticle HCAL_Exit
Definition: FSimTrack.h:246
const RawParticle& FSimTrack::hoEntrance ( ) const
inline

The particle at HCAL exir.

Definition at line 155 of file FSimTrack.h.

References HO_Entrance.

Referenced by PFSimParticleProducer::produce().

155 { return HO_Entrance; }
RawParticle HO_Entrance
Definition: FSimTrack.h:247
int FSimTrack::id ( void  ) const
inline
bool FSimTrack::isGlobal ( ) const
inline

particle did not decay before more detectors (useful for newProducer)

Definition at line 158 of file FSimTrack.h.

References isGlobal_.

158 { return isGlobal_; }
bool isGlobal_
Definition: FSimTrack.h:258
const RawParticle& FSimTrack::layer1Entrance ( ) const
inline

The particle at Preshower Layer 1.

Definition at line 137 of file FSimTrack.h.

References Layer1_Entrance.

Referenced by EcalHitMaker::cellLine(), CalorimetryManager::EMShowerSimulation(), operator<<(), EcalHitMaker::preshowerCellLine(), and PFSimParticleProducer::produce().

137 { return Layer1_Entrance; }
RawParticle Layer1_Entrance
Definition: FSimTrack.h:241
const RawParticle& FSimTrack::layer2Entrance ( ) const
inline

The particle at Preshower Layer 2.

Definition at line 140 of file FSimTrack.h.

References Layer2_Entrance.

Referenced by EcalHitMaker::cellLine(), CalorimetryManager::EMShowerSimulation(), operator<<(), EcalHitMaker::preshowerCellLine(), and PFSimParticleProducer::produce().

140 { return Layer2_Entrance; }
RawParticle Layer2_Entrance
Definition: FSimTrack.h:242
const XYZTLorentzVector& FSimTrack::momentum ( ) const
inline

Temporary (until move of SimTrack to Mathcore) - No! Actually very useful.

Definition at line 209 of file FSimTrack.h.

References momentum_.

Referenced by FBaseSimEvent::fill(), CalorimetryManager::HDShowerSimulation(), TrajectoryManager::moveAllDaughters(), CalorimetryManager::MuonMipSimulation(), operator<<(), PFSimParticleProducer::produce(), and TrajectoryManager::updateWithDaughters().

209 { return momentum_; }
XYZTLorentzVector momentum_
Definition: FSimTrack.h:254
const FSimTrack& FSimTrack::mother ( ) const
inline
int FSimTrack::nDaughters ( ) const
inline
bool FSimTrack::noDaughter ( ) const
inline

no daughters

bool FSimTrack::noEndVertex ( ) const
inline
bool FSimTrack::noMother ( ) const
inline
bool FSimTrack::notYetToEndVertex ( const XYZTLorentzVector pos) const

Compare the end vertex position with another position.

Definition at line 85 of file FSimTrack.cc.

References alignCSCRings::e, endVertex(), noEndVertex(), position, vertex(), and BeamSpotPI::Z.

Referenced by FBaseSimEvent::fill(), TrajectoryManager::propagateToCalorimeters(), and TrajectoryManager::reconstruct().

85  {
86  // If there is no end vertex, nothing to compare to
87  if (noEndVertex())
88  return true;
89  // If the particle immediately decays, no need to propagate
90  if ((endVertex().position() - vertex().position()).Vect().Mag2() < 1e-4)
91  return false;
92  // If the end vertex has a larger radius, not yet there
93  if (endVertex().position().Perp2() > pos.Perp2() + 1e-10)
94  return true;
95  // If the end vertex has a larger z, not yet there
96  if (fabs(endVertex().position().Z()) > fabs(pos.Z()) + 1e-5)
97  return true;
98  // Otherwise, the end vertex is overtaken already
99  return false;
100 }
bool noEndVertex() const
no end vertex
const FSimVertex & endVertex() const
end vertex
static int position[264][3]
Definition: ReadPGInfo.cc:289
const FSimVertex vertex() const
Origin vertex.
int FSimTrack::onEcal ( ) const
inline

The particle was propagated to the ECAL front face 1 : on the barrel; 2 : on the EndCaps; 3 : no propagation possible 0 : not yet propagated

Definition at line 111 of file FSimTrack.h.

References ecal.

Referenced by EcalHitMaker::cellLine(), FastSimProducer::createFSimTrack(), CalorimetryManager::EMShowerSimulation(), CalorimetryManager::HDShowerSimulation(), CalorimetryManager::MuonMipSimulation(), operator<<(), PFSimParticleProducer::produce(), and CalorimetryManager::reconstructTrack().

111 { return ecal; }
int ecal
Definition: FSimTrack.h:233
int FSimTrack::onHcal ( ) const
inline
int FSimTrack::onHO ( ) const
inline

1 : on the barrel; 2 : on the EndCaps; 3 : no propagation possible 0 : not yet propagated

Definition at line 131 of file FSimTrack.h.

References hoentr.

131 { return hoentr; }
int hoentr
Definition: FSimTrack.h:237
int FSimTrack::onLayer1 ( ) const
inline

The particle was propagated to the Preshower Layer1 2 : on the EndCaps; (no Barrel Preshower); no propagation possible 0 : not yet propagated or no pe

Definition at line 101 of file FSimTrack.h.

References layer1.

Referenced by EcalHitMaker::cellLine(), FastSimProducer::createFSimTrack(), CalorimetryManager::EMShowerSimulation(), operator<<(), EcalHitMaker::preshowerCellLine(), and PFSimParticleProducer::produce().

101 { return layer1; }
int layer1
Definition: FSimTrack.h:231
int FSimTrack::onLayer2 ( ) const
inline

The particle was propagated to the Preshower Layer2 2 : on the EndCaps; (no Barrel Preshower); 3 : No propagation possible 0 : not yet propagated

Definition at line 106 of file FSimTrack.h.

References layer2.

Referenced by EcalHitMaker::cellLine(), FastSimProducer::createFSimTrack(), CalorimetryManager::EMShowerSimulation(), operator<<(), EcalHitMaker::preshowerCellLine(), and PFSimParticleProducer::produce().

106 { return layer2; }
int layer2
Definition: FSimTrack.h:232
int FSimTrack::onVFcal ( ) const
inline

The particle was propagated to the VFCAL front face 2 : on the EndCaps (No VFCAL Barrel); 3 : no propagation possible 0 : not yet propagated

Definition at line 121 of file FSimTrack.h.

References vfcal.

Referenced by EcalHitMaker::cellLine(), FastSimProducer::createFSimTrack(), HcalHitMaker::getSubHcalDet(), EcalHitMaker::hcalCellLine(), CalorimetryManager::HDShowerSimulation(), CalorimetryManager::MuonMipSimulation(), operator<<(), FastHFShowerLibrary::recoHFShowerLibrary(), and CalorimetryManager::reconstructTrack().

121 { return vfcal; }
int vfcal
Definition: FSimTrack.h:235
int FSimTrack::outHcal ( ) const
inline

The particle was propagated to the HCAL back face 1 : on the barrel; 2 : on the EndCaps; 3 : no propagation possible 0 : not yet propagated

Definition at line 126 of file FSimTrack.h.

References hcalexit.

126 { return hcalexit; }
int hcalexit
Definition: FSimTrack.h:236
const HepPDT::ParticleData* FSimTrack::particleInfo ( ) const
inline

particle info...

Definition at line 53 of file FSimTrack.h.

References info_.

Referenced by charge(), and operator<<().

53 { return info_; }
const HepPDT::ParticleData * info_
Definition: FSimTrack.h:252
bool FSimTrack::propagated ( ) const
inline

The particle was tentatively propagated to calorimeters.

Definition at line 134 of file FSimTrack.h.

References prop.

134 { return prop; }
bool prop
Definition: FSimTrack.h:239
void FSimTrack::setClosestDaughterId ( int  id)
inline

Set the index of the closest charged daughter.

Definition at line 203 of file FSimTrack.h.

References closestDaughterId_, and id().

Referenced by MaterialEffects::interact(), and TrajectoryManager::updateWithDaughters().

203 { closestDaughterId_ = id; }
int closestDaughterId_
Definition: FSimTrack.h:250
int id() const
the index in FBaseSimEvent and other vectors
Definition: FSimTrack.h:96
void FSimTrack::setEcal ( const RawParticle pp,
int  success 
)
void FSimTrack::setEndVertex ( int  endv)
inline

Set the end vertex.

Definition at line 167 of file FSimTrack.h.

References endv_.

Referenced by FBaseSimEvent::addSimVertex().

167 { endv_ = endv; }
int endv_
Definition: FSimTrack.h:229
void FSimTrack::setGlobal ( )
inline

particle did not decay before more detectors (useful for newProducer)

Definition at line 161 of file FSimTrack.h.

References isGlobal_.

Referenced by FastSimProducer::createFSimTrack().

161 { isGlobal_ = true; }
bool isGlobal_
Definition: FSimTrack.h:258
void FSimTrack::setHcal ( const RawParticle pp,
int  success 
)
void FSimTrack::setHcalExit ( const RawParticle pp,
int  success 
)

Set the hcal exit variables.

Set the hcal variables.

Definition at line 136 of file FSimTrack.cc.

References HCAL_Exit, hcalexit, createTree::pp, and summarizeEdmComparisonLogfiles::success.

Referenced by FBaseSimEvent::fill().

136  {
137  HCAL_Exit = pp;
138  hcalexit = success;
139 }
tuple pp
Definition: createTree.py:17
RawParticle HCAL_Exit
Definition: FSimTrack.h:246
int hcalexit
Definition: FSimTrack.h:236
void FSimTrack::setHO ( const RawParticle pp,
int  success 
)

Set the ho variables.

Definition at line 141 of file FSimTrack.cc.

References HO_Entrance, hoentr, createTree::pp, and summarizeEdmComparisonLogfiles::success.

Referenced by FBaseSimEvent::fill().

141  {
142  HO_Entrance = pp;
143  hoentr = success;
144 }
tuple pp
Definition: createTree.py:17
int hoentr
Definition: FSimTrack.h:237
RawParticle HO_Entrance
Definition: FSimTrack.h:247
void FSimTrack::setLayer1 ( const RawParticle pp,
int  success 
)
void FSimTrack::setLayer2 ( const RawParticle pp,
int  success 
)
void FSimTrack::setMomentum ( const math::XYZTLorentzVector newMomentum)
inline

Reset the momentum (to be used with care)

Definition at line 212 of file FSimTrack.h.

References momentum_.

Referenced by TrajectoryManager::moveAllDaughters().

212 { momentum_ = newMomentum; }
XYZTLorentzVector momentum_
Definition: FSimTrack.h:254
void FSimTrack::setOriginVertex ( const SimVertex v)
inline

Set origin vertex.

Definition at line 164 of file FSimTrack.h.

References findQualityFiles::v, and vertex_.

164 { vertex_ = v; }
SimVertex vertex_
Definition: FSimTrack.h:222
void FSimTrack::setPropagate ( )

The particle has been propgated through the tracker.

Set the variable at the beginning of the propagation.

Definition at line 103 of file FSimTrack.cc.

References prop.

Referenced by TrajectoryManager::reconstruct().

103 { prop = true; }
bool prop
Definition: FSimTrack.h:239
void FSimTrack::setVFcal ( const RawParticle pp,
int  success 
)

Set the hcal variables.

Set the vcal variables.

Definition at line 130 of file FSimTrack.cc.

References createTree::pp, summarizeEdmComparisonLogfiles::success, vfcal, and VFCAL_Entrance.

Referenced by FastSimProducer::createFSimTrack(), FBaseSimEvent::fill(), and TrajectoryManager::propagateToCalorimeters().

130  {
131  VFCAL_Entrance = pp;
132  vfcal = success;
133 }
tuple pp
Definition: createTree.py:17
RawParticle VFCAL_Entrance
Definition: FSimTrack.h:245
int vfcal
Definition: FSimTrack.h:235
const SimTrack& FSimTrack::simTrack ( ) const
inline

Simply returns the SimTrack.

Definition at line 215 of file FSimTrack.h.

215 { return *this; }
const FSimVertex FSimTrack::vertex ( ) const
inline
const RawParticle& FSimTrack::vfcalEntrance ( ) const
inline

Member Data Documentation

double FSimTrack::charge_
private

Definition at line 227 of file FSimTrack.h.

Referenced by charge().

int FSimTrack::closestDaughterId_
private

Definition at line 250 of file FSimTrack.h.

Referenced by closestDaughterId(), and setClosestDaughterId().

std::vector<int> FSimTrack::daugh_
private

Definition at line 249 of file FSimTrack.h.

Referenced by addDaughter().

int FSimTrack::ecal
private

Definition at line 233 of file FSimTrack.h.

Referenced by onEcal(), and setEcal().

RawParticle FSimTrack::ECAL_Entrance
private

Definition at line 243 of file FSimTrack.h.

Referenced by ecalEntrance(), and setEcal().

int FSimTrack::endv_
private

Definition at line 229 of file FSimTrack.h.

Referenced by setEndVertex().

int FSimTrack::hcal
private

Definition at line 234 of file FSimTrack.h.

Referenced by onHcal(), and setHcal().

RawParticle FSimTrack::HCAL_Entrance
private

Definition at line 244 of file FSimTrack.h.

Referenced by hcalEntrance(), and setHcal().

RawParticle FSimTrack::HCAL_Exit
private

Definition at line 246 of file FSimTrack.h.

Referenced by hcalExit(), and setHcalExit().

int FSimTrack::hcalexit
private

Definition at line 236 of file FSimTrack.h.

Referenced by outHcal(), and setHcalExit().

RawParticle FSimTrack::HO_Entrance
private

Definition at line 247 of file FSimTrack.h.

Referenced by hoEntrance(), and setHO().

int FSimTrack::hoentr
private

Definition at line 237 of file FSimTrack.h.

Referenced by onHO(), and setHO().

int FSimTrack::id_
private

Definition at line 226 of file FSimTrack.h.

Referenced by id().

const HepPDT::ParticleData* FSimTrack::info_
private

Definition at line 252 of file FSimTrack.h.

Referenced by FSimTrack(), and particleInfo().

bool FSimTrack::isGlobal_
private

Definition at line 258 of file FSimTrack.h.

Referenced by isGlobal(), and setGlobal().

int FSimTrack::layer1
private

Definition at line 231 of file FSimTrack.h.

Referenced by onLayer1(), and setLayer1().

RawParticle FSimTrack::Layer1_Entrance
private

Definition at line 241 of file FSimTrack.h.

Referenced by layer1Entrance(), and setLayer1().

int FSimTrack::layer2
private

Definition at line 232 of file FSimTrack.h.

Referenced by onLayer2(), and setLayer2().

RawParticle FSimTrack::Layer2_Entrance
private

Definition at line 242 of file FSimTrack.h.

Referenced by layer2Entrance(), and setLayer2().

FBaseSimEvent* FSimTrack::mom_
private

Definition at line 224 of file FSimTrack.h.

Referenced by FSimTrack().

XYZTLorentzVector FSimTrack::momentum_
private

Definition at line 254 of file FSimTrack.h.

Referenced by momentum(), and setMomentum().

bool FSimTrack::prop
private

Definition at line 239 of file FSimTrack.h.

Referenced by propagated(), and setPropagate().

double FSimTrack::properDecayTime
private

Definition at line 256 of file FSimTrack.h.

Referenced by decayTime().

SimVertex FSimTrack::vertex_
private

Definition at line 222 of file FSimTrack.h.

Referenced by setOriginVertex().

int FSimTrack::vfcal
private

Definition at line 235 of file FSimTrack.h.

Referenced by onVFcal(), and setVFcal().

RawParticle FSimTrack::VFCAL_Entrance
private

Definition at line 245 of file FSimTrack.h.

Referenced by setVFcal(), and vfcalEntrance().