CMS 3D CMS Logo

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

#include <L1AnalysisRCT.h>

Public Member Functions

L1AnalysisRCTDataFormatgetData ()
 
 L1AnalysisRCT ()
 
 L1AnalysisRCT (int maxRCTREG)
 
void Reset ()
 
void SetEmRCT (const edm::Handle< L1CaloEmCollection > em)
 
void SetHdRCT (const edm::Handle< L1CaloRegionCollection > rgn)
 
 ~L1AnalysisRCT ()
 

Private Attributes

L1AnalysisRCTDataFormat rct_
 

Detailed Description

Definition at line 16 of file L1AnalysisRCT.h.

Constructor & Destructor Documentation

◆ L1AnalysisRCT() [1/2]

L1Analysis::L1AnalysisRCT::L1AnalysisRCT ( )

Definition at line 5 of file L1AnalysisRCT.cc.

5 {}

◆ L1AnalysisRCT() [2/2]

L1Analysis::L1AnalysisRCT::L1AnalysisRCT ( int  maxRCTREG)

Definition at line 7 of file L1AnalysisRCT.cc.

7  {
9  rct_.Reset();
10 }

References l1Tree_cfi::maxRCTREG.

◆ ~L1AnalysisRCT()

L1Analysis::L1AnalysisRCT::~L1AnalysisRCT ( )

Definition at line 12 of file L1AnalysisRCT.cc.

12 {}

Member Function Documentation

◆ getData()

L1AnalysisRCTDataFormat* L1Analysis::L1AnalysisRCT::getData ( void  )
inline

Definition at line 25 of file L1AnalysisRCT.h.

25 { return &rct_; }

References rct_.

◆ Reset()

void L1Analysis::L1AnalysisRCT::Reset ( )
inline

Definition at line 24 of file L1AnalysisRCT.h.

24 { rct_.Reset(); }

References rct_, and L1Analysis::L1AnalysisRCTDataFormat::Reset().

◆ SetEmRCT()

void L1Analysis::L1AnalysisRCT::SetEmRCT ( const edm::Handle< L1CaloEmCollection em)

Definition at line 34 of file L1AnalysisRCT.cc.

34  {
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 }

◆ SetHdRCT()

void L1Analysis::L1AnalysisRCT::SetHdRCT ( const edm::Handle< L1CaloRegionCollection rgn)

Definition at line 14 of file L1AnalysisRCT.cc.

14  {
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 }

Member Data Documentation

◆ rct_

L1AnalysisRCTDataFormat L1Analysis::L1AnalysisRCT::rct_
private

Definition at line 28 of file L1AnalysisRCT.h.

Referenced by getData(), and Reset().

l1Tree_cfi.maxRCTREG
maxRCTREG
Definition: l1Tree_cfi.py:51
L1Analysis::L1AnalysisRCTDataFormat::RegBx
std::vector< int > RegBx
Definition: L1AnalysisRCTDataFormat.h:78
L1Analysis::L1AnalysisRCTDataFormat::EmSize
int EmSize
Definition: L1AnalysisRCTDataFormat.h:83
L1Analysis::L1AnalysisRCTDataFormat::RegVeto
std::vector< int > RegVeto
Definition: L1AnalysisRCTDataFormat.h:77
L1Analysis::L1AnalysisRCTDataFormat::EmPhi
std::vector< float > EmPhi
Definition: L1AnalysisRCTDataFormat.h:87
L1Analysis::L1AnalysisRCTDataFormat::IsIsoEm
std::vector< int > IsIsoEm
Definition: L1AnalysisRCTDataFormat.h:85
L1Analysis::L1AnalysisRCTDataFormat::EmRnk
std::vector< float > EmRnk
Definition: L1AnalysisRCTDataFormat.h:88
L1Analysis::L1AnalysisRCTDataFormat::RegEta
std::vector< float > RegEta
Definition: L1AnalysisRCTDataFormat.h:72
L1Analysis::L1AnalysisRCTDataFormat::RegSize
int RegSize
Definition: L1AnalysisRCTDataFormat.h:70
L1Analysis::L1AnalysisRCTDataFormat::RegOverFlow
std::vector< int > RegOverFlow
Definition: L1AnalysisRCTDataFormat.h:79
L1Analysis::L1AnalysisRCT::rct_
L1AnalysisRCTDataFormat rct_
Definition: L1AnalysisRCT.h:28
L1Analysis::L1AnalysisRCTDataFormat::maxRCTREG_
int maxRCTREG_
Definition: L1AnalysisRCTDataFormat.h:68
L1Analysis::L1AnalysisRCTDataFormat::RegRnk
std::vector< float > RegRnk
Definition: L1AnalysisRCTDataFormat.h:76
L1Analysis::L1AnalysisRCTDataFormat::RegMip
std::vector< int > RegMip
Definition: L1AnalysisRCTDataFormat.h:80
L1Analysis::L1AnalysisRCTDataFormat::Reset
void Reset()
Definition: L1AnalysisRCTDataFormat.h:19
L1Analysis::L1AnalysisRCTDataFormat::RegGEta
std::vector< float > RegGEta
Definition: L1AnalysisRCTDataFormat.h:74
L1Analysis::L1AnalysisRCTDataFormat::EmBx
std::vector< int > EmBx
Definition: L1AnalysisRCTDataFormat.h:89
L1Analysis::L1AnalysisRCTDataFormat::RegFGrain
std::vector< int > RegFGrain
Definition: L1AnalysisRCTDataFormat.h:81
L1Analysis::L1AnalysisRCTDataFormat::EmEta
std::vector< float > EmEta
Definition: L1AnalysisRCTDataFormat.h:86
L1Analysis::L1AnalysisRCTDataFormat::RegPhi
std::vector< float > RegPhi
Definition: L1AnalysisRCTDataFormat.h:73
L1Analysis::L1AnalysisRCTDataFormat::RegGPhi
std::vector< float > RegGPhi
Definition: L1AnalysisRCTDataFormat.h:75