CMS 3D CMS Logo

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

#include <L1AnalysisGCT.h>

Public Member Functions

L1AnalysisGCTDataFormatgetData ()
 
 L1AnalysisGCT ()
 
 L1AnalysisGCT (bool verbose)
 
void Reset ()
 
void SetEm (const edm::Handle< L1GctEmCandCollection > l1IsoEm, const edm::Handle< L1GctEmCandCollection > l1NonIsoEm)
 
void SetES (const edm::Handle< L1GctEtMissCollection > l1EtMiss, const edm::Handle< L1GctHtMissCollection > l1HtMiss, const edm::Handle< L1GctEtHadCollection > l1EtHad, const edm::Handle< L1GctEtTotalCollection > l1EtTotal)
 
void SetHFminbias (const edm::Handle< L1GctHFRingEtSumsCollection > l1HFSums, const edm::Handle< L1GctHFBitCountsCollection > l1HFCounts)
 
void SetJet (const edm::Handle< L1GctJetCandCollection > l1CenJets, const edm::Handle< L1GctJetCandCollection > l1ForJets, const edm::Handle< L1GctJetCandCollection > l1TauJets, const edm::Handle< L1GctJetCandCollection > l1IsoTauJets)
 
 ~L1AnalysisGCT ()
 

Private Attributes

L1AnalysisGCTDataFormat gct_
 
bool verbose_
 

Detailed Description

Definition at line 18 of file L1AnalysisGCT.h.

Constructor & Destructor Documentation

◆ L1AnalysisGCT() [1/2]

L1Analysis::L1AnalysisGCT::L1AnalysisGCT ( )

Definition at line 4 of file L1AnalysisGCT.cc.

4 : verbose_(false) {}

◆ L1AnalysisGCT() [2/2]

L1Analysis::L1AnalysisGCT::L1AnalysisGCT ( bool  verbose)

Definition at line 6 of file L1AnalysisGCT.cc.

6 { verbose_ = verbose; }

References verbose.

◆ ~L1AnalysisGCT()

L1Analysis::L1AnalysisGCT::~L1AnalysisGCT ( )

Definition at line 8 of file L1AnalysisGCT.cc.

8 {}

Member Function Documentation

◆ getData()

L1AnalysisGCTDataFormat* L1Analysis::L1AnalysisGCT::getData ( void  )
inline

Definition at line 41 of file L1AnalysisGCT.h.

41 { return &gct_; }

References gct_.

◆ Reset()

void L1Analysis::L1AnalysisGCT::Reset ( )
inline

Definition at line 39 of file L1AnalysisGCT.h.

39 { gct_.Reset(); }

References gct_, and L1Analysis::L1AnalysisGCTDataFormat::Reset().

◆ SetEm()

void L1Analysis::L1AnalysisGCT::SetEm ( const edm::Handle< L1GctEmCandCollection l1IsoEm,
const edm::Handle< L1GctEmCandCollection l1NonIsoEm 
)

Definition at line 160 of file L1AnalysisGCT.cc.

161  {
162  // Isolated EM
163  if (verbose_) {
164  edm::LogInfo("L1Prompt") << "L1TGCT: number of iso em cands: " << l1IsoEm->size() << std::endl;
165  }
166 
167  gct_.IsoEmSize = l1IsoEm->size();
168  for (L1GctEmCandCollection::const_iterator ie = l1IsoEm->begin(); ie != l1IsoEm->end(); ie++) {
169  gct_.IsoEmEta.push_back(ie->regionId().ieta());
170  gct_.IsoEmPhi.push_back(ie->regionId().iphi());
171  gct_.IsoEmRnk.push_back(ie->rank());
172  gct_.IsoEmBx.push_back(ie->bx());
173  }
174 
175  // Non-isolated EM
176  if (verbose_) {
177  edm::LogInfo("L1Prompt") << "L1TGCT: number of non-iso em cands: " << l1NonIsoEm->size() << std::endl;
178  }
179  gct_.NonIsoEmSize = l1NonIsoEm->size();
180 
181  for (L1GctEmCandCollection::const_iterator ne = l1NonIsoEm->begin(); ne != l1NonIsoEm->end(); ne++) {
182  gct_.NonIsoEmEta.push_back(ne->regionId().ieta());
183  gct_.NonIsoEmPhi.push_back(ne->regionId().iphi());
184  gct_.NonIsoEmRnk.push_back(ne->rank());
185  gct_.NonIsoEmBx.push_back(ne->bx());
186  }
187 }

◆ SetES()

