CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
L1Analysis::L1AnalysisL1Extra Class Reference

#include <L1AnalysisL1Extra.h>

Public Member Functions

L1AnalysisL1ExtraDataFormatgetData ()
 
 L1AnalysisL1Extra ()
 
void Reset ()
 
void SetCenJet (const edm::Handle< l1extra::L1JetParticleCollection > cenJet, unsigned maxL1Extra)
 
void SetFwdJet (const edm::Handle< l1extra::L1JetParticleCollection > fwdJet, unsigned maxL1Extra)
 
void SetHFring (const edm::Handle< l1extra::L1HFRingsCollection > hfRings)
 
void SetIsoEm (const edm::Handle< l1extra::L1EmParticleCollection > isoEm, unsigned maxL1Extra)
 
void SetIsoTauJet (const edm::Handle< l1extra::L1JetParticleCollection > isoTauJet, unsigned maxL1Extra)
 
void SetMet (const edm::Handle< l1extra::L1EtMissParticleCollection > mets)
 
void SetMht (const edm::Handle< l1extra::L1EtMissParticleCollection > mhts)
 
void SetMuon (const edm::Handle< l1extra::L1MuonParticleCollection > muon, unsigned maxL1Extra)
 
void SetNonIsoEm (const edm::Handle< l1extra::L1EmParticleCollection > nonIsoEm, unsigned maxL1Extra)
 
void SetTauJet (const edm::Handle< l1extra::L1JetParticleCollection > tauJet, unsigned maxL1Extra)
 
 ~L1AnalysisL1Extra ()
 

Private Attributes

L1AnalysisL1ExtraDataFormat l1extra_
 

Detailed Description

Definition at line 26 of file L1AnalysisL1Extra.h.

Constructor & Destructor Documentation

◆ L1AnalysisL1Extra()

L1Analysis::L1AnalysisL1Extra::L1AnalysisL1Extra ( )

Definition at line 3 of file L1AnalysisL1Extra.cc.

3 {}

◆ ~L1AnalysisL1Extra()

L1Analysis::L1AnalysisL1Extra::~L1AnalysisL1Extra ( )

Definition at line 5 of file L1AnalysisL1Extra.cc.

5 {}

Member Function Documentation

◆ getData()

L1AnalysisL1ExtraDataFormat* L1Analysis::L1AnalysisL1Extra::getData ( void  )
inline

Definition at line 41 of file L1AnalysisL1Extra.h.

41 { return &l1extra_; }

References l1extra_.

Referenced by L1ExtraTreeProducer::L1ExtraTreeProducer().

◆ Reset()

void L1Analysis::L1AnalysisL1Extra::Reset ( )
inline

◆ SetCenJet()

void L1Analysis::L1AnalysisL1Extra::SetCenJet ( const edm::Handle< l1extra::L1JetParticleCollection cenJet,
unsigned  maxL1Extra 
)

Definition at line 33 of file L1AnalysisL1Extra.cc.

34  {
35  // std::cout << "Filling L1 Extra cenJets" << maxL1Extra << " " << cenJet->size() << std::endl;
36 
37  for (l1extra::L1JetParticleCollection::const_iterator it = cenJet->begin();
38  it != cenJet->end() && l1extra_.nCenJets < maxL1Extra;
39  it++) {
40  //printf("L1CenJet (et,eta,phi,bx,) (%f,%f,%f,%d) \n",it->et(),it->eta(),it->phi(),it->bx() );
41  // std::cout << "L1 CenJets et,eta,phi,bx = " << it->et() << ", " << it->eta() <<", " <<it->phi() <<", " << it->bx() << std::endl;
42  l1extra_.cenJetEt.push_back(it->et());
43  l1extra_.cenJetEta.push_back(it->eta());
44  l1extra_.cenJetPhi.push_back(it->phi());
45  l1extra_.cenJetBx.push_back(it->bx());
47  }
48 }

References l1ExtraTree_cfi::maxL1Extra.

Referenced by L1ExtraTreeProducer::analyze().

◆ SetFwdJet()

