1 #ifndef TrackGenAssociatorByChi2_h
2 #define TrackGenAssociatorByChi2_h
52 chi2cut(conf.getParameter<double>(
"chi2cut")),
57 edm::LogInfo(
"TrackAssociator") <<
" ---- Using Off Diagonal Covariance Terms = 0 ---- " <<
"\n";
59 edm::LogInfo(
"TrackAssociator") <<
" ---- Using Off Diagonal Covariance Terms != 0 ---- " <<
"\n";
87 for (
unsigned int j=0;
j<tCH->size();
j++)
91 for (
unsigned int j=0;
j<tPCH->size();
j++)
103 for (
unsigned int j=0;
j<tCH->size();
j++)
107 for (
unsigned int j=0;
j<tPCH->size();
j++)
126 TrackingParticleCollection::const_iterator,
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
reco::GenToRecoCollection associateGenToReco(const edm::RefToBaseVector< reco::Track > &, const edm::RefVector< reco::GenParticleCollection > &, const edm::Event *event=0, const edm::EventSetup *setup=0) const
Association Sim To Reco with Collections (Gen Particle version)
std::pair< reco::Track, Chi2SimMap > RecoToSimPair
virtual reco::GenToRecoCollection associateGenToReco(edm::Handle< edm::View< reco::Track > > &tCH, edm::Handle< reco::GenParticleCollection > &tPCH, const edm::Event *event=0, const edm::EventSetup *setup=0) const
compare reco to sim the handle of reco::Track and GenParticle collections
edm::AssociationMap< edm::OneToManyWithQualityGeneric< reco::GenParticleCollection, edm::View< reco::Track >, double > > GenToRecoCollection
edm::ESHandle< MagneticField > theMF
std::map< double, SimTrack > Chi2SimMap
math::Vector< dimension >::type ParameterVector
parameter vector
virtual reco::RecoToGenCollection associateRecoToGen(edm::Handle< edm::View< reco::Track > > &tCH, edm::Handle< reco::GenParticleCollection > &tPCH, const edm::Event *event=0, const edm::EventSetup *setup=0) const
compare reco to sim the handle of reco::Track and GenParticle collections
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
reco::RecoToGenCollection associateRecoToGen(const edm::RefToBaseVector< reco::Track > &, const edm::RefVector< reco::GenParticleCollection > &, const edm::Event *event=0, const edm::EventSetup *setup=0) const
Association Sim To Reco with Collections (Gen Particle version)
TrackGenAssociatorByChi2(const edm::ESHandle< MagneticField > mF, const edm::ParameterSet &conf)
Constructor with PSet.
void push_back(const RefToBase< T > &)
double associateRecoToSim(reco::TrackCollection::const_iterator, TrackingParticleCollection::const_iterator, const reco::BeamSpot &) const
compare reco::TrackCollection and TrackingParticleCollection iterators: returns the chi2 ...
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
edm::AssociationMap< edm::OneToManyWithQualityGeneric< edm::View< reco::Track >, reco::GenParticleCollection, double > > RecoToGenCollection
double getChi2(const reco::TrackBase::ParameterVector &rParameters, const reco::TrackBase::CovarianceMatrix &recoTrackCovMatrix, const Basic3DVector< double > &momAtVtx, const Basic3DVector< double > &vert, int charge, const reco::BeamSpot &) const
basic method where chi2 is computed
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
TrackGenAssociatorByChi2(const edm::ESHandle< MagneticField > mF, double chi2Cut, bool onlyDiag, const edm::InputTag &beamspotSrc)
Constructor with magnetic field, double, bool and InputTag.
std::vector< RecoToSimPair > RecoToSimPairAssociation
math::Error< dimension >::type CovarianceMatrix
5 parameter covariance matrix