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 */
L1RecoMatch::reco_
const reco::Candidate * reco_
Definition: L1RecoMatch.h:51
L1RecoMatch::l1g_
const reco::Candidate * l1g_
Definition: L1RecoMatch.h:53
L1RecoMatch::l1Match
bool l1Match() const
Definition: L1RecoMatch.cc:18
L1RecoMatch::id
const edm::EventID & id() const
Get the run-lumi-event numbers.
Definition: L1RecoMatch.cc:22
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
L1RecoMatch::index_
unsigned int index_
Definition: L1RecoMatch.h:55
L1RecoMatch::nTotalObjects
unsigned int nTotalObjects() const
Get the total number of reco objects in this event.
Definition: L1RecoMatch.cc:26
EventID.h
L1RecoMatch::l1gMatch
bool l1gMatch() const
Definition: L1RecoMatch.cc:20
L1GObject.h
L1RecoMatch::L1RecoMatch
L1RecoMatch()
Definition: L1RecoMatch.h:22
L1RecoMatch::index
unsigned int index() const
Get the index of this match in the event.
Definition: L1RecoMatch.cc:24
L1RecoMatch::l1extra_
const reco::Candidate * l1extra_
Definition: L1RecoMatch.h:52
L1RecoMatch
Definition: L1RecoMatch.h:19
reco::Candidate
Definition: Candidate.h:27
L1RecoMatch::id_
edm::EventID id_
Definition: L1RecoMatch.h:54
L1RecoMatch::nTotalObjects_
unsigned int nTotalObjects_
Definition: L1RecoMatch.h:56
L1RecoMatch::nPVs
unsigned int nPVs() const
Get number of PVs.
Definition: L1RecoMatch.cc:28
L1RecoMatch::reco
const reco::Candidate * reco() const
Definition: L1RecoMatch.cc:12
L1RecoMatch::l1
const reco::Candidate * l1() const
Definition: L1RecoMatch.cc:14
Candidate.h
edm::EventID
Definition: EventID.h:31
L1RecoMatch::l1g
const reco::Candidate * l1g() const
Definition: L1RecoMatch.cc:16
L1RecoMatch::nPVs_
unsigned int nPVs_
Definition: L1RecoMatch.h:57