void L1Analysis::L1AnalysisL1Extra::SetFwdJet ( const edm::Handle< l1extra::L1JetParticleCollection fwdJet,
unsigned  maxL1Extra 
)

Definition at line 50 of file L1AnalysisL1Extra.cc.

51  {
52  //std::cout << "Filling L1 Extra fwdJets" << std::endl;
53  for (l1extra::L1JetParticleCollection::const_iterator it = fwdJet->begin();
54  it != fwdJet->end() && l1extra_.nFwdJets < maxL1Extra;
55  it++) {
56  //printf("L1fwdJet (et,eta,phi,bx,) (%f,%f,%f,%d)\n",it->et(),it->eta(),it->phi(),it->bx() );
57  l1extra_.fwdJetEt.push_back(it->et());
58  l1extra_.fwdJetEta.push_back(it->eta());
59  l1extra_.fwdJetPhi.push_back(it->phi());
60  l1extra_.fwdJetBx.push_back(it->bx());
62  }
63 }

References l1ExtraTree_cfi::maxL1Extra.

Referenced by L1ExtraTreeProducer::analyze().

◆ SetHFring()

void L1Analysis::L1AnalysisL1Extra::SetHFring ( const edm::Handle< l1extra::L1HFRingsCollection hfRings)

Definition at line 139 of file L1AnalysisL1Extra.cc.

139  {
140  l1extra_.hfEtSum.resize(4);
141  l1extra_.hfBitCnt.resize(4);
142  l1extra_.hfBx.resize(4);
143 
144  for (unsigned int i = 0; i < 4; ++i) {
145  if (hfRings->empty())
146  continue;
147 
148  l1extra_.hfEtSum[i] = (hfRings->begin()->hfEtSum((l1extra::L1HFRings::HFRingLabels)i));
149  l1extra_.hfBitCnt[i] = (hfRings->begin()->hfBitCount((l1extra::L1HFRings::HFRingLabels)i));
150  l1extra_.hfBx[i] = hfRings->begin()->bx();
151  }
152 }

References mps_fire::i.

Referenced by L1ExtraTreeProducer::analyze().

◆ SetIsoEm()

void L1Analysis::L1AnalysisL1Extra::SetIsoEm ( const edm::Handle< l1extra::L1EmParticleCollection isoEm,
unsigned  maxL1Extra 
)

Definition at line 7 of file L1AnalysisL1Extra.cc.

8  {
9  for (l1extra::L1EmParticleCollection::const_iterator it = isoEm->begin();
10  it != isoEm->end() && l1extra_.nIsoEm < maxL1Extra;
11  it++) {
12  l1extra_.isoEmEt.push_back(it->et());
13  l1extra_.isoEmEta.push_back(it->eta());
14  l1extra_.isoEmPhi.push_back(it->phi());
15  l1extra_.isoEmBx.push_back(it->bx());
16  l1extra_.nIsoEm++;
17  }
18 }

References l1ExtraTree_cfi::maxL1Extra.

Referenced by L1ExtraTreeProducer::analyze().

◆ SetIsoTauJet()

void L1Analysis::L1AnalysisL1Extra::SetIsoTauJet ( const edm::Handle< l1extra::L1JetParticleCollection isoTauJet,
unsigned  maxL1Extra 
)

Definition at line 80 of file L1AnalysisL1Extra.cc.

81  {
82  // std::cout << "Filling L1 Extra isoTauJets" << std::endl;
83  for (l1extra::L1JetParticleCollection::const_iterator it = isoTauJet->begin();
84  it != isoTauJet->end() && l1extra_.nIsoTauJets < maxL1Extra;
85  it++) {
86  // printf("L1isoTauJet (et,eta,phi,bx,) (%f,%f,%f,%d)\n",it->et(),it->eta(),it->phi(),it->bx() );
87  l1extra_.isoTauJetEt.push_back(it->et());
88  l1extra_.isoTauJetEta.push_back(it->eta());
89  l1extra_.isoTauJetPhi.push_back(it->phi());
90  l1extra_.isoTauJetBx.push_back(it->bx());
92  }
93 }

