#include <TrackingParticle.h>
Definition at line 25 of file TrackingParticle.h.
typedef std::multimap<DetId::Detector, PSimHit> TrackingParticle::DetectorToPSimHit |
Definition at line 43 of file TrackingParticle.h.
typedef std::vector<SimTrack>::const_iterator TrackingParticle::g4t_iterator |
Definition at line 36 of file TrackingParticle.h.
Definition at line 35 of file TrackingParticle.h.
typedef edm::Ref<edm::HepMCProduct, HepMC::GenParticle > TrackingParticle::GenParticleRef |
Definition at line 34 of file TrackingParticle.h.
typedef edm::RefVector<edm::HepMCProduct, HepMC::GenParticle > TrackingParticle::GenParticleRefVector |
reference to HepMC::GenParticle
Definition at line 33 of file TrackingParticle.h.
typedef std::vector<TrackingVertex> TrackingParticle::TrackingVertexCollection |
Definition at line 38 of file TrackingParticle.h.
Definition at line 39 of file TrackingParticle.h.
Definition at line 40 of file TrackingParticle.h.
Definition at line 41 of file TrackingParticle.h.
TrackingParticle::TrackingParticle | ( | ) | [inline] |
TrackingParticle::TrackingParticle | ( | char | q, |
const LorentzVector & | p4, | ||
const Point & | vtx, | ||
double | t, | ||
const int | pdgId, | ||
const int | status, | ||
const EncodedEventId | eventId | ||
) |
TrackingParticle::~TrackingParticle | ( | ) |
Definition at line 14 of file TrackingParticle.cc.
{ }
void TrackingParticle::addDecayVertex | ( | const TrackingVertexRef & | ref | ) |
Definition at line 77 of file TrackingParticle.cc.
References decayVertices_, and edm::RefVector< C, T, F >::push_back().
Referenced by TrackingTruthProducer::mergeBremsstrahlung().
{ decayVertices_.push_back(ref); }
void TrackingParticle::addG4Track | ( | const SimTrack & | t | ) |
Definition at line 23 of file TrackingParticle.cc.
References g4Tracks_.
Referenced by TrackingTruthProducer::mergeBremsstrahlung(), and TrackingTruthProducer::setTrackingParticle().
{ g4Tracks_.push_back(t); }
void TrackingParticle::addGenParticle | ( | const GenParticleRef & | ) |
Definition at line 18 of file TrackingParticle.cc.
References genParticles_, and edm::RefVector< C, T, F >::push_back().
Referenced by TrackingTruthProducer::setTrackingParticle().
{ genParticles_.push_back(ref); }
void TrackingParticle::addPSimHit | ( | const PSimHit & | hit | ) |
Definition at line 28 of file TrackingParticle.cc.
References trackPSimHit_.
Referenced by TrackingTruthProducer::mergeBremsstrahlung(), and TrackingTruthProducer::setTrackingParticle().
{ trackPSimHit_.push_back(hit); }
void TrackingParticle::clearDecayVertices | ( | ) |
Definition at line 87 of file TrackingParticle.cc.
References edm::RefVector< C, T, F >::clear(), and decayVertices_.
Referenced by TrackingTruthProducer::mergeBremsstrahlung().
{ decayVertices_.clear(); }
void TrackingParticle::clearParentVertex | ( | ) |
Definition at line 82 of file TrackingParticle.cc.
References parentVertex_.
Referenced by TrackingTruthProducer::mergeBremsstrahlung().
{ parentVertex_ = TrackingVertexRef(); }
const TrackingVertexRefVector& TrackingParticle::decayVertices | ( | ) | const [inline] |
Definition at line 111 of file TrackingParticle.h.
References decayVertices_.
Referenced by TrackingTruthProducer::mergeBremsstrahlung(), and operator<<().
{ return decayVertices_; }
tv_iterator TrackingParticle::decayVertices_begin | ( | ) | const [inline] |
Definition at line 115 of file TrackingParticle.h.
References edm::RefVector< C, T, F >::begin(), and decayVertices_.
Referenced by TrackingTruthProducer::mergeBremsstrahlung(), and operator<<().
{ return decayVertices_.begin(); }
tv_iterator TrackingParticle::decayVertices_end | ( | ) | const [inline] |
Definition at line 119 of file TrackingParticle.h.
References decayVertices_, and edm::RefVector< C, T, F >::end().
Referenced by TrackingTruthProducer::mergeBremsstrahlung(), and operator<<().
{ return decayVertices_.end(); }
EncodedEventId TrackingParticle::eventId | ( | ) | const [inline] |
Definition at line 60 of file TrackingParticle.h.
References eventId_.
Referenced by MultiTrackValidator::analyze(), TrackingParticleSelector::operator()(), and operator<<().
{ return eventId_; }
TrackingParticle::g4t_iterator TrackingParticle::g4Track_begin | ( | ) | const |
Definition at line 43 of file TrackingParticle.cc.
References g4Tracks_.
Referenced by QuickTrackAssociatorByHits::getDoubleCount(), TrackingTruthProducer::mergeBremsstrahlung(), operator<<(), and QuickTrackAssociatorByHits::trackingParticleContainsIdentifier().
{ return g4Tracks_.begin(); }
TrackingParticle::g4t_iterator TrackingParticle::g4Track_end | ( | ) | const |
Definition at line 48 of file TrackingParticle.cc.
References g4Tracks_.
Referenced by QuickTrackAssociatorByHits::getDoubleCount(), TrackingTruthProducer::mergeBremsstrahlung(), operator<<(), and QuickTrackAssociatorByHits::trackingParticleContainsIdentifier().
{ return g4Tracks_.end(); }
const std::vector<SimTrack>& TrackingParticle::g4Tracks | ( | ) | const [inline] |
const GenParticleRefVector& TrackingParticle::genParticle | ( | ) | const [inline] |
Definition at line 89 of file TrackingParticle.h.
References genParticles_.
{ return genParticles_; }
TrackingParticle::genp_iterator TrackingParticle::genParticle_begin | ( | ) | const |
iterators
Definition at line 33 of file TrackingParticle.cc.
References edm::RefVector< C, T, F >::begin(), and genParticles_.
Referenced by TrackingParticleSelector::operator()(), and operator<<().
{ return genParticles_.begin(); }
TrackingParticle::genp_iterator TrackingParticle::genParticle_end | ( | ) | const |
Definition at line 38 of file TrackingParticle.cc.
References edm::RefVector< C, T, F >::end(), and genParticles_.
Referenced by TrackingParticleSelector::operator()(), and operator<<().
{ return genParticles_.end(); }
int TrackingParticle::matchedHit | ( | ) | const [inline] |
Definition at line 123 of file TrackingParticle.h.
References matchedHit_.
Referenced by CosmicTrackingParticleSelector::operator()(), and TrackingParticleSelector::operator()().
{ return matchedHit_; }
const TrackingVertexRef& TrackingParticle::parentVertex | ( | ) | const [inline] |
Definition at line 97 of file TrackingParticle.h.
References parentVertex_.
Referenced by V0Validator::analyze(), TrackingTruthProducer::mergeBremsstrahlung(), RecoTracktoTP::numTPMothers(), TPtoRecoTrack::numTPMothers(), RecoTracktoTP::numTPSourceTracks(), TPtoRecoTrack::numTPSourceTracks(), operator<<(), ShallowSimTracksProducer::produce(), RecoTracktoTP::TPMother(), and TPtoRecoTrack::TPMother().
{ return parentVertex_; }
int TrackingParticle::pdgId | ( | ) | const [inline] |
PDG id, signal source, crossing number.
Reimplemented from ParticleBase.
Definition at line 56 of file TrackingParticle.h.
References pdgId_.
Referenced by V0Validator::analyze(), MuonMCClassifier::convertAndPush(), TrackingTruthProducer::mergeBremsstrahlung(), TrackingParticleSelector::operator()(), operator<<(), and ShallowSimTracksProducer::produce().
{ return pdgId_; }
const std::vector< PSimHit >::const_iterator TrackingParticle::pSimHit_begin | ( | ) | const |
Returns the begin of the vector of ALL the PSimHits of the TrackingParticle
Definition at line 53 of file TrackingParticle.cc.
References trackPSimHit_.
Referenced by TrackingTruthProducer::mergeBremsstrahlung().
{ return trackPSimHit_.begin(); }
const std::vector< PSimHit >::const_iterator TrackingParticle::pSimHit_end | ( | ) | const |
Returns the end of the vector of ALL the PSimHits of the TrackingParticle
Definition at line 58 of file TrackingParticle.cc.
References trackPSimHit_.
Referenced by TrackingTruthProducer::mergeBremsstrahlung().
{ return trackPSimHit_.end(); }
void TrackingParticle::setMatchedHit | ( | const int & | hitnumb | ) |
Definition at line 92 of file TrackingParticle.cc.
References matchedHit_.
Referenced by TrackingTruthProducer::setTrackingParticle().
{ matchedHit_ = hitnumb; }
void TrackingParticle::setParentVertex | ( | const TrackingVertexRef & | ref | ) |
Definition at line 72 of file TrackingParticle.cc.
References parentVertex_.
Referenced by TrackingTruthProducer::mergeBremsstrahlung().
{ parentVertex_ = ref; }
void TrackingParticle::setVertex | ( | const Point & | vtx, |
double | t | ||
) |
Definition at line 97 of file TrackingParticle.cc.
References lumiQTWidget::t, and t_.
{ t_ = t; ParticleBase::setVertex(vtx); }
std::vector< PSimHit > TrackingParticle::trackPSimHit | ( | DetId::Detector | detector | ) | const |
Definition at line 63 of file TrackingParticle.cc.
References DetId::det(), query::result, and trackPSimHit_.
{ std::vector<PSimHit> result; for (std::vector<PSimHit>::const_iterator iHit = trackPSimHit_.begin(); iHit != trackPSimHit_.end(); ++iHit) if ( detector == DetId( (uint32_t)((*iHit).detUnitId()) ).det() ) result.push_back(*iHit); return result; }
const std::vector<PSimHit>& TrackingParticle::trackPSimHit | ( | ) | const [inline] |
The vector of ALL the PSimHits of the TrackingParticle
Definition at line 102 of file TrackingParticle.h.
References trackPSimHit_.
Referenced by MultiTrackValidator::analyze(), MuonTrackValidator::analyze(), QuickTrackAssociatorByHits::associateTrack(), FWTrackingParticleProxyBuilder::build(), TrackAssociatorByPosition::getState(), CosmicParametersDefinerForTP::momentum(), CosmicTrackingParticleSelector::operator()(), operator<<(), and CosmicParametersDefinerForTP::vertex().
{ return trackPSimHit_; }
std::ostream& operator<< | ( | std::ostream & | s, |
TrackingParticle const & | tp | ||
) | [friend] |
Concrete TrackingParticle. All track parameters are passed in the constructor and stored internally.
Definition at line 12 of file TrackingDataPrint.h.
{ // Compare momenta from sources s << "T.P. Track Momentum, q , ID, & Event # " << tp.p4() << " " << tp.charge() << " " << tp.pdgId() << " " << tp.eventId().bunchCrossing() << "." << tp.eventId().event() << std::endl; s << " Hits for this track: " << tp.trackPSimHit().size() << std::endl; for (TrackingParticle::genp_iterator hepT = tp.genParticle_begin(); hepT != tp.genParticle_end(); ++hepT) { s << " HepMC Track Momentum " << (*hepT)->momentum().mag() << std::endl; } for (TrackingParticle::g4t_iterator g4T = tp.g4Track_begin(); g4T != tp.g4Track_end(); ++g4T) { s << " Geant Track Momentum " << g4T->momentum() << std::endl; s << " Geant Track ID & type " << g4T->trackId() << " " << g4T->type() << std::endl; if (g4T->type() != tp.pdgId()) { s << " Mismatch b/t TrackingParticle and Geant types" << std::endl; } } return s; }
Definition at line 148 of file TrackingParticle.h.
Referenced by addDecayVertex(), clearDecayVertices(), decayVertices(), decayVertices_begin(), and decayVertices_end().
EncodedEventId TrackingParticle::eventId_ [private] |
Definition at line 134 of file TrackingParticle.h.
Referenced by eventId().
std::vector<SimTrack> TrackingParticle::g4Tracks_ [private] |
references to G4 and HepMC tracks
Definition at line 140 of file TrackingParticle.h.
Referenced by addG4Track(), g4Track_begin(), g4Track_end(), and g4Tracks().
Definition at line 141 of file TrackingParticle.h.
Referenced by addGenParticle(), genParticle(), genParticle_begin(), and genParticle_end().
int TrackingParticle::matchedHit_ [private] |
Total Number of Hits belonging to the TrackingParticle.
Definition at line 137 of file TrackingParticle.h.
Referenced by matchedHit(), and setMatchedHit().
Definition at line 147 of file TrackingParticle.h.
Referenced by clearParentVertex(), parentVertex(), and setParentVertex().
int TrackingParticle::pdgId_ [private] |
PDG identifier, signal source, crossing number.
Reimplemented from ParticleBase.
Definition at line 133 of file TrackingParticle.h.
Referenced by pdgId().
float TrackingParticle::t_ [private] |
std::vector<PSimHit> TrackingParticle::trackPSimHit_ [private] |
Definition at line 144 of file TrackingParticle.h.
Referenced by addPSimHit(), pSimHit_begin(), pSimHit_end(), and trackPSimHit().