77 edm::LogWarning(
"TrackingParticle") <<
"The method matchedHit() has been deprecated. Use numberOfTrackerLayers() instead.";
99 s <<
"TP momentum, q, ID, & Event #: "
105 s <<
" HepMC Track Momentum " << (*hepT)->momentum().rho() << std::endl;
110 s <<
" Geant Track Momentum " << g4T->momentum() << std::endl;
111 s <<
" Geant Track ID & type " << g4T->trackId() <<
" " << g4T->type() << std::endl;
112 if (g4T->type() != tp.
pdgId())
114 s <<
" Mismatch b/t TrackingParticle and Geant types" << std::endl;
118 s <<
" TP Vertex " << tp.
vertex() << std::endl;
119 s <<
" Source vertex: " << tp.
parentVertex()->position() << std::endl;
123 s <<
" Decay vertices: " << (**iTV).position() << std::endl;
const LorentzVector & p4() const
Four-momentum Lorentz vector. Note this is taken from the first SimTrack only.
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
TrackingVertexRefVector decayVertices_
g4t_iterator g4Track_begin() const
int pdgId() const
PDG ID.
TrackingParticle()
Default constructor. Note that the object will be useless until it is provided with a SimTrack and pa...
int numberOfTrackerHits_
The number of tracker only hits.
std::ostream & operator<<(std::ostream &out, const ALILine &li)
const_iterator end() const
Termination of iteration.
const_iterator begin() const
Initialize an iterator over the RefVector.
void setParentVertex(const TrackingVertexRef &ref)
void addGenParticle(const reco::GenParticleRef &ref)
reco::GenParticleRefVector genParticles_
float charge() const
Electric charge. Note this is taken from the first SimTrack only.
int bunchCrossing() const
get the detector field from this detid
void addG4Track(const SimTrack &t)
int numberOfTrackerLayers() const
The number of tracker layers with a hit.
void clearDecayVertices()
int numberOfHits_
The total number of hits.
std::vector< SimTrack > g4Tracks_
references to G4 and reco::GenParticle tracks
const TrackingVertexRef & parentVertex() const
std::vector< SimTrack >::const_iterator g4t_iterator
edm::Ref< TrackingVertexCollection > TrackingVertexRef
genp_iterator genParticle_end() const
void clear()
Clear the vector.
void addDecayVertex(const TrackingVertexRef &ref)
int numberOfHits() const
Gives the total number of hits, including muon hits. Hits on overlaps in the same layer count separat...
Point vertex() const
Parent vertex position.
EncodedEventId eventId() const
Signal source, crossing number.
void setNumberOfTrackerHits(int numberOfTrackerHits)
int numberOfTrackerLayers_
The number of tracker layers with hits. Equivalent to the old matchedHit.
static const unsigned int longLivedTag
long lived flag
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
size_type size() const
Size of the RefVector.
Monte Carlo truth information used for tracking validation.
int numberOfTrackerHits() const
The number of hits in the tracker. Hits on overlaps in the same layer count separately.
void setNumberOfTrackerLayers(const int numberOfTrackerLayers)
g4t_iterator g4Track_end() const
const TrackingVertexRefVector & decayVertices() const
TrackingVertexRef parentVertex_
void setNumberOfHits(int numberOfHits)