References l1ExtraTree_cfi::maxL1Extra.

Referenced by L1ExtraTreeProducer::analyze().

◆ SetMet()

void L1Analysis::L1AnalysisL1Extra::SetMet ( const edm::Handle< l1extra::L1EtMissParticleCollection mets)

Definition at line 119 of file L1AnalysisL1Extra.cc.

119  {
120  for (l1extra::L1EtMissParticleCollection::const_iterator it = mets->begin(); it != mets->end(); it++) {
121  l1extra_.et.push_back(it->etTotal());
122  l1extra_.met.push_back(it->et());
123  l1extra_.metPhi.push_back(it->phi());
124  l1extra_.metBx.push_back(it->bx());
125  l1extra_.nMet++;
126  }
127 }

References singleTopDQM_cfi::mets.

Referenced by L1ExtraTreeProducer::analyze().

◆ SetMht()

void L1Analysis::L1AnalysisL1Extra::SetMht ( const edm::Handle< l1extra::L1EtMissParticleCollection mhts)

Definition at line 129 of file L1AnalysisL1Extra.cc.

129  {
130  for (l1extra::L1EtMissParticleCollection::const_iterator it = mhts->begin(); it != mhts->end(); it++) {
131  l1extra_.ht.push_back(it->etTotal());
132  l1extra_.mht.push_back(it->et());
133  l1extra_.mhtPhi.push_back(it->phi());
134  l1extra_.mhtBx.push_back(it->bx());
135  l1extra_.nMht++;
136  }
137 }

Referenced by L1ExtraTreeProducer::analyze().

◆ SetMuon()

void L1Analysis::L1AnalysisL1Extra::SetMuon ( const edm::Handle< l1extra::L1MuonParticleCollection muon,
unsigned  maxL1Extra 
)

Definition at line 95 of file L1AnalysisL1Extra.cc.

96  {
97  for (l1extra::L1MuonParticleCollection::const_iterator it = muon->begin();
98  it != muon->end() && l1extra_.nMuons < maxL1Extra;
99  it++) {
100  l1extra_.muonEt.push_back(it->et());
101  l1extra_.muonEta.push_back(it->eta());
102  l1extra_.muonPhi.push_back(it->phi());
103  l1extra_.muonChg.push_back(it->charge());
104  l1extra_.muonIso.push_back(it->isIsolated());
105  l1extra_.muonMip.push_back(it->isMip());
106  l1extra_.muonFwd.push_back(it->isForward());
107  l1extra_.muonRPC.push_back(it->isRPC());
108  l1extra_.muonBx.push_back(it->bx());
109  l1extra_.muonQuality.push_back(it->gmtMuonCand().quality());
110 
111  // std::cout << "gmtmuon cand: pt " << it->gmtMuonCand().ptValue()
112  // << "; ptExtra " << it->et()
113  // << "; qual " << it->gmtMuonCand().quality()
114  // << std::endl;
115  l1extra_.nMuons++;
116  }
117 }

References l1ExtraTree_cfi::maxL1Extra.

Referenced by L1ExtraTreeProducer::analyze().

◆ SetNonIsoEm()

void L1Analysis::L1AnalysisL1Extra::SetNonIsoEm ( const edm::Handle< l1extra::L1EmParticleCollection nonIsoEm,
unsigned  maxL1Extra 
)

Definition at line 20 of file L1AnalysisL1Extra.cc.

21  {
22  for (l1extra::L1EmParticleCollection::const_iterator it = nonIsoEm->begin();
23  it != nonIsoEm->end() && l1extra_.nNonIsoEm < maxL1Extra;
24  it++) {
25  l1extra_.nonIsoEmEt.push_back(it->et());
26  l1extra_.nonIsoEmEta.push_back(it->eta());
27  l1extra_.nonIsoEmPhi.push_back(it->phi());
28  l1extra_.nonIsoEmBx.push_back(it->bx());
30  }
31 }

References l1ExtraTree_cfi::maxL1Extra.

Referenced by L1ExtraTreeProducer::analyze().