void L1Analysis::L1AnalysisGCT::SetES ( const edm::Handle< L1GctEtMissCollection l1EtMiss,
const edm::Handle< L1GctHtMissCollection l1HtMiss,
const edm::Handle< L1GctEtHadCollection l1EtHad,
const edm::Handle< L1GctEtTotalCollection l1EtTotal 
)

Definition at line 84 of file L1AnalysisGCT.cc.

87  {
88  // Energy sums
89  for (L1GctEtMissCollection::const_iterator etm = l1EtMiss->begin(); etm != l1EtMiss->end(); ++etm) {
90  gct_.EtMiss.push_back(etm->et());
91  gct_.EtMissPhi.push_back(etm->phi());
92  gct_.EtMissBX.push_back(etm->bx());
93  gct_.EtMissSize++;
94 
95  if (verbose_) {
96  edm::LogInfo("L1Prompt") << "L1NtupleProducer: Et Miss " << etm->et() << ", " << etm->phi() << ", " << etm->bx()
97  << std::endl;
98  }
99  }
100 
101  for (L1GctHtMissCollection::const_iterator htm = l1HtMiss->begin(); htm != l1HtMiss->end(); ++htm) {
102  gct_.HtMiss.push_back(htm->et());
103  gct_.HtMissPhi.push_back(htm->phi());
104  gct_.HtMissBX.push_back(htm->bx());
105  gct_.HtMissSize++;
106 
107  if (verbose_) {
108  edm::LogInfo("L1Prompt") << "L1NtupleProducer: Ht Miss " << htm->et() << ", " << htm->phi() << ", " << htm->bx()
109  << std::endl;
110  }
111  }
112 
113  for (L1GctEtHadCollection::const_iterator ht = l1EtHad->begin(); ht != l1EtHad->end(); ++ht) {
114  gct_.EtHad.push_back(ht->et());
115  gct_.EtHadBX.push_back(ht->bx());
116  gct_.EtHadSize++;
117 
118  if (verbose_) {
119  edm::LogInfo("L1Prompt") << "L1NtupleProducer: Ht Total " << ht->et() << ", " << ht->bx() << std::endl;
120  }
121  }
122 
123  for (L1GctEtTotalCollection::const_iterator ett = l1EtTotal->begin(); ett != l1EtTotal->end(); ++ett) {
124  gct_.EtTot.push_back(ett->et());
125  gct_.EtTotBX.push_back(ett->bx());
126  gct_.EtTotSize++;
127 
128  if (verbose_) {
129  edm::LogInfo("L1Prompt") << "L1NtupleProducer: Et Total " << ett->et() << ", " << ett->bx() << std::endl;
130  }
131  }
132 }

◆ SetHFminbias()

void L1Analysis::L1AnalysisGCT::SetHFminbias ( const edm::Handle< L1GctHFRingEtSumsCollection l1HFSums,
const edm::Handle< L1GctHFBitCountsCollection l1HFCounts 
)

Definition at line 134 of file L1AnalysisGCT.cc.

135  {
136  //Fill HF Ring Histograms
137  gct_.HFRingEtSumSize = l1HFSums->size();
138  int ies = 0;
139  for (L1GctHFRingEtSumsCollection::const_iterator hfs = l1HFSums->begin(); hfs != l1HFSums->end(); hfs++) {
140  gct_.HFRingEtSumEta.push_back(hfs->etSum(ies));
141  if (verbose_) {
142  edm::LogInfo("L1Prompt") << "L1NtupleProducer: HF Sums " << l1HFSums->size() << ", " << hfs->etSum(ies)
143  << std::endl;
144  }
145  ies++;
146  }
147 
148  int ibc = 0;
149  gct_.HFBitCountsSize = l1HFCounts->size();
150  for (L1GctHFBitCountsCollection::const_iterator hfc = l1HFCounts->begin(); hfc != l1HFCounts->end(); hfc++) {
151  gct_.HFBitCountsEta.push_back(hfc->bitCount(ibc));
152  if (verbose_) {
153  edm::LogInfo("L1Prompt") << "L1NtupleProducer: HF Counts " << l1HFCounts->size() << ", " << hfc->bitCount(ibc)
154  << std::endl;
155  }
156  ibc++;
157  }
158 }

◆ SetJet()

void L1Analysis::L1AnalysisGCT::SetJet ( const edm::Handle< L1GctJetCandCollection l1CenJets,
const edm::Handle< L1GctJetCandCollection l1ForJets,
const edm::Handle< L1GctJetCandCollection l1TauJets,
const edm::Handle< L1GctJetCandCollection l1IsoTauJets 
)

