CMS 3D CMS Logo

L1AnalysisRCT.cc
Go to the documentation of this file.
2 
3 // need of maxRCTREG ??
4 
6 
9  rct_.Reset();
10 }
11 
13 
15  // Regions
16  rct_.RegSize = rgn->size();
17  for (L1CaloRegionCollection::const_iterator ireg = rgn->begin(); ireg != rgn->end(); ireg++) {
18  // local eta phi
19  rct_.RegEta.push_back(ireg->rctEta());
20  rct_.RegPhi.push_back(ireg->rctPhi());
21  // global eta phi
22  rct_.RegGEta.push_back(ireg->gctEta());
23  rct_.RegGPhi.push_back(ireg->gctPhi());
24 
25  rct_.RegRnk.push_back(ireg->et());
26  rct_.RegVeto.push_back(ireg->tauVeto());
27  rct_.RegBx.push_back(ireg->bx());
28  rct_.RegOverFlow.push_back(ireg->overFlow());
29  rct_.RegMip.push_back(ireg->mip());
30  rct_.RegFGrain.push_back(ireg->fineGrain());
31  }
32 }
33 
35  // Isolated and non-isolated EM
36  rct_.EmSize = em->size();
37  for (L1CaloEmCollection::const_iterator emit = em->begin(); emit != em->end(); emit++) {
38  rct_.IsIsoEm.push_back(emit->isolated());
39  rct_.EmEta.push_back(emit->regionId().ieta());
40  rct_.EmPhi.push_back(emit->regionId().iphi());
41  rct_.EmRnk.push_back(emit->rank());
42  rct_.EmBx.push_back(emit->bx());
43  }
44 }
void SetEmRCT(const edm::Handle< L1CaloEmCollection > em)
void SetHdRCT(const edm::Handle< L1CaloRegionCollection > rgn)
L1AnalysisRCTDataFormat rct_
Definition: L1AnalysisRCT.h:28