CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TrackAssociatorBase.h
Go to the documentation of this file.
1 #ifndef TrackAssociatorBase_h
2 #define TrackAssociatorBase_h
3 
13 
16 
17 namespace reco{
24 
31  }
32 
34  public:
38  virtual ~TrackAssociatorBase() {;}
39 
40 
44  const edm::Event * event ,
45  const edm::EventSetup * setup ) const {
47  for (unsigned int j=0; j<tCH->size();j++)
48  tc.push_back(tCH->refAt(j));
49 
51  for (unsigned int j=0; j<tPCH->size();j++)
53 
54  return associateRecoToSim(tc,tpc,event,setup);
55  }
56 
60  const edm::Event * event ,
61  const edm::EventSetup * setup ) const {
63  for (unsigned int j=0; j<tCH->size();j++)
64  tc.push_back(tCH->refAt(j));
65 
67  for (unsigned int j=0; j<tPCH->size();j++)
69 
70  return associateSimToReco(tc,tpc,event,setup);
71  }
72 
76  const edm::Event * event ,
77  const edm::EventSetup * setup ) const = 0 ;
81  const edm::Event * event ,
82  const edm::EventSetup * setup ) const = 0 ;
83 
84  //TrajectorySeed
87  const edm::Event * event ,
88  const edm::EventSetup * setup ) const {
90  return empty;
91  }
92 
95  const edm::Event * event ,
96  const edm::EventSetup * setup ) const {
98  return empty;
99  }
100 
101  //TrackCandidate
104  const edm::Event * event ,
105  const edm::EventSetup * setup ) const {
107  return empty;
108  }
109 
112  const edm::Event * event ,
113  const edm::EventSetup * setup ) const {
115  return empty;
116  }
117 
118 };
119 
120 
121 #endif
edm::AssociationMap< edm::OneToManyWithQualityGeneric< edm::View< TrajectorySeed >, TrackingParticleCollection, double > > RecoToSimCollectionSeed
edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrajectorySeedCollection, TrackCandidateCollection, double > > RecoToSimCollectionTCandidate
std::vector< TrackingParticle > TrackingParticleCollection
ProductID id() const
Definition: HandleBase.cc:15
TrackAssociatorBase()
Constructor.
std::vector< TrackCandidate > TrackCandidateCollection
std::vector< TrajectorySeed > TrajectorySeedCollection
virtual reco::RecoToSimCollectionTCandidate associateRecoToSim(edm::Handle< TrackCandidateCollection > &, edm::Handle< TrackingParticleCollection > &, const edm::Event *event, const edm::EventSetup *setup) const
edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, TrackCandidateCollection, double > > SimToRecoCollectionTCandidate
int j
Definition: DBlmapReader.cc:9
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
virtual ~TrackAssociatorBase()
Destructor.
virtual reco::RecoToSimCollection associateRecoToSim(edm::Handle< edm::View< reco::Track > > &tCH, edm::Handle< TrackingParticleCollection > &tPCH, const edm::Event *event, const edm::EventSetup *setup) const
compare reco to sim the handle of reco::Track and TrackingParticle collections
edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, edm::View< TrajectorySeed >, double > > SimToRecoCollectionSeed
virtual reco::SimToRecoCollection associateSimToReco(edm::Handle< edm::View< reco::Track > > &tCH, edm::Handle< TrackingParticleCollection > &tPCH, const edm::Event *event, const edm::EventSetup *setup) const
compare reco to sim the handle of reco::Track and TrackingParticle collections
virtual reco::RecoToSimCollectionSeed associateRecoToSim(edm::Handle< edm::View< TrajectorySeed > > &, edm::Handle< TrackingParticleCollection > &, const edm::Event *event, const edm::EventSetup *setup) const
virtual reco::SimToRecoCollectionTCandidate associateSimToReco(edm::Handle< TrackCandidateCollection > &, edm::Handle< TrackingParticleCollection > &, const edm::Event *event, const edm::EventSetup *setup) const
void push_back(const RefToBase< T > &)
virtual reco::SimToRecoCollectionSeed associateSimToReco(edm::Handle< edm::View< TrajectorySeed > > &, edm::Handle< TrackingParticleCollection > &, const edm::Event *event, const edm::EventSetup *setup) const
void push_back(value_type const &ref)
Add a Ref&lt;C, T&gt; to the RefVector.
Definition: RefVector.h:64
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")