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
L1RCTCrate Class Reference

#include <L1RCTCrate.h>

Public Member Functions

int crateNumber ()
 
void fillElectronIsolationCards ()
 
void fillJetSummaryCard ()
 
std::vector< unsigned short > getBarrelRegions ()
 
std::vector< unsigned short > getHFFineGrainBits ()
 
std::vector< unsigned short > getHFRegions ()
 
std::vector< unsigned short > getIsolatedEGObjects ()
 
std::vector< unsigned short > getJetRegions ()
 
unsigned short getMIPBits ()
 
std::vector< unsigned short > getNonisolatedEGObjects ()
 
unsigned short getOverFlowBits ()
 
unsigned short getQuietBits ()
 
L1RCTReceiverCardgetReceiverCard (int i)
 
unsigned short getTauBits ()
 
void input (std::vector< std::vector< unsigned short > > RCInput, std::vector< unsigned short > HFInput)
 
 L1RCTCrate (int crtNo, const L1RCTLookupTables *rctLookupTables)
 
void print ()
 
void printEIC (int i)
 
void printEICEdges (int i)
 
void printJSC ()
 
void printRC (int i)
 
void processElectronIsolationCards ()
 
void processJetSummaryCard ()
 
void processReceiverCards ()
 
 ~L1RCTCrate ()
 

Private Member Functions

 L1RCTCrate ()
 

Private Attributes

int crtNo
 
std::vector
< L1RCTElectronIsolationCard
electronCards
 
L1RCTJetSummaryCard jetSummaryCard
 
const L1RCTLookupTablesrctLookupTables_
 
std::vector< L1RCTReceiverCardreceiverCards
 

Detailed Description

Definition at line 11 of file L1RCTCrate.h.

Constructor & Destructor Documentation

L1RCTCrate::L1RCTCrate ( int  crtNo,
const L1RCTLookupTables rctLookupTables 
)

Definition at line 4 of file L1RCTCrate.cc.

References electronCards, i, and receiverCards.

4  :
5  jetSummaryCard(crtNo, rctLookupTables),
6  crtNo(crtNo),
7  rctLookupTables_(rctLookupTables)
8 {
9  for(int i = 0; i <7; i++){
10  L1RCTReceiverCard rc(crtNo,i,rctLookupTables);
11  L1RCTElectronIsolationCard eic(crtNo,i,rctLookupTables);
12  receiverCards.push_back(rc);
13  electronCards.push_back(eic);
14  }
15 }
int i
Definition: DBlmapReader.cc:9
L1RCTJetSummaryCard jetSummaryCard
Definition: L1RCTCrate.h:105
const L1RCTLookupTables * rctLookupTables_
Definition: L1RCTCrate.h:108
std::vector< L1RCTReceiverCard > receiverCards
Definition: L1RCTCrate.h:101
std::vector< L1RCTElectronIsolationCard > electronCards
Definition: L1RCTCrate.h:102
L1RCTCrate::~L1RCTCrate ( )

Definition at line 17 of file L1RCTCrate.cc.

18 {
19 
20 }
L1RCTCrate::L1RCTCrate ( )
private

Member Function Documentation

int L1RCTCrate::crateNumber ( )
inline

Definition at line 18 of file L1RCTCrate.h.

References crtNo.

18 {return crtNo;}
void L1RCTCrate::fillElectronIsolationCards ( )

Definition at line 42 of file L1RCTCrate.cc.

References electronCards, i, j, and receiverCards.

42  {
43  for(int i = 0; i<7; i++){
44  for(int j = 0; j<2; j++){
45  electronCards.at(i).setRegion(j,*receiverCards.at(i).getRegion(j));
46  }
47  }
48 }
int i
Definition: DBlmapReader.cc:9
int j
Definition: DBlmapReader.cc:9
std::vector< L1RCTReceiverCard > receiverCards
Definition: L1RCTCrate.h:101
std::vector< L1RCTElectronIsolationCard > electronCards
Definition: L1RCTCrate.h:102
void L1RCTCrate::fillJetSummaryCard ( )

Definition at line 53 of file L1RCTCrate.cc.

