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* l1,
25  const reco::Candidate* l1g,
26  edm::EventID id,
27  unsigned int index,
28  unsigned int nTotalObjects,
29  unsigned int nPVs);
30 
31  const reco::Candidate* reco() const;
32  const reco::Candidate* l1() const;
33  const reco::Candidate* l1g() const;
34 
35  // Returns true if l1() is not NULL (i.e. there is a match)
36  bool l1Match() const;
37 
38  // Returns true if l1g() is not NULL (i.e. there is a match)
39  bool l1gMatch() const;
40 
42  const edm::EventID& id() const;
44  unsigned int index() const;
46  unsigned int nTotalObjects() const;
48  unsigned int nPVs() const;
49 
50 private:
55  unsigned int index_;
56  unsigned int nTotalObjects_;
57  unsigned int nPVs_;
58 };
59 
60 #endif /* end of include guard: L1RECOMATCH_L5Q3TJND */
unsigned int nPVs_
Definition: L1RecoMatch.h:57
const edm::EventID & id() const
Get the run-lumi-event numbers.
Definition: L1RecoMatch.cc:22
unsigned int index() const
Get the index of this match in the event.
Definition: L1RecoMatch.cc:24
const reco::Candidate * l1extra_
Definition: L1RecoMatch.h:52
unsigned int index_
Definition: L1RecoMatch.h:55
unsigned int nTotalObjects() const
Get the total number of reco objects in this event.
Definition: L1RecoMatch.cc:26
bool l1gMatch() const
Definition: L1RecoMatch.cc:20
unsigned int nPVs() const
Get number of PVs.
Definition: L1RecoMatch.cc:28
const reco::Candidate * l1() const
Definition: L1RecoMatch.cc:14
fixed size matrix
edm::EventID id_
Definition: L1RecoMatch.h:54
const reco::Candidate * reco() const
Definition: L1RecoMatch.cc:12
const reco::Candidate * l1g() const
Definition: L1RecoMatch.cc:16
const reco::Candidate * l1g_
Definition: L1RecoMatch.h:53
unsigned int nTotalObjects_
Definition: L1RecoMatch.h:56
const reco::Candidate * reco_
Definition: L1RecoMatch.h:51
bool l1Match() const
Definition: L1RecoMatch.cc:18