CMS 3D CMS Logo

L1RCTCrate Class Reference

#include <L1Trigger/RegionalCaloTrigger/interface/L1RCTCrate.h>

List of all members.

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 ()

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.

00004                                                                           : 
00005   jetSummaryCard(crtNo, rctLookupTables),
00006   crtNo(crtNo),
00007   rctLookupTables_(rctLookupTables)
00008 {
00009   for(int i = 0; i <7; i++){
00010     L1RCTReceiverCard rc(crtNo,i,rctLookupTables);
00011     L1RCTElectronIsolationCard eic(crtNo,i,rctLookupTables);
00012     receiverCards.push_back(rc);
00013     electronCards.push_back(eic);
00014   }
00015 }

L1RCTCrate::L1RCTCrate (  )  [private]


Member Function Documentation

int L1RCTCrate::crateNumber (  )  [inline]

Definition at line 16 of file L1RCTCrate.h.

00016 {return crtNo;}

void L1RCTCrate::fillElectronIsolationCards (  ) 

Definition at line 36 of file L1RCTCrate.cc.

References electronCards, i, j, and receiverCards.

00036                                            {
00037   for(int i = 0; i<7; i++){
00038     for(int j = 0; j<2; j++){
00039       electronCards.at(i).setRegion(j,receiverCards.at(i).getRegion(j));
00040     }
00041   }
00042 }

void L1RCTCrate::fillJetSummaryCard (  ) 

Definition at line 47 of file L1RCTCrate.cc.

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

00047                                    {
00048   std::vector<unsigned short> barrelSums(14);
00049   std::vector<unsigned short> isoElectrons(14);
00050   std::vector<unsigned short> nonIsoElectrons(14);
00051   std::vector<unsigned short> mipBits(14);
00052   std::vector<unsigned short> overFlowBits(14);
00053   std::vector<unsigned short> tauBits(14);
00054   for(int i = 0; i<7;i++){
00055     mipBits.at(2*i) = receiverCards.at(i).getMuonBitRegion(0);
00056     mipBits.at(2*i+1) = receiverCards.at(i).getMuonBitRegion(1);
00057     isoElectrons.at(2*i) = electronCards.at(i).getIsoElectrons(0);
00058     isoElectrons.at(2*i+1) = electronCards.at(i).getIsoElectrons(1) + 1;  // the +1 adds region info
00059     nonIsoElectrons.at(2*i) = electronCards.at(i).getNonIsoElectrons(0);
00060     nonIsoElectrons.at(2*i+1) = electronCards.at(i).getNonIsoElectrons(1) + 1;  // +1 adds region info
00061     barrelSums.at(2*i) = receiverCards.at(i).getEtIn10BitsRegion(0);
00062     barrelSums.at(2*i+1) = receiverCards.at(i).getEtIn10BitsRegion(1);
00063     overFlowBits.at(2*i) = receiverCards.at(i).getOverFlowBitRegion(0);
00064     overFlowBits.at(2*i+1) = receiverCards.at(i).getOverFlowBitRegion(1);
00065     tauBits.at(2*i) = receiverCards.at(i).getTauBitRegion(0);
00066     tauBits.at(2*i+1) = receiverCards.at(i).getTauBitRegion(1);
00067   }
00068   jetSummaryCard.fillIsolatedEGObjects(isoElectrons);
00069   jetSummaryCard.fillNonIsolatedEGObjects(nonIsoElectrons);
00070   jetSummaryCard.fillRegionSums(barrelSums);
00071   jetSummaryCard.fillMIPBits(mipBits);
00072   jetSummaryCard.fillTauBits(tauBits);
00073   jetSummaryCard.fillOverFlowBits(overFlowBits);
00074 }

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

Definition at line 60 of file L1RCTCrate.h.

References L1RCTJetSummaryCard::getBarrelRegions(), and jetSummaryCard.

00060                                               {
00061     return jetSummaryCard.getBarrelRegions();
00062   }

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

Definition at line 89 of file L1RCTCrate.h.

References L1RCTJetSummaryCard::getHFFineGrainBits(), and jetSummaryCard.

00089                                                 {
00090     return jetSummaryCard.getHFFineGrainBits();
00091   }

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

Definition at line 63 of file L1RCTCrate.h.

References L1RCTJetSummaryCard::getHFRegions(), and jetSummaryCard.

00063                                           {
00064     return jetSummaryCard.getHFRegions();
00065   }

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

Definition at line 68 of file L1RCTCrate.h.

References L1RCTJetSummaryCard::getIsolatedEGObjects(), and jetSummaryCard.

00068                                                   {
00069     return jetSummaryCard.getIsolatedEGObjects();
00070   }

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

Definition at line 57 of file L1RCTCrate.h.

References L1RCTJetSummaryCard::getJetRegions(), and jetSummaryCard.

00057                                            {
00058     return jetSummaryCard.getJetRegions();
00059   }

unsigned short L1RCTCrate::getMIPBits (  )  [inline]

Definition at line 79 of file L1RCTCrate.h.

References L1RCTJetSummaryCard::getMIPBits(), and jetSummaryCard.

00079                              {
00080     return jetSummaryCard.getMIPBits();
00081   }

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

Definition at line 71 of file L1RCTCrate.h.

References L1RCTJetSummaryCard::getNonisolatedEGObjects(), and jetSummaryCard.