References electronCards, L1RCTJetSummaryCard::fillIsolatedEGObjects(), L1RCTJetSummaryCard::fillMIPBits(), L1RCTJetSummaryCard::fillNonIsolatedEGObjects(), L1RCTJetSummaryCard::fillOverFlowBits(), L1RCTJetSummaryCard::fillRegionSums(), L1RCTJetSummaryCard::fillTauBits(), i, jetSummaryCard, and receiverCards.

53  {
54  std::vector<unsigned short> barrelSums(14);
55  std::vector<unsigned short> isoElectrons(14);
56  std::vector<unsigned short> nonIsoElectrons(14);
57  std::vector<unsigned short> mipBits(14);
58  std::vector<unsigned short> overFlowBits(14);
59  std::vector<unsigned short> tauBits(14);
60  for(int i = 0; i<7;i++){
61  mipBits.at(2*i) = receiverCards.at(i).getMuonBitRegion(0);
62  mipBits.at(2*i+1) = receiverCards.at(i).getMuonBitRegion(1);
63  isoElectrons.at(2*i) = electronCards.at(i).getIsoElectrons(0);
64  isoElectrons.at(2*i+1) = electronCards.at(i).getIsoElectrons(1) + 1; // the +1 adds region info
65  nonIsoElectrons.at(2*i) = electronCards.at(i).getNonIsoElectrons(0);
66  nonIsoElectrons.at(2*i+1) = electronCards.at(i).getNonIsoElectrons(1) + 1; // +1 adds region info
67  barrelSums.at(2*i) = receiverCards.at(i).getEtIn10BitsRegion(0);
68  barrelSums.at(2*i+1) = receiverCards.at(i).getEtIn10BitsRegion(1);
69  overFlowBits.at(2*i) = receiverCards.at(i).getOverFlowBitRegion(0);
70  overFlowBits.at(2*i+1) = receiverCards.at(i).getOverFlowBitRegion(1);
71  tauBits.at(2*i) = receiverCards.at(i).getTauBitRegion(0);
72  tauBits.at(2*i+1) = receiverCards.at(i).getTauBitRegion(1);
73  }
76  jetSummaryCard.fillRegionSums(barrelSums);
77  jetSummaryCard.fillMIPBits(mipBits);
78  jetSummaryCard.fillTauBits(tauBits);
79  jetSummaryCard.fillOverFlowBits(overFlowBits);
80 }
int i
Definition: DBlmapReader.cc:9
void fillRegionSums(std::vector< unsigned short > regSums)
void fillTauBits(std::vector< unsigned short > tau)
L1RCTJetSummaryCard jetSummaryCard
Definition: L1RCTCrate.h:105
void fillIsolatedEGObjects(std::vector< unsigned short > isoElectrons)
void fillOverFlowBits(std::vector< unsigned short > overflow)
void fillMIPBits(std::vector< unsigned short > mip)
void fillNonIsolatedEGObjects(std::vector< unsigned short > nonIsoElectrons)
std::vector< L1RCTReceiverCard > receiverCards
Definition: L1RCTCrate.h:101
std::vector< L1RCTElectronIsolationCard > electronCards
Definition: L1RCTCrate.h:102
std::vector<unsigned short> L1RCTCrate::getBarrelRegions ( )
inline

Definition at line 62 of file L1RCTCrate.h.

References L1RCTJetSummaryCard::getBarrelRegions(), and jetSummaryCard.

62  {
64  }
L1RCTJetSummaryCard jetSummaryCard
Definition: L1RCTCrate.h:105
std::vector< unsigned short > getBarrelRegions()
std::vector<unsigned short> L1RCTCrate::getHFFineGrainBits ( )
inline

Definition at line 91 of file L1RCTCrate.h.

References L1RCTJetSummaryCard::getHFFineGrainBits(), and jetSummaryCard.

91  {
93  }
L1RCTJetSummaryCard jetSummaryCard
Definition: L1RCTCrate.h:105
std::vector< unsigned short > getHFFineGrainBits()
std::vector<unsigned short> L1RCTCrate::getHFRegions ( )
inline