Definition at line 9 of file L1AnalysisGCT.cc.

12  {
13  // std::cout << "L1IsoTauJets valid: " << l1IsoTauJets.isValid() <<std::endl;
14  // edm::LogAbsolute("L1") << "CCLA: " << l1IsoTauJets.isValid() <<std::endl;
15  // Central jets
16  if (verbose_) {
17  edm::LogInfo("L1Prompt") << "L1NtupleProducer: number of central jets = " << l1CenJets->size() << std::endl;
18  }
19  gct_.CJetSize = l1CenJets->size(); //1
20  for (L1GctJetCandCollection::const_iterator cj = l1CenJets->begin(); cj != l1CenJets->end(); cj++) {
21  gct_.CJetEta.push_back(cj->regionId().ieta()); //2
22  gct_.CJetPhi.push_back(cj->regionId().iphi()); //3
23  gct_.CJetRnk.push_back(cj->rank()); //4
24  gct_.CJetBx.push_back(cj->bx()); //4
25  if (verbose_) {
26  edm::LogInfo("L1Prompt") << "L1NtupleProducer: Central jet " << cj->regionId().iphi() << ", "
27  << cj->regionId().ieta() << ", " << cj->rank() << std::endl;
28  }
29  }
30 
31  // Forward jets
32  if (verbose_) {
33  edm::LogInfo("L1Prompt") << "L1NtupleProducer: number of forward jets = " << l1ForJets->size() << std::endl;
34  }
35  gct_.FJetSize = l1ForJets->size(); //5
36  for (L1GctJetCandCollection::const_iterator fj = l1ForJets->begin(); fj != l1ForJets->end(); fj++) {
37  gct_.FJetEta.push_back(fj->regionId().ieta()); //6
38  gct_.FJetPhi.push_back(fj->regionId().iphi()); //7
39  gct_.FJetRnk.push_back(fj->rank()); //8
40  gct_.FJetBx.push_back(fj->bx()); //8
41  if (verbose_) {
42  edm::LogInfo("L1Prompt") << "L1NtupleProducer: Forward jet " << fj->regionId().iphi() << ", "
43  << fj->regionId().ieta() << ", " << fj->rank() << std::endl;
44  }
45  }
46 
47  // Tau jets
48  if (verbose_) {
49  edm::LogInfo("L1Prompt") << "L1NtupleProducer: number of tau jets = " << l1TauJets->size() << std::endl;
50  }
51  gct_.TJetSize = l1TauJets->size(); //9
52  for (L1GctJetCandCollection::const_iterator tj = l1TauJets->begin(); tj != l1TauJets->end(); tj++) {
53  //if ( tj->rank() == 0 ) continue;
54  gct_.TJetEta.push_back(tj->regionId().ieta()); //10
55  gct_.TJetPhi.push_back(tj->regionId().iphi()); //11
56  gct_.TJetRnk.push_back(tj->rank()); //12
57  gct_.TJetBx.push_back(tj->bx()); //
58  if (verbose_) {
59  edm::LogInfo("L1Prompt") << "L1NtupleProducer: Tau jet " << tj->regionId().iphi() << ", " << tj->regionId().ieta()
60  << ", " << tj->rank() << std::endl;
61  }
62  }
63 
64  // Isolated Tau Jets
65  if (l1IsoTauJets.isValid()) {
66  if (verbose_) {
67  edm::LogInfo("L1Prompt") << "L1NtupleProducer: number of isoTau jets = " << l1IsoTauJets->size() << std::endl;
68  }
69  gct_.IsoTJetSize = l1IsoTauJets->size(); //9
70  for (L1GctJetCandCollection::const_iterator tj = l1IsoTauJets->begin(); tj != l1IsoTauJets->end(); tj++) {
71  //if ( tj->rank() == 0 ) continue;
72  gct_.IsoTJetEta.push_back(tj->regionId().ieta()); //10
73  gct_.IsoTJetPhi.push_back(tj->regionId().iphi()); //11
74  gct_.IsoTJetRnk.push_back(tj->rank()); //12
75  gct_.IsoTJetBx.push_back(tj->bx()); //
76  if (verbose_) {
77  edm::LogInfo("L1Prompt") << "L1NtupleProducer: IsoTau jet " << tj->regionId().iphi() << ", "
78  << tj->regionId().ieta() << ", " << tj->rank() << std::endl;
79  }
80  }
81  }
82 }

References edm::HandleBase::isValid().

Member Data Documentation

◆ gct_

L1AnalysisGCTDataFormat L1Analysis::L1AnalysisGCT::gct_
private

