CMS 3D CMS Logo

L1RecoMatch.h
Go to the documentation of this file.
1 /*
2  * L1RecoMatch
3  *
4  * Intermediate light-weight dataformat that puts all of the
5  * matched objects in one object.
6  *
7  * This is just a trick so we can operate on the objects using the string cut
8  * parser to build the TTrees.
9  *
10  */
11 
12 #ifndef L1RECOMATCH_L5Q3TJND
13 #define L1RECOMATCH_L5Q3TJND
14 
18 
19 class L1RecoMatch {
20  public:
21  // Default needed for persistency
24  const reco::Candidate* l1g, edm::EventID id,
25  unsigned int index, unsigned int nTotalObjects, unsigned int nPVs);
26 
27  const reco::Candidate* reco() const;
28  const reco::Candidate* l1() const;
29  const reco::Candidate* l1g() const;
30 
31  // Returns true if l1() is not NULL (i.e. there is a match)
32  bool l1Match() const;
33 
34  // Returns true if l1g() is not NULL (i.e. there is a match)
35  bool l1gMatch() const;
36 
38  const edm::EventID& id() const;
40  unsigned int index() const;
42  unsigned int nTotalObjects() const;
44  unsigned int nPVs() const;
45 
46  private:
51  unsigned int index_;
52  unsigned int nTotalObjects_;
53  unsigned int nPVs_;
54 };
55 
56 #endif /* end of include guard: L1RECOMATCH_L5Q3TJND */
unsigned int nPVs_
Definition: L1RecoMatch.h:53
bool l1gMatch() const
Definition: L1RecoMatch.cc:25
const reco::Candidate * l1() const
Definition: L1RecoMatch.cc:13
const reco::Candidate * l1extra_
Definition: L1RecoMatch.h:48
unsigned int index_
Definition: L1RecoMatch.h:51
const reco::Candidate * reco() const
Definition: L1RecoMatch.cc:9
const reco::Candidate * l1g() const
Definition: L1RecoMatch.cc:17
const edm::EventID & id() const
Get the run-lumi-event numbers.
Definition: L1RecoMatch.cc:29
bool l1Match() const
Definition: L1RecoMatch.cc:21
unsigned int index() const
Get the index of this match in the event.
Definition: L1RecoMatch.cc:33
unsigned int nTotalObjects() const
Get the total number of reco objects in this event.
Definition: L1RecoMatch.cc:37
fixed size matrix
edm::EventID id_
Definition: L1RecoMatch.h:50
unsigned int nPVs() const
Get number of PVs.
Definition: L1RecoMatch.cc:41
const reco::Candidate * l1g_
Definition: L1RecoMatch.h:49
unsigned int nTotalObjects_
Definition: L1RecoMatch.h:52
const reco::Candidate * reco_
Definition: L1RecoMatch.h:47