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 Member Functions | Private Attributes
L1RCT Class Reference

#include <L1RCT.h>

Public Member Functions

void digiInput (const EcalTrigPrimDigiCollection &ecalCollection, const HcalTrigPrimDigiCollection &hcalCollection)
 
unsigned short ecalCompressedET (int crate, int card, int tower)
 
unsigned short ecalFineGrainBit (int crate, int card, int tower)
 
void fileInput (const char *filename)
 
L1CaloEmCollection getIsolatedEGObjects (unsigned crate)
 
std::vector< unsigned short > getJetRegions (unsigned crate)
 
L1CaloEmCollection getNonisolatedEGObjects (unsigned crate)
 
std::vector< L1CaloRegiongetRegions (unsigned crate)
 
unsigned short hcalCompressedET (int crate, int card, int tower)
 
unsigned short hcalFineGrainBit (int crate, int card, int tower)
 
unsigned short hfCompressedET (int crate, int tower)
 
unsigned short hfFineGrainBit (int crate, int tower)
 
void input ()
 
void input (const std::vector< std::vector< std::vector< unsigned short > > > &barrelIn, const std::vector< std::vector< unsigned short > > &hfIn)
 
 L1RCT (const L1RCTLookupTables *rctLookupTables)
 
void print ()
 
void printCrate (int i)
 
void printEIC (int i, int j)
 
void printEICEdges (int i, int j)
 
void printJSC (int i)
 
void printJSC ()
 
void printRC (int i, int j)
 
void processEvent ()
 
void randomInput ()
 

Private Member Functions

void configureCards ()
 
 L1RCT ()
 
void makeCrates ()
 
void shareNeighbors ()
 

Private Attributes

std::vector< std::vector
< std::vector< unsigned short > > > 
barrel
 
std::vector< L1RCTCratecrates
 
L1RCTRegion empty
 
std::vector< std::vector
< unsigned short > > 
hf
 
L1RCTNeighborMap neighborMap
 
const L1RCTLookupTablesrctLookupTables_
 

Detailed Description

Definition at line 20 of file L1RCT.h.

Constructor & Destructor Documentation

L1RCT::L1RCT ( const L1RCTLookupTables rctLookupTables)

Definition at line 56 of file L1RCT.cc.

L1RCT::L1RCT ( )
private

Member Function Documentation

void L1RCT::configureCards ( )
private
void L1RCT::digiInput ( const EcalTrigPrimDigiCollection ecalCollection,
const HcalTrigPrimDigiCollection hcalCollection 
)

Definition at line 116 of file L1RCT.cc.

unsigned short L1RCT::ecalCompressedET ( int  crate,
int  card,
int  tower 
)
inline

Definition at line 78 of file L1RCT.h.

References barrel.

79  {return barrel.at(crate).at(card).at(tower) / 2;}
std::vector< std::vector< std::vector< unsigned short > > > barrel
Definition: L1RCT.h:128
unsigned short L1RCT::ecalFineGrainBit ( int  crate,
int  card,
int  tower 
)
inline

Definition at line 80 of file L1RCT.h.

References barrel.

81  {return barrel.at(crate).at(card).at(tower) & 1;}
std::vector< std::vector< std::vector< unsigned short > > > barrel
Definition: L1RCT.h:128
void L1RCT::fileInput ( const char *  filename)

Definition at line 85 of file L1RCT.cc.

L1CaloEmCollection L1RCT::getIsolatedEGObjects ( unsigned  crate)

Definition at line 335 of file L1RCT.cc.

std::vector<unsigned short> L1RCT::getJetRegions ( unsigned  crate)
inline

Definition at line 72 of file L1RCT.h.

References crates.

72  {
73  return crates.at(crate).getJetRegions();
74  }
std::vector< L1RCTCrate > crates
Definition: L1RCT.h:119
L1CaloEmCollection L1RCT::getNonisolatedEGObjects ( unsigned  crate)

Definition at line 352 of file L1RCT.cc.

vector< L1CaloRegion > L1RCT::getRegions ( unsigned  crate)

Definition at line 366 of file L1RCT.cc.

unsigned short L1RCT::hcalCompressedET ( int  crate,
int  card,
int  tower 
)
inline

Definition at line 82 of file L1RCT.h.

References barrel.

83  {return barrel.at(crate).at(card).at(tower+32) / 2;}
std::vector< std::vector< std::vector< unsigned short > > > barrel
Definition: L1RCT.h:128
unsigned short L1RCT::hcalFineGrainBit ( int  crate,
int  card,
int  tower 
)
inline

Definition at line 84 of file L1RCT.h.

References barrel.