Definition at line 45 of file L1AnalysisGCT.h.

Referenced by getData(), and Reset().

◆ verbose_

bool L1Analysis::L1AnalysisGCT::verbose_
private

Definition at line 44 of file L1AnalysisGCT.h.

L1Analysis::L1AnalysisGCTDataFormat::TJetEta
std::vector< float > TJetEta
Definition: L1AnalysisGCTDataFormat.h:102
L1Analysis::L1AnalysisGCTDataFormat::HFBitCountsEta
std::vector< float > HFBitCountsEta
Definition: L1AnalysisGCTDataFormat.h:135
L1Analysis::L1AnalysisGCTDataFormat::TJetSize
int TJetSize
Definition: L1AnalysisGCTDataFormat.h:101
L1Analysis::L1AnalysisGCTDataFormat::EtMissPhi
std::vector< float > EtMissPhi
Definition: L1AnalysisGCTDataFormat.h:115
L1Analysis::L1AnalysisGCTDataFormat::IsoEmBx
std::vector< int > IsoEmBx
Definition: L1AnalysisGCTDataFormat.h:81
L1Analysis::L1AnalysisGCTDataFormat::NonIsoEmSize
int NonIsoEmSize
Definition: L1AnalysisGCTDataFormat.h:83
edm::LogInfo
Definition: MessageLogger.h:254
L1Analysis::L1AnalysisGCTDataFormat::IsoEmEta
std::vector< float > IsoEmEta
Definition: L1AnalysisGCTDataFormat.h:78
L1Analysis::L1AnalysisGCTDataFormat::HtMissSize
int HtMissSize
Definition: L1AnalysisGCTDataFormat.h:118
L1Analysis::L1AnalysisGCTDataFormat::TJetRnk
std::vector< float > TJetRnk
Definition: L1AnalysisGCTDataFormat.h:104
L1Analysis::L1AnalysisGCTDataFormat::HFBitCountsSize
float HFBitCountsSize
Definition: L1AnalysisGCTDataFormat.h:134
L1Analysis::L1AnalysisGCTDataFormat::EtMissBX
std::vector< float > EtMissBX
Definition: L1AnalysisGCTDataFormat.h:116
L1Analysis::L1AnalysisGCTDataFormat::IsoTJetBx
std::vector< int > IsoTJetBx
Definition: L1AnalysisGCTDataFormat.h:111
L1Analysis::L1AnalysisGCTDataFormat::FJetEta
std::vector< float > FJetEta
Definition: L1AnalysisGCTDataFormat.h:96
L1Analysis::L1AnalysisGCTDataFormat::HtMissPhi
std::vector< float > HtMissPhi
Definition: L1AnalysisGCTDataFormat.h:120
L1Analysis::L1AnalysisGCTDataFormat::HFRingEtSumSize
int HFRingEtSumSize
Definition: L1AnalysisGCTDataFormat.h:131
L1Analysis::L1AnalysisGCT::gct_
L1AnalysisGCTDataFormat gct_
Definition: L1AnalysisGCT.h:45
L1Analysis::L1AnalysisGCTDataFormat::EtHad
std::vector< float > EtHad
Definition: L1AnalysisGCTDataFormat.h:124
L1Analysis::L1AnalysisGCTDataFormat::EtTotSize
int EtTotSize
Definition: L1AnalysisGCTDataFormat.h:127
L1Analysis::L1AnalysisGCTDataFormat::HtMiss
std::vector< float > HtMiss
Definition: L1AnalysisGCTDataFormat.h:119
verbose
static constexpr int verbose
Definition: HLTExoticaSubAnalysis.cc:25
L1Analysis::L1AnalysisGCTDataFormat::EtTot
std::vector< float > EtTot
Definition: L1AnalysisGCTDataFormat.h:128
L1Analysis::L1AnalysisGCTDataFormat::FJetBx
std::vector< int > FJetBx
Definition: L1AnalysisGCTDataFormat.h:99
L1Analysis::L1AnalysisGCTDataFormat::CJetPhi
std::vector< float > CJetPhi
Definition: L1AnalysisGCTDataFormat.h:91
L1Analysis::L1AnalysisGCTDataFormat::CJetBx
std::vector< int > CJetBx
Definition: L1AnalysisGCTDataFormat.h:93
L1Analysis::L1AnalysisGCTDataFormat::EtMissSize
int EtMissSize
Definition: L1AnalysisGCTDataFormat.h:113
L1Analysis::L1AnalysisGCTDataFormat::NonIsoEmEta
std::vector< float > NonIsoEmEta
Definition: L1AnalysisGCTDataFormat.h:84
L1Analysis::L1AnalysisGCTDataFormat::HFRingEtSumEta
std::vector< float > HFRingEtSumEta
Definition: L1AnalysisGCTDataFormat.h:132
L1Analysis::L1AnalysisGCTDataFormat::IsoEmRnk
std::vector< float > IsoEmRnk
Definition: L1AnalysisGCTDataFormat.h:80
L1Analysis::L1AnalysisGCTDataFormat::CJetEta
std::vector< float > CJetEta
Definition: L1AnalysisGCTDataFormat.h:90
L1Analysis::L1AnalysisGCTDataFormat::EtHadSize
int EtHadSize
Definition: L1AnalysisGCTDataFormat.h:123
L1Analysis::L1AnalysisGCTDataFormat::TJetBx
std::vector< int > TJetBx
Definition: L1AnalysisGCTDataFormat.h:105
L1Analysis::L1AnalysisGCT::verbose_
bool verbose_
Definition: L1AnalysisGCT.h:44
L1Analysis::L1AnalysisGCTDataFormat::CJetSize
int CJetSize
Definition: L1AnalysisGCTDataFormat.h:89
L1Analysis::L1AnalysisGCTDataFormat::IsoTJetEta
std::vector< float > IsoTJetEta
Definition: L1AnalysisGCTDataFormat.h:108
L1Analysis::L1AnalysisGCTDataFormat::HtMissBX
std::vector< float > HtMissBX
Definition: L1AnalysisGCTDataFormat.h:121
L1Analysis::L1AnalysisGCTDataFormat::EtHadBX
std::vector< float > EtHadBX
Definition: L1AnalysisGCTDataFormat.h:125
L1Analysis::L1AnalysisGCTDataFormat::IsoEmPhi
std::vector< float > IsoEmPhi
Definition: L1AnalysisGCTDataFormat.h:79
L1Analysis::L1AnalysisGCTDataFormat::IsoTJetPhi
std::vector< float > IsoTJetPhi
Definition: L1AnalysisGCTDataFormat.h:109
L1Analysis::L1AnalysisGCTDataFormat::NonIsoEmRnk
std::vector< float > NonIsoEmRnk
Definition: L1AnalysisGCTDataFormat.h:86
L1Analysis::L1AnalysisGCTDataFormat::FJetRnk
std::vector< float > FJetRnk
Definition: L1AnalysisGCTDataFormat.h:98
L1Analysis::L1AnalysisGCTDataFormat::IsoEmSize
int IsoEmSize
Definition: L1AnalysisGCTDataFormat.h:77
L1Analysis::L1AnalysisGCTDataFormat::Reset
void Reset()
Definition: L1AnalysisGCTDataFormat.h:18
L1Analysis::L1AnalysisGCTDataFormat::FJetPhi
std::vector< float > FJetPhi
Definition: L1AnalysisGCTDataFormat.h:97
L1Analysis::L1AnalysisGCTDataFormat::NonIsoEmBx
std::vector< int > NonIsoEmBx
Definition: L1AnalysisGCTDataFormat.h:87
L1Analysis::L1AnalysisGCTDataFormat::TJetPhi
std::vector< float > TJetPhi
Definition: L1AnalysisGCTDataFormat.h:103
L1Analysis::L1AnalysisGCTDataFormat::IsoTJetSize
int IsoTJetSize
Definition: L1AnalysisGCTDataFormat.h:107
edm::HandleBase::isValid
bool isValid() const
Definition: HandleBase.h:70
L1Analysis::L1AnalysisGCTDataFormat::EtMiss
std::vector< float > EtMiss
Definition: L1AnalysisGCTDataFormat.h:114
L1Analysis::L1AnalysisGCTDataFormat::FJetSize
int FJetSize
Definition: L1AnalysisGCTDataFormat.h:95
L1Analysis::L1AnalysisGCTDataFormat::IsoTJetRnk
std::vector< float > IsoTJetRnk
Definition: L1AnalysisGCTDataFormat.h:110
L1Analysis::L1AnalysisGCTDataFormat::CJetRnk
std::vector< float > CJetRnk
Definition: L1AnalysisGCTDataFormat.h:92
L1Analysis::L1AnalysisGCTDataFormat::NonIsoEmPhi
std::vector< float > NonIsoEmPhi
Definition: L1AnalysisGCTDataFormat.h:85
L1Analysis::L1AnalysisGCTDataFormat::EtTotBX
std::vector< float > EtTotBX
Definition: L1AnalysisGCTDataFormat.h:129