Definition at line 65 of file L1RCTCrate.h.

References L1RCTJetSummaryCard::getHFRegions(), and jetSummaryCard.

65  {
67  }
L1RCTJetSummaryCard jetSummaryCard
Definition: L1RCTCrate.h:105
std::vector< unsigned short > getHFRegions()
std::vector<unsigned short> L1RCTCrate::getIsolatedEGObjects ( )
inline

Definition at line 70 of file L1RCTCrate.h.

References L1RCTJetSummaryCard::getIsolatedEGObjects(), and jetSummaryCard.

70  {
72  }
L1RCTJetSummaryCard jetSummaryCard
Definition: L1RCTCrate.h:105
std::vector< unsigned short > getIsolatedEGObjects()
std::vector<unsigned short> L1RCTCrate::getJetRegions ( )
inline

Definition at line 59 of file L1RCTCrate.h.

References L1RCTJetSummaryCard::getJetRegions(), and jetSummaryCard.

59  {
61  }
std::vector< unsigned short > getJetRegions()
L1RCTJetSummaryCard jetSummaryCard
Definition: L1RCTCrate.h:105
unsigned short L1RCTCrate::getMIPBits ( )
inline

Definition at line 81 of file L1RCTCrate.h.

References L1RCTJetSummaryCard::getMIPBits(), and jetSummaryCard.

81  {
82  return jetSummaryCard.getMIPBits();
83  }
L1RCTJetSummaryCard jetSummaryCard
Definition: L1RCTCrate.h:105
unsigned short getMIPBits()
std::vector<unsigned short> L1RCTCrate::getNonisolatedEGObjects ( )
inline

Definition at line 73 of file L1RCTCrate.h.

References L1RCTJetSummaryCard::getNonisolatedEGObjects(), and jetSummaryCard.

73  {
75  }
L1RCTJetSummaryCard jetSummaryCard
Definition: L1RCTCrate.h:105
std::vector< unsigned short > getNonisolatedEGObjects()
unsigned short L1RCTCrate::getOverFlowBits ( )
inline

Definition at line 84 of file L1RCTCrate.h.

References L1RCTJetSummaryCard::getOverFlowBits(), and jetSummaryCard.

84  {
86  }
L1RCTJetSummaryCard jetSummaryCard
Definition: L1RCTCrate.h:105
unsigned short getOverFlowBits()
unsigned short L1RCTCrate::getQuietBits ( )
inline

Definition at line 87 of file L1RCTCrate.h.

References L1RCTJetSummaryCard::getQuietBits(), and jetSummaryCard.

87  {
89  }
unsigned short getQuietBits()
L1RCTJetSummaryCard jetSummaryCard
Definition: L1RCTCrate.h:105
L1RCTReceiverCard* L1RCTCrate::getReceiverCard ( int  i)
inline

Definition at line 25 of file L1RCTCrate.h.

References receiverCards.

25 { return &receiverCards.at(i);}
int i
Definition: DBlmapReader.cc:9
std::vector< L1RCTReceiverCard > receiverCards
Definition: L1RCTCrate.h:101
unsigned short L1RCTCrate::getTauBits ( )
inline

Definition at line 78 of file L1RCTCrate.h.

References L1RCTJetSummaryCard::getTauBits(), and jetSummaryCard.

78  {
79  return jetSummaryCard.getTauBits();
80  }
unsigned short getTauBits()
L1RCTJetSummaryCard jetSummaryCard
Definition: L1RCTCrate.h:105
void L1RCTCrate::input ( std::vector< std::vector< unsigned short > >  RCInput,
std::vector< unsigned short >  HFInput 
)

Definition at line 22 of file L1RCTCrate.cc.

References L1RCTJetSummaryCard::fillHFRegionSums(), i, jetSummaryCard, and receiverCards.

