test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 18 of file L1AnalysisRCT.h.

Constructor & Destructor Documentation

L1Analysis::L1AnalysisRCT::L1AnalysisRCT ( )

Definition at line 6 of file L1AnalysisRCT.cc.

7 {
8 }
L1Analysis::L1AnalysisRCT::L1AnalysisRCT ( int  maxRCTREG)

Definition at line 10 of file L1AnalysisRCT.cc.

L1Analysis::L1AnalysisRCT::~L1AnalysisRCT ( )

Definition at line 16 of file L1AnalysisRCT.cc.

17 {
18 
19 }

Member Function Documentation

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

Definition at line 28 of file L1AnalysisRCT.h.

References rct_.

28 {return &rct_;}
L1AnalysisRCTDataFormat rct_
Definition: L1AnalysisRCT.h:31
void L1Analysis::L1AnalysisRCT::Reset ( void  )
inline
void L1Analysis::L1AnalysisRCT::SetEmRCT ( const edm::Handle< L1CaloEmCollection em)

Definition at line 46 of file L1AnalysisRCT.cc.

47 {
48 
49  // Isolated and non-isolated EM
50  rct_.EmSize = em->size();
51  for (L1CaloEmCollection::const_iterator emit = em->begin(); emit != em->end(); emit++) {
52  rct_.IsIsoEm.push_back( emit->isolated() );
53  rct_.EmEta.push_back( emit->regionId().ieta() );
54  rct_.EmPhi.push_back( emit->regionId().iphi() );
55  rct_.EmRnk.push_back( emit->rank() );
56  rct_.EmBx.push_back( emit->bx() );
57  }
58 
59 }
L1AnalysisRCTDataFormat rct_
Definition: L1AnalysisRCT.h:31
void L1Analysis::L1AnalysisRCT::SetHdRCT ( const edm::Handle< L1CaloRegionCollection rgn)

Definition at line 21 of file L1AnalysisRCT.cc.

22 {
23 
24  // Regions
25  rct_.RegSize=rgn->size();
26  for (L1CaloRegionCollection::const_iterator ireg = rgn->begin();
27  ireg != rgn->end(); ireg++) {
28 
29  // local eta phi
30  rct_.RegEta.push_back( ireg->rctEta() );
31  rct_.RegPhi.push_back( ireg->rctPhi() );
32  // global eta phi
33  rct_.RegGEta.push_back( ireg->gctEta() );
34  rct_.RegGPhi.push_back( ireg->gctPhi() );
35 
36  rct_.RegRnk.push_back( ireg->et() );
37  rct_.RegVeto.push_back( ireg->tauVeto() );
38  rct_.RegBx.push_back( ireg->bx() );
39  rct_.RegOverFlow.push_back( ireg->overFlow() );
40  rct_.RegMip.push_back( ireg->mip() );
41  rct_.RegFGrain.push_back( ireg->fineGrain() );
42  }
43 
44 }
L1AnalysisRCTDataFormat rct_
Definition: L1AnalysisRCT.h:31

Member Data Documentation

L1AnalysisRCTDataFormat L1Analysis::L1AnalysisRCT::rct_
private

Definition at line 31 of file L1AnalysisRCT.h.

Referenced by getData(), and Reset().