00071                                                      {
00072     return jetSummaryCard.getNonisolatedEGObjects();
00073   }

unsigned short L1RCTCrate::getOverFlowBits (  )  [inline]

Definition at line 82 of file L1RCTCrate.h.

References L1RCTJetSummaryCard::getOverFlowBits(), and jetSummaryCard.

00082                                   {
00083     return jetSummaryCard.getOverFlowBits();
00084   }

unsigned short L1RCTCrate::getQuietBits (  )  [inline]

Definition at line 85 of file L1RCTCrate.h.

References L1RCTJetSummaryCard::getQuietBits(), and jetSummaryCard.

00085                                {
00086     return jetSummaryCard.getQuietBits();
00087   }

L1RCTReceiverCard* L1RCTCrate::getReceiverCard ( int  i  )  [inline]

Definition at line 23 of file L1RCTCrate.h.

References receiverCards.

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

unsigned short L1RCTCrate::getTauBits (  )  [inline]

Definition at line 76 of file L1RCTCrate.h.

References L1RCTJetSummaryCard::getTauBits(), and jetSummaryCard.

00076                              {
00077     return jetSummaryCard.getTauBits();
00078   }

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

Definition at line 16 of file L1RCTCrate.cc.

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

00018 {
00019   //std::cout << "Crate.input() entered" << std::endl;
00020   for(int i =0; i<7; i++){
00021     //std::cout << "calling RC.fillInput() for RC " << i << std::endl;
00022     receiverCards.at(i).fillInput(RCInput.at(i));
00023     //std::cout << "RC " << i << " filled" << std::endl;
00024   }
00025   //std::cout << "calling JSC.fillHFRegionSums()" << std::endl;
00026   jetSummaryCard.fillHFRegionSums(HFInput);
00027   //std::cout << "JSC.fillHF called" << std::endl;
00028 } 

void L1RCTCrate::print ( void   ) 

Definition at line 80 of file L1RCTCrate.cc.

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

00080                       {
00081   for(int i=0;i<7;i++){
00082     receiverCards.at(i).print();
00083     electronCards.at(i).print();
00084   }
00085   jetSummaryCard.print();
00086 }

void L1RCTCrate::printEIC ( int  i  )  [inline]

Definition at line 49 of file L1RCTCrate.h.

References electronCards.

00049                       {
00050     electronCards.at(i).print();
00051   }

void L1RCTCrate::printEICEdges ( int  i  )  [inline]

Definition at line 52 of file L1RCTCrate.h.

References electronCards.

00052                            {
00053     electronCards.at(i).printEdges();
00054   }

void L1RCTCrate::printJSC (  )  [inline]

Definition at line 43 of file L1RCTCrate.h.

References jetSummaryCard, and L1RCTJetSummaryCard::print().

00043                  {
00044     jetSummaryCard.print();
00045   }

void L1RCTCrate::printRC ( int  i  )  [inline]

Definition at line 46 of file L1RCTCrate.h.

References receiverCards.

00046                      {
00047     receiverCards.at(i).print();
00048   }

void L1RCTCrate::processElectronIsolationCards (  ) 

Definition at line 43 of file L1RCTCrate.cc.

References electronCards, and i.

00043                                               {
00044   for(int i = 0; i<7;i++)
00045     electronCards.at(i).fillElectronCandidates();
00046 }

void L1RCTCrate::processJetSummaryCard (  ) 

Definition at line 75 of file L1RCTCrate.cc.

References L1RCTJetSummaryCard::fillJetRegions(), L1RCTJetSummaryCard::fillQuietBits(), and jetSummaryCard.

00075                                       {
00076   jetSummaryCard.fillJetRegions();
00077   jetSummaryCard.fillQuietBits();
00078 }

void L1RCTCrate::processReceiverCards (  ) 

Definition at line 29 of file L1RCTCrate.cc.

References i, and receiverCards.

00029                                      {
00030   for(int i=0; i<7;i++){
00031     receiverCards.at(i).fillTauBits();
00032     receiverCards.at(i).fillRegionSums();
00033     receiverCards.at(i).fillMuonBits();
00034   }
00035 }


Member Data Documentation

int L1RCTCrate::crtNo [private]

Definition at line 105 of file L1RCTCrate.h.

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

Definition at line 100 of file L1RCTCrate.h.

Referenced by fillElectronIsolationCards(), fillJetSummaryCard(), L1RCTCrate(), print(), printEIC(), printEICEdges(), and processElectronIsolationCards().

L1RCTJetSummaryCard L1RCTCrate::jetSummaryCard [private]

Definition at line 103 of file L1RCTCrate.h.

Referenced by fillJetSummaryCard(), getBarrelRegions(), getHFFineGrainBits(), getHFRegions(), getIsolatedEGObjects(), getJetRegions(), getMIPBits(), getNonisolatedEGObjects(), getOverFlowBits(), getQuietBits(), getTauBits(), input(), print(), printJSC(), and processJetSummaryCard().

const L1RCTLookupTables* L1RCTCrate::rctLookupTables_ [private]

Definition at line 106 of file L1RCTCrate.h.

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

Definition at line 99 of file L1RCTCrate.h.

Referenced by fillElectronIsolationCards(), fillJetSummaryCard(), getReceiverCard(), input(), L1RCTCrate(), print(), printRC(), and processReceiverCards().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:26:57 2009 for CMSSW by  doxygen 1.5.4