CMS 3D CMS Logo

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 (const std::vector< std::vector< unsigned short >> &RCInput, const 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 ()=delete
 

Private Attributes

int crtNo
 
std::vector< L1RCTElectronIsolationCardelectronCards
 
L1RCTJetSummaryCard jetSummaryCard
 
const L1RCTLookupTablesrctLookupTables_
 
std::vector< L1RCTReceiverCardreceiverCards
 

Detailed Description

Definition at line 11 of file L1RCTCrate.h.

Constructor & Destructor Documentation

◆ L1RCTCrate() [1/2]

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

Definition at line 4 of file L1RCTCrate.cc.

5  : jetSummaryCard(crtNo, rctLookupTables), crtNo(crtNo), rctLookupTables_(rctLookupTables) {
6  for (int i = 0; i < 7; i++) {
7  L1RCTReceiverCard rc(crtNo, i, rctLookupTables);
8  L1RCTElectronIsolationCard eic(crtNo, i, rctLookupTables);
9  receiverCards.push_back(rc);
10  electronCards.push_back(eic);
11  }
12 }

References crtNo, electronCards, mps_fire::i, and receiverCards.

◆ ~L1RCTCrate()

L1RCTCrate::~L1RCTCrate ( )

Definition at line 14 of file L1RCTCrate.cc.

14 {}

◆ L1RCTCrate() [2/2]

L1RCTCrate::L1RCTCrate ( )
privatedelete

Member Function Documentation

◆ crateNumber()

int L1RCTCrate::crateNumber ( )
inline

Definition at line 17 of file L1RCTCrate.h.

17 { return crtNo; }

References crtNo.

◆ fillElectronIsolationCards()

void L1RCTCrate::fillElectronIsolationCards ( )

Definition at line 35 of file L1RCTCrate.cc.

35  {
36  for (int i = 0; i < 7; i++) {
37  for (int j = 0; j < 2; j++) {
38  electronCards.at(i).setRegion(j, *receiverCards.at(i).getRegion(j));
39  }
40  }
41 }

References electronCards, mps_fire::i, dqmiolumiharvest::j, and receiverCards.

◆ fillJetSummaryCard()

void L1RCTCrate::fillJetSummaryCard ( )

Definition at line 46 of file L1RCTCrate.cc.

46  {
47  std::vector<unsigned short> barrelSums(14);
48  std::vector<unsigned short> isoElectrons(14);
49  std::vector<unsigned short> nonIsoElectrons(14);
50  std::vector<unsigned short> mipBits(14);
51  std::vector<unsigned short> overFlowBits(14);
52  std::vector<unsigned short> tauBits(14);
53  for (int i = 0; i < 7; i++) {
54  mipBits.at(2 * i) = receiverCards.at(i).getMuonBitRegion(0);
55  mipBits.at(2 * i + 1) = receiverCards.at(i).getMuonBitRegion(1);
56  isoElectrons.at(2 * i) = electronCards.at(i).getIsoElectrons(0);
57  isoElectrons.at(2 * i + 1) = electronCards.at(i).getIsoElectrons(1) + 1; // the +1 adds region info
58  nonIsoElectrons.at(2 * i) = electronCards.at(i).getNonIsoElectrons(0);
59  nonIsoElectrons.at(2 * i + 1) = electronCards.at(i).getNonIsoElectrons(1) + 1; // +1 adds region info
60  barrelSums.at(2 * i) = receiverCards.at(i).getEtIn10BitsRegion(0);
61  barrelSums.at(2 * i + 1) = receiverCards.at(i).getEtIn10BitsRegion(1);
62  overFlowBits.at(2 * i) = receiverCards.at(i).getOverFlowBitRegion(0);
63  overFlowBits.at(2 * i + 1) = receiverCards.at(i).getOverFlowBitRegion(1);
64  tauBits.at(2 * i) = receiverCards.at(i).getTauBitRegion(0);
65  tauBits.at(2 * i + 1) = receiverCards.at(i).getTauBitRegion(1);
66  }
69  jetSummaryCard.fillRegionSums(barrelSums);
70  jetSummaryCard.fillMIPBits(mipBits);
71  jetSummaryCard.fillTauBits(tauBits);
72  jetSummaryCard.fillOverFlowBits(overFlowBits);
73 }

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

◆ getBarrelRegions()

std::vector<unsigned short> L1RCTCrate::getBarrelRegions ( )
inline

Definition at line 50 of file L1RCTCrate.h.

50 { return jetSummaryCard.getBarrelRegions(); }

References L1RCTJetSummaryCard::getBarrelRegions(), and jetSummaryCard.

◆ getHFFineGrainBits()

std::vector<unsigned short> L1RCTCrate::getHFFineGrainBits ( )
inline

Definition at line 63 of file L1RCTCrate.h.

References L1RCTJetSummaryCard::getHFFineGrainBits(), and jetSummaryCard.

◆ getHFRegions()

std::vector<unsigned short> L1RCTCrate::getHFRegions ( )
inline

Definition at line 51 of file L1RCTCrate.h.

51 { return jetSummaryCard.getHFRegions(); }

References L1RCTJetSummaryCard::getHFRegions(), and jetSummaryCard.

◆ getIsolatedEGObjects()

std::vector<unsigned short> L1RCTCrate::getIsolatedEGObjects ( )
inline

Definition at line 54 of file L1RCTCrate.h.

References L1RCTJetSummaryCard::getIsolatedEGObjects(), and jetSummaryCard.

◆ getJetRegions()

std::vector<unsigned short> L1RCTCrate::getJetRegions ( )
inline

Definition at line 49 of file L1RCTCrate.h.

49 { return jetSummaryCard.getJetRegions(); }

References L1RCTJetSummaryCard::getJetRegions(), and jetSummaryCard.

◆ getMIPBits()

unsigned short L1RCTCrate::getMIPBits ( )
inline

Definition at line 59 of file L1RCTCrate.h.

59 { return jetSummaryCard.getMIPBits(); }

References L1RCTJetSummaryCard::getMIPBits(), and jetSummaryCard.

◆ getNonisolatedEGObjects()

std::vector<unsigned short> L1RCTCrate::getNonisolatedEGObjects ( )
inline

◆ getOverFlowBits()

unsigned short L1RCTCrate::getOverFlowBits ( )
inline

Definition at line 60 of file L1RCTCrate.h.

60 { return jetSummaryCard.getOverFlowBits(); }

References L1RCTJetSummaryCard::getOverFlowBits(), and jetSummaryCard.

◆ getQuietBits()

unsigned short L1RCTCrate::getQuietBits ( )
inline

Definition at line 61 of file L1RCTCrate.h.

61 { return jetSummaryCard.getQuietBits(); }

References L1RCTJetSummaryCard::getQuietBits(), and jetSummaryCard.

◆ getReceiverCard()

L1RCTReceiverCard* L1RCTCrate::getReceiverCard ( int  i)
inline

Definition at line 24 of file L1RCTCrate.h.

24 { return &receiverCards.at(i); }

References mps_fire::i, and receiverCards.

◆ getTauBits()

unsigned short L1RCTCrate::getTauBits ( )
inline

Definition at line 58 of file L1RCTCrate.h.

58 { return jetSummaryCard.getTauBits(); }

References L1RCTJetSummaryCard::getTauBits(), and jetSummaryCard.

◆ input()

void L1RCTCrate::input ( const std::vector< std::vector< unsigned short >> &  RCInput,
const std::vector< unsigned short > &  HFInput 
)

Definition at line 16 of file L1RCTCrate.cc.

17  {
18  // std::cout << "Crate.input() entered" << std::endl;
19  for (int i = 0; i < 7; i++) {
20  // std::cout << "calling RC.fillInput() for RC " << i << std::endl;
21  receiverCards.at(i).fillInput(RCInput.at(i));
22  // std::cout << "RC " << i << " filled" << std::endl;
23  }
24  // std::cout << "calling JSC.fillHFRegionSums()" << std::endl;
26  // std::cout << "JSC.fillHF called" << std::endl;
27 }

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

◆ print()

void L1RCTCrate::print ( void  )

Definition at line 79 of file L1RCTCrate.cc.

79  {
80  for (int i = 0; i < 7; i++) {
81  receiverCards.at(i).print();
82  electronCards.at(i).print();
83  }
85 }

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

◆ printEIC()

void L1RCTCrate::printEIC ( int  i)
inline

Definition at line 45 of file L1RCTCrate.h.

45 { electronCards.at(i).print(); }

References electronCards, and mps_fire::i.

◆ printEICEdges()

void L1RCTCrate::printEICEdges ( int  i)
inline

Definition at line 46 of file L1RCTCrate.h.

46 { electronCards.at(i).printEdges(); }

References electronCards, and mps_fire::i.

◆ printJSC()

void L1RCTCrate::printJSC ( )
inline

Definition at line 43 of file L1RCTCrate.h.

43 { jetSummaryCard.print(); }

References jetSummaryCard, and L1RCTJetSummaryCard::print().

◆ printRC()

void L1RCTCrate::printRC ( int  i)
inline

Definition at line 44 of file L1RCTCrate.h.

44 { receiverCards.at(i).print(); }

References mps_fire::i, and receiverCards.

◆ processElectronIsolationCards()

void L1RCTCrate::processElectronIsolationCards ( )

Definition at line 42 of file L1RCTCrate.cc.

42  {
43  for (int i = 0; i < 7; i++)
44  electronCards.at(i).fillElectronCandidates();
45 }

References electronCards, and mps_fire::i.

◆ processJetSummaryCard()

void L1RCTCrate::processJetSummaryCard ( )

◆ processReceiverCards()

void L1RCTCrate::processReceiverCards ( )

Definition at line 28 of file L1RCTCrate.cc.

28  {
29  for (int i = 0; i < 7; i++) {
30  receiverCards.at(i).fillTauBits();
31  receiverCards.at(i).fillRegionSums();
32  receiverCards.at(i).fillMuonBits();
33  }
34 }

References mps_fire::i, and receiverCards.

Member Data Documentation

◆ crtNo

int L1RCTCrate::crtNo
private

Definition at line 77 of file L1RCTCrate.h.

Referenced by crateNumber(), and L1RCTCrate().

◆ electronCards

std::vector<L1RCTElectronIsolationCard> L1RCTCrate::electronCards
private

◆ jetSummaryCard

L1RCTJetSummaryCard L1RCTCrate::jetSummaryCard
private

◆ rctLookupTables_

const L1RCTLookupTables* L1RCTCrate::rctLookupTables_
private

Definition at line 78 of file L1RCTCrate.h.

◆ receiverCards

std::vector<L1RCTReceiverCard> L1RCTCrate::receiverCards
private
L1RCTCrate::crtNo
int crtNo
Definition: L1RCTCrate.h:77
mps_fire.i
i
Definition: mps_fire.py:355
L1RCTJetSummaryCard::getMIPBits
unsigned short getMIPBits()
Definition: L1RCTJetSummaryCard.h:64
L1RCTJetSummaryCard::getBarrelRegions
std::vector< unsigned short > getBarrelRegions()
Definition: L1RCTJetSummaryCard.h:52
L1RCTReceiverCard
Definition: L1RCTReceiverCard.h:14
L1RCTCrate::electronCards
std::vector< L1RCTElectronIsolationCard > electronCards
Definition: L1RCTCrate.h:72
L1RCTCrate::rctLookupTables_
const L1RCTLookupTables * rctLookupTables_
Definition: L1RCTCrate.h:78
L1RCTJetSummaryCard::getHFRegions
std::vector< unsigned short > getHFRegions()
Definition: L1RCTJetSummaryCard.h:53
L1RCTCrate::receiverCards
std::vector< L1RCTReceiverCard > receiverCards
Definition: L1RCTCrate.h:71
L1RCTJetSummaryCard::fillTauBits
void fillTauBits(const std::vector< unsigned short > &tau)
Definition: L1RCTJetSummaryCard.cc:174
L1RCTJetSummaryCard::getJetRegions
std::vector< unsigned short > getJetRegions()
Definition: L1RCTJetSummaryCard.h:51
L1RCTJetSummaryCard::fillOverFlowBits
void fillOverFlowBits(const std::vector< unsigned short > &overflow)
Definition: L1RCTJetSummaryCard.cc:181
L1RCTJetSummaryCard::getOverFlowBits
unsigned short getOverFlowBits()
Definition: L1RCTJetSummaryCard.h:68
L1RCTJetSummaryCard::fillHFRegionSums
void fillHFRegionSums(const std::vector< unsigned short > &hfRegionSums)
Definition: L1RCTJetSummaryCard.cc:29
L1RCTJetSummaryCard::getQuietBits
unsigned short getQuietBits()
Definition: L1RCTJetSummaryCard.h:65
L1RCTJetSummaryCard::fillIsolatedEGObjects
void fillIsolatedEGObjects(const std::vector< unsigned short > &isoElectrons)
Definition: L1RCTJetSummaryCard.cc:85
L1RCTJetSummaryCard::fillQuietBits
void fillQuietBits()
Definition: L1RCTJetSummaryCard.cc:188
L1RCTJetSummaryCard::print
void print()
Definition: L1RCTJetSummaryCard.cc:273
L1RCTJetSummaryCard::getHFFineGrainBits
std::vector< unsigned short > getHFFineGrainBits()
Definition: L1RCTJetSummaryCard.h:70
L1RCTJetSummaryCard::fillJetRegions
void fillJetRegions()
Definition: L1RCTJetSummaryCard.cc:40
L1RCTCrate::jetSummaryCard
L1RCTJetSummaryCard jetSummaryCard
Definition: L1RCTCrate.h:75
L1RCTJetSummaryCard::fillRegionSums
void fillRegionSums(const std::vector< unsigned short > &regSums)
Definition: L1RCTJetSummaryCard.h:73
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
L1RCTJetSummaryCard::fillNonIsolatedEGObjects
void fillNonIsolatedEGObjects(const std::vector< unsigned short > &nonIsoElectrons)
Definition: L1RCTJetSummaryCard.cc:126
L1RCTJetSummaryCard::fillMIPBits
void fillMIPBits(const std::vector< unsigned short > &mip)
Definition: L1RCTJetSummaryCard.cc:167
L1RCTJetSummaryCard::getIsolatedEGObjects
std::vector< unsigned short > getIsolatedEGObjects()
Definition: L1RCTJetSummaryCard.h:25
L1RCTJetSummaryCard::getNonisolatedEGObjects
std::vector< unsigned short > getNonisolatedEGObjects()
Definition: L1RCTJetSummaryCard.h:26
L1RCTElectronIsolationCard
Definition: L1RCTElectronIsolationCard.h:19
L1RCTJetSummaryCard::getTauBits
unsigned short getTauBits()
Definition: L1RCTJetSummaryCard.h:67