◆ SetTauJet()

void L1Analysis::L1AnalysisL1Extra::SetTauJet ( const edm::Handle< l1extra::L1JetParticleCollection tauJet,
unsigned  maxL1Extra 
)

Definition at line 65 of file L1AnalysisL1Extra.cc.

66  {
67  //std::cout << "Filling L1 Extra tauJets" << std::endl;
68  for (l1extra::L1JetParticleCollection::const_iterator it = tauJet->begin();
69  it != tauJet->end() && l1extra_.nTauJets < maxL1Extra;
70  it++) {
71  // printf("L1tauJet (et,eta,phi,bx,) (%f,%f,%f,%d)\n",it->et(),it->eta(),it->phi(),it->bx() );
72  l1extra_.tauJetEt.push_back(it->et());
73  l1extra_.tauJetEta.push_back(it->eta());
74  l1extra_.tauJetPhi.push_back(it->phi());
75  l1extra_.tauJetBx.push_back(it->bx());
77  }
78 }

References l1ExtraTree_cfi::maxL1Extra.

Referenced by L1ExtraTreeProducer::analyze().

Member Data Documentation

◆ l1extra_

L1AnalysisL1ExtraDataFormat L1Analysis::L1AnalysisL1Extra::l1extra_
private

Definition at line 44 of file L1AnalysisL1Extra.h.

Referenced by getData(), and Reset().