24 {
25  //std::cout << "Crate.input() entered" << std::endl;
26  for(int i =0; i<7; i++){
27  //std::cout << "calling RC.fillInput() for RC " << i << std::endl;
28  receiverCards.at(i).fillInput(RCInput.at(i));
29  //std::cout << "RC " << i << " filled" << std::endl;
30  }
31  //std::cout << "calling JSC.fillHFRegionSums()" << std::endl;
33  //std::cout << "JSC.fillHF called" << std::endl;
34 }
int i
Definition: DBlmapReader.cc:9
L1RCTJetSummaryCard jetSummaryCard
Definition: L1RCTCrate.h:105
void fillHFRegionSums(std::vector< unsigned short > hfRegionSums)
std::vector< L1RCTReceiverCard > receiverCards
Definition: L1RCTCrate.h:101
void L1RCTCrate::print ( void  )

Definition at line 86 of file L1RCTCrate.cc.

References electronCards, i, jetSummaryCard, L1RCTJetSummaryCard::print(), and receiverCards.

86  {
87  for(int i=0;i<7;i++){
88  receiverCards.at(i).print();
89  electronCards.at(i).print();
90  }
92 }
int i
Definition: DBlmapReader.cc:9
L1RCTJetSummaryCard jetSummaryCard
Definition: L1RCTCrate.h:105
std::vector< L1RCTReceiverCard > receiverCards
Definition: L1RCTCrate.h:101
std::vector< L1RCTElectronIsolationCard > electronCards
Definition: L1RCTCrate.h:102
void L1RCTCrate::printEIC ( int  i)
inline

Definition at line 51 of file L1RCTCrate.h.

References electronCards.

51  {
52  electronCards.at(i).print();
53  }
int i
Definition: DBlmapReader.cc:9
std::vector< L1RCTElectronIsolationCard > electronCards
Definition: L1RCTCrate.h:102
void L1RCTCrate::printEICEdges ( int  i)
inline

Definition at line 54 of file L1RCTCrate.h.

References electronCards.

54  {
55  electronCards.at(i).printEdges();
56  }
int i
Definition: DBlmapReader.cc:9
std::vector< L1RCTElectronIsolationCard > electronCards
Definition: L1RCTCrate.h:102
void L1RCTCrate::printJSC ( )
inline

Definition at line 45 of file L1RCTCrate.h.

References jetSummaryCard, and L1RCTJetSummaryCard::print().

45  {
47  }
L1RCTJetSummaryCard jetSummaryCard
Definition: L1RCTCrate.h:105
void L1RCTCrate::printRC ( int  i)
inline

Definition at line 48 of file L1RCTCrate.h.

References receiverCards.

48  {
49  receiverCards.at(i).print();
50  }
int i
Definition: DBlmapReader.cc:9
std::vector< L1RCTReceiverCard > receiverCards
Definition: L1RCTCrate.h:101
void L1RCTCrate::processElectronIsolationCards ( )

Definition at line 49 of file L1RCTCrate.cc.

References electronCards, and i.

49  {
50  for(int i = 0; i<7;i++)
51  electronCards.at(i).fillElectronCandidates();
52 }
int i
Definition: DBlmapReader.cc:9
std::vector< L1RCTElectronIsolationCard > electronCards
Definition: L1RCTCrate.h:102
void L1RCTCrate::processJetSummaryCard ( )
void L1RCTCrate::processReceiverCards ( )

Definition at line 35 of file L1RCTCrate.cc.

References i, and receiverCards.

35  {
36  for(int i=0; i<7;i++){
37  receiverCards.at(i).fillTauBits();
38  receiverCards.at(i).fillRegionSums();
39  receiverCards.at(i).fillMuonBits();
40  }
41 }
int i
Definition: DBlmapReader.cc:9
std::vector< L1RCTReceiverCard > receiverCards
Definition: L1RCTCrate.h:101

Member Data Documentation

int L1RCTCrate::crtNo
private

Definition at line 107 of file L1RCTCrate.h.

Referenced by crateNumber().

std::vector<L1RCTElectronIsolationCard> L1RCTCrate::electronCards
private
L1RCTJetSummaryCard L1RCTCrate::jetSummaryCard
private
const L1RCTLookupTables* L1RCTCrate::rctLookupTables_
private

Definition at line 108 of file L1RCTCrate.h.

std::vector<L1RCTReceiverCard> L1RCTCrate::receiverCards
private