10 ParticleBase( q, p4, vtx,pdgId,status ), t_( t ), pdgId_( pdgId ), eventId_( eventId )
65 std::vector<PSimHit>
result;
67 if ( detector ==
DetId( (uint32_t)((*iHit).detUnitId()) ).
det() )
68 result.push_back(*iHit);
105 s <<
"TP momentum, q, ID, & Event #: "
108 s <<
" Hits for this track: " << tp.
trackPSimHit().size() << std::endl;
114 s <<
"\t sub-detector id : " << i <<
" -> " << numberOfHits << std::endl;
119 s <<
" HepMC Track Momentum " << (*hepT)->momentum().rho() << std::endl;
124 s <<
" Geant Track Momentum " << g4T->momentum() << std::endl;
125 s <<
" Geant Track ID & type " << g4T->trackId() <<
" " << g4T->type() << std::endl;
126 if (g4T->type() != tp.
pdgId())
128 s <<
" Mismatch b/t TrackingParticle and Geant types" << std::endl;
132 s <<
" TP Vertex " << tp.
vertex() << std::endl;
133 s <<
" Source vertex: " << tp.
parentVertex()->position() << std::endl;
137 s <<
" Decay vertices: " << (**iTV).position() << std::endl;
genp_iterator genParticle_begin() const
iterators
tv_iterator decayVertices_end() const
int event() const
get the contents of the subdetector field (should be protected?)
tv_iterator decayVertices_begin() const
int charge() const
electric charge
TrackingVertexRefVector decayVertices_
math::XYZTLorentzVectorD LorentzVector
Lorentz vector.
const std::vector< PSimHit > & trackPSimHit() const
g4t_iterator g4Track_begin() const
int pdgId() const
PDG id, signal source, crossing number.
edm::RefVector< TrackingVertexCollection > TrackingVertexRefVector
TrackingParticle()
default constructor
const std::vector< PSimHit >::const_iterator pSimHit_begin() const
const std::vector< PSimHit >::const_iterator pSimHit_end() const
std::ostream & operator<<(std::ostream &out, const ALILine &li)
const_iterator end() const
Termination of iteration.
void setMatchedHit(const int &)
const_iterator begin() const
Initialize an iterator over the RefVector.
math::XYZPointD Point
point in the space
int matchedHit_
Total Number of Hits belonging to the TrackingParticle.
void addPSimHit(const PSimHit &)
int bunchCrossing() const
get the detector field from this detid
void addDecayVertex(const TrackingVertexRef &)
void clearDecayVertices()
std::vector< SimTrack > g4Tracks_
references to G4 and HepMC tracks
TrackingVertexRefVector::iterator tv_iterator
const TrackingVertexRef & parentVertex() const
const LorentzVector & p4() const
four-momentum Lorentz vector
void setVertex(const Point &vtx, double t)
std::vector< SimTrack >::const_iterator g4t_iterator
edm::Ref< TrackingVertexCollection > TrackingVertexRef
genp_iterator genParticle_end() const
void clear()
Clear the vector.
std::vector< TrackingVertex > TrackingVertexCollection
GenParticleRefVector genParticles_
EncodedEventId eventId() const
edm::Ref< TrackingVertexCollection > TrackingVertexRef
void addGenParticle(const GenParticleRef &)
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
size_type size() const
Size of the RefVector.
void addG4Track(const SimTrack &)
std::vector< PSimHit > trackPSimHit_
void setVertex(const Point &vertex)
set vertex
Detector det() const
get the detector field from this detid
const Point & vertex() const
vertex position
g4t_iterator g4Track_end() const
const TrackingVertexRefVector & decayVertices() const
void setParentVertex(const TrackingVertexRef &)
TrackingVertexRef parentVertex_