l1extra::L1HFRings::HFRingLabels
HFRingLabels
Definition: L1HFRings.h:33
L1Analysis::L1AnalysisL1ExtraDataFormat::fwdJetBx
std::vector< int > fwdJetBx
Definition: L1AnalysisL1ExtraDataFormat.h:106
L1Analysis::L1AnalysisL1ExtraDataFormat::mhtBx
std::vector< float > mhtBx
Definition: L1AnalysisL1ExtraDataFormat.h:146
L1Analysis::L1AnalysisL1ExtraDataFormat::tauJetEt
std::vector< float > tauJetEt
Definition: L1AnalysisL1ExtraDataFormat.h:109
mps_fire.i
i
Definition: mps_fire.py:428
L1Analysis::L1AnalysisL1ExtraDataFormat::isoTauJetEt
std::vector< float > isoTauJetEt
Definition: L1AnalysisL1ExtraDataFormat.h:115
L1Analysis::L1AnalysisL1ExtraDataFormat::mhtPhi
std::vector< float > mhtPhi
Definition: L1AnalysisL1ExtraDataFormat.h:145
muon
Definition: MuonCocktails.h:17
L1Analysis::L1AnalysisL1ExtraDataFormat::mht
std::vector< float > mht
Definition: L1AnalysisL1ExtraDataFormat.h:144
L1Analysis::L1AnalysisL1ExtraDataFormat::cenJetEta
std::vector< float > cenJetEta
Definition: L1AnalysisL1ExtraDataFormat.h:98
L1Analysis::L1AnalysisL1ExtraDataFormat::nIsoTauJets
unsigned short nIsoTauJets
Definition: L1AnalysisL1ExtraDataFormat.h:114
L1Analysis::L1AnalysisL1ExtraDataFormat::muonBx
std::vector< int > muonBx
Definition: L1AnalysisL1ExtraDataFormat.h:129
L1Analysis::L1AnalysisL1ExtraDataFormat::fwdJetPhi
std::vector< float > fwdJetPhi
Definition: L1AnalysisL1ExtraDataFormat.h:105
L1Analysis::L1AnalysisL1ExtraDataFormat::metBx
std::vector< float > metBx
Definition: L1AnalysisL1ExtraDataFormat.h:140
L1Analysis::L1AnalysisL1ExtraDataFormat::nMht
unsigned short nMht
Definition: L1AnalysisL1ExtraDataFormat.h:142
L1Analysis::L1AnalysisL1ExtraDataFormat::hfBitCnt
std::vector< unsigned short > hfBitCnt
Definition: L1AnalysisL1ExtraDataFormat.h:133
singleTopDQM_cfi.mets
mets
Definition: singleTopDQM_cfi.py:43
L1Analysis::L1AnalysisL1ExtraDataFormat::tauJetEta
std::vector< float > tauJetEta
Definition: L1AnalysisL1ExtraDataFormat.h:110
L1Analysis::L1AnalysisL1ExtraDataFormat::muonMip
std::vector< unsigned short > muonMip
Definition: L1AnalysisL1ExtraDataFormat.h:127
L1Analysis::L1AnalysisL1ExtraDataFormat::ht
std::vector< float > ht
Definition: L1AnalysisL1ExtraDataFormat.h:143
L1Analysis::L1AnalysisL1ExtraDataFormat::metPhi
std::vector< float > metPhi
Definition: L1AnalysisL1ExtraDataFormat.h:139
L1Analysis::L1AnalysisL1ExtraDataFormat::cenJetBx
std::vector< int > cenJetBx
Definition: L1AnalysisL1ExtraDataFormat.h:100
L1Analysis::L1AnalysisL1ExtraDataFormat::tauJetBx
std::vector< int > tauJetBx
Definition: L1AnalysisL1ExtraDataFormat.h:112
L1Analysis::L1AnalysisL1ExtraDataFormat::isoTauJetBx
std::vector< int > isoTauJetBx
Definition: L1AnalysisL1ExtraDataFormat.h:118
L1Analysis::L1AnalysisL1ExtraDataFormat::nonIsoEmPhi
std::vector< float > nonIsoEmPhi
Definition: L1AnalysisL1ExtraDataFormat.h:93
L1Analysis::L1AnalysisL1ExtraDataFormat::muonQuality
std::vector< int > muonQuality
Definition: L1AnalysisL1ExtraDataFormat.h:130
L1Analysis::L1AnalysisL1ExtraDataFormat::nFwdJets
unsigned short nFwdJets
Definition: L1AnalysisL1ExtraDataFormat.h:102
L1Analysis::L1AnalysisL1ExtraDataFormat::nCenJets
unsigned short nCenJets
Definition: L1AnalysisL1ExtraDataFormat.h:96
L1Analysis::L1AnalysisL1ExtraDataFormat::muonFwd
std::vector< unsigned short > muonFwd
Definition: L1AnalysisL1ExtraDataFormat.h:126
L1Analysis::L1AnalysisL1Extra::l1extra_
L1AnalysisL1ExtraDataFormat l1extra_
Definition: L1AnalysisL1Extra.h:44
L1Analysis::L1AnalysisL1ExtraDataFormat::nNonIsoEm
unsigned short nNonIsoEm
Definition: L1AnalysisL1ExtraDataFormat.h:90
L1Analysis::L1AnalysisL1ExtraDataFormat::muonRPC
std::vector< unsigned short > muonRPC
Definition: L1AnalysisL1ExtraDataFormat.h:128
L1Analysis::L1AnalysisL1ExtraDataFormat::nMuons
unsigned short nMuons
Definition: L1AnalysisL1ExtraDataFormat.h:120
L1Analysis::L1AnalysisL1ExtraDataFormat::nonIsoEmEt
std::vector< float > nonIsoEmEt
Definition: L1AnalysisL1ExtraDataFormat.h:91
L1Analysis::L1AnalysisL1ExtraDataFormat::isoTauJetEta
std::vector< float > isoTauJetEta
Definition: L1AnalysisL1ExtraDataFormat.h:116
L1Analysis::L1AnalysisL1ExtraDataFormat::fwdJetEt
std::vector< float > fwdJetEt
Definition: L1AnalysisL1ExtraDataFormat.h:103
L1Analysis::L1AnalysisL1ExtraDataFormat::muonEt
std::vector< float > muonEt
Definition: L1AnalysisL1ExtraDataFormat.h:121
L1Analysis::L1AnalysisL1ExtraDataFormat::hfEtSum
std::vector< float > hfEtSum
Definition: L1AnalysisL1ExtraDataFormat.h:132
L1Analysis::L1AnalysisL1ExtraDataFormat::nonIsoEmEta
std::vector< float > nonIsoEmEta
Definition: L1AnalysisL1ExtraDataFormat.h:92
L1Analysis::L1AnalysisL1ExtraDataFormat::cenJetEt
std::vector< float > cenJetEt
Definition: L1AnalysisL1ExtraDataFormat.h:97
L1Analysis::L1AnalysisL1ExtraDataFormat::isoEmEt
std::vector< float > isoEmEt
Definition: L1AnalysisL1ExtraDataFormat.h:85
L1Analysis::L1AnalysisL1ExtraDataFormat::muonIso
std::vector< unsigned short > muonIso
Definition: L1AnalysisL1ExtraDataFormat.h:125
L1Analysis::L1AnalysisL1ExtraDataFormat::muonEta
std::vector< float > muonEta
Definition: L1AnalysisL1ExtraDataFormat.h:122
L1Analysis::L1AnalysisL1ExtraDataFormat::isoEmBx
std::vector< int > isoEmBx
Definition: L1AnalysisL1ExtraDataFormat.h:88
L1Analysis::L1AnalysisL1ExtraDataFormat::muonChg
std::vector< int > muonChg
Definition: L1AnalysisL1ExtraDataFormat.h:124
L1Analysis::L1AnalysisL1ExtraDataFormat::Reset
void Reset()
Definition: L1AnalysisL1ExtraDataFormat.h:18
L1Analysis::L1AnalysisL1ExtraDataFormat::muonPhi
std::vector< float > muonPhi
Definition: L1AnalysisL1ExtraDataFormat.h:123
L1Analysis::L1AnalysisL1ExtraDataFormat::nMet
unsigned short nMet
Definition: L1AnalysisL1ExtraDataFormat.h:136
L1Analysis::L1AnalysisL1ExtraDataFormat::tauJetPhi
std::vector< float > tauJetPhi
Definition: L1AnalysisL1ExtraDataFormat.h:111
L1Analysis::L1AnalysisL1ExtraDataFormat::fwdJetEta
std::vector< float > fwdJetEta
Definition: L1AnalysisL1ExtraDataFormat.h:104
L1Analysis::L1AnalysisL1ExtraDataFormat::hfBx
std::vector< int > hfBx
Definition: L1AnalysisL1ExtraDataFormat.h:134
L1Analysis::L1AnalysisL1ExtraDataFormat::isoEmEta
std::vector< float > isoEmEta
Definition: L1AnalysisL1ExtraDataFormat.h:86
L1Analysis::L1AnalysisL1ExtraDataFormat::cenJetPhi
std::vector< float > cenJetPhi
Definition: L1AnalysisL1ExtraDataFormat.h:99
L1Analysis::L1AnalysisL1ExtraDataFormat::isoEmPhi
std::vector< float > isoEmPhi
Definition: L1AnalysisL1ExtraDataFormat.h:87
L1Analysis::L1AnalysisL1ExtraDataFormat::met
std::vector< float > met
Definition: L1AnalysisL1ExtraDataFormat.h:138
L1Analysis::L1AnalysisL1ExtraDataFormat::nTauJets
unsigned short nTauJets
Definition: L1AnalysisL1ExtraDataFormat.h:108
l1ExtraTree_cfi.maxL1Extra
maxL1Extra
Definition: l1ExtraTree_cfi.py:14
L1Analysis::L1AnalysisL1ExtraDataFormat::nonIsoEmBx
std::vector< int > nonIsoEmBx
Definition: L1AnalysisL1ExtraDataFormat.h:94
L1Analysis::L1AnalysisL1ExtraDataFormat::et
std::vector< float > et
Definition: L1AnalysisL1ExtraDataFormat.h:137
L1Analysis::L1AnalysisL1ExtraDataFormat::nIsoEm
unsigned short nIsoEm
Definition: L1AnalysisL1ExtraDataFormat.h:84
L1Analysis::L1AnalysisL1ExtraDataFormat::isoTauJetPhi
std::vector< float > isoTauJetPhi
Definition: L1AnalysisL1ExtraDataFormat.h:117