85  {return barrel.at(crate).at(card).at(tower+32) & 1;}
std::vector< std::vector< std::vector< unsigned short > > > barrel
Definition: L1RCT.h:128
unsigned short L1RCT::hfCompressedET ( int  crate,
int  tower 
)
inline

Definition at line 86 of file L1RCT.h.

References hf.

87  {return hf.at(crate).at(tower) / 2;}
std::vector< std::vector< unsigned short > > hf
Definition: L1RCT.h:129
unsigned short L1RCT::hfFineGrainBit ( int  crate,
int  tower 
)
inline

Definition at line 88 of file L1RCT.h.

References hf.

89  {return hf.at(crate).at(tower) & 1;}
std::vector< std::vector< unsigned short > > hf
Definition: L1RCT.h:129
void L1RCT::input ( )

Definition at line 66 of file L1RCT.cc.

void L1RCT::input ( const std::vector< std::vector< std::vector< unsigned short > > > &  barrelIn,
const std::vector< std::vector< unsigned short > > &  hfIn 
)

Definition at line 73 of file L1RCT.cc.

void L1RCT::makeCrates ( )
private

Definition at line 48 of file L1RCT.cc.

void L1RCT::print ( void  )

Definition at line 326 of file L1RCT.cc.

void L1RCT::printCrate ( int  i)
inline

Definition at line 46 of file L1RCT.h.

References crates.

46  {
47  crates.at(i).print();
48  }
int i
Definition: DBlmapReader.cc:9
std::vector< L1RCTCrate > crates
Definition: L1RCT.h:119
void L1RCT::printEIC ( int  i,
int  j 
)
inline

Definition at line 61 of file L1RCT.h.

References crates.

61  {
62  crates.at(i).printEIC(j);
63  }
int i
Definition: DBlmapReader.cc:9
std::vector< L1RCTCrate > crates
Definition: L1RCT.h:119
int j
Definition: DBlmapReader.cc:9
void L1RCT::printEICEdges ( int  i,
int  j 
)
inline

Definition at line 64 of file L1RCT.h.

References crates.

64  {
65  crates.at(i).printEICEdges(j);
66  }
int i
Definition: DBlmapReader.cc:9
std::vector< L1RCTCrate > crates
Definition: L1RCT.h:119
int j
Definition: DBlmapReader.cc:9
void L1RCT::printJSC ( int  i)
inline

Definition at line 49 of file L1RCT.h.

References crates.

49  {
50  crates.at(i).printJSC();
51  }
int i
Definition: DBlmapReader.cc:9
std::vector< L1RCTCrate > crates
Definition: L1RCT.h:119
void L1RCT::printJSC ( )
inline

Definition at line 52 of file L1RCT.h.

References gather_cfg::cout, crates, and i.

52  {
53  for(int i=0;i<18;i++){
54  std::cout << "JSC for Crate " << i << std::endl;
55  crates.at(i).printJSC();
56  }
57  }
int i
Definition: DBlmapReader.cc:9
std::vector< L1RCTCrate > crates
Definition: L1RCT.h:119
tuple cout
Definition: gather_cfg.py:145
void L1RCT::printRC ( int  i,
int  j 
)
inline

Definition at line 58 of file L1RCT.h.

References crates.

58  {
59  crates.at(i).printRC(j);
60  }
int i
Definition: DBlmapReader.cc:9
std::vector< L1RCTCrate > crates
Definition: L1RCT.h:119
int j
Definition: DBlmapReader.cc:9
void L1RCT::processEvent ( )

Definition at line 36 of file L1RCT.cc.

void L1RCT::randomInput ( )

Definition at line 220 of file L1RCT.cc.

void L1RCT::shareNeighbors ( )
private

Definition at line 243 of file L1RCT.cc.

Member Data Documentation

std::vector<std::vector<std::vector<unsigned short> > > L1RCT::barrel
private

Definition at line 128 of file L1RCT.h.

Referenced by ecalCompressedET(), ecalFineGrainBit(), hcalCompressedET(), and hcalFineGrainBit().

std::vector<L1RCTCrate> L1RCT::crates
private

Definition at line 119 of file L1RCT.h.

Referenced by getJetRegions(), printCrate(), printEIC(), printEICEdges(), printJSC(), and printRC().

L1RCTRegion L1RCT::empty
private

Definition at line 104 of file L1RCT.h.

std::vector<std::vector<unsigned short> > L1RCT::hf
private

Definition at line 129 of file L1RCT.h.

Referenced by hfCompressedET(), and hfFineGrainBit().

L1RCTNeighborMap L1RCT::neighborMap
private

Definition at line 111 of file L1RCT.h.

const L1RCTLookupTables* L1RCT::rctLookupTables_
private

Definition at line 95 of file L1RCT.h.