CMS 3D CMS Logo

L1RCTJetSummaryCard Class Reference

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

List of all members.

Public Member Functions

int crateNumber ()
void fillHFRegionSums (std::vector< unsigned short > hfRegionSums)
void fillIsolatedEGObjects (std::vector< unsigned short > isoElectrons)
void fillJetRegions ()
void fillMIPBits (std::vector< unsigned short > mip)
void fillNonIsolatedEGObjects (std::vector< unsigned short > nonIsoElectrons)
void fillOverFlowBits (std::vector< unsigned short > overflow)
void fillQuietBits ()
void fillRegionSums (std::vector< unsigned short > regSums)
void fillTauBits (std::vector< unsigned short > tau)
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 ()
unsigned short getTauBits ()
 L1RCTJetSummaryCard (int crtNo, const L1RCTLookupTables *rctLookupTables)
void print ()

Private Member Functions

void asicCompare (std::vector< unsigned short > &array)
void asicSort (std::vector< unsigned short > &electrons)
 L1RCTJetSummaryCard ()

Private Attributes

std::vector< unsigned short > barrelRegions
int crtNo
std::vector< unsigned short > hfFineGrainBits
std::vector< unsigned short > HFRegions
std::vector< unsigned short > isolatedEGObjects
std::vector< unsigned short > jetRegions
unsigned short mipBits
std::vector< unsigned short > nonisolatedEGObjects
unsigned short overFlowBits
unsigned short quietBits
unsigned quietThresholdBarrel
unsigned quietThresholdEndcap
const L1RCTLookupTablesrctLookupTables_
unsigned short tauBits


Detailed Description

Definition at line 8 of file L1RCTJetSummaryCard.h.


Constructor & Destructor Documentation

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

Definition at line 13 of file L1RCTJetSummaryCard.cc.

00013                                                                                             : 
00014   crtNo(crtNo),
00015   rctLookupTables_(rctLookupTables),
00016   isolatedEGObjects(4),
00017   nonisolatedEGObjects(4),
00018   jetRegions(22),
00019   HFRegions(8),
00020   barrelRegions(14),
00021   mipBits(0),
00022   quietBits(0),
00023   tauBits(0),
00024   overFlowBits(0),
00025   hfFineGrainBits(8)
00026   //quietThreshold(3)
00027 {
00028 }

L1RCTJetSummaryCard::L1RCTJetSummaryCard (  )  [private]


Member Function Documentation

void L1RCTJetSummaryCard::asicCompare ( std::vector< unsigned short > &  array  )  [private]

void L1RCTJetSummaryCard::asicSort ( std::vector< unsigned short > &  electrons  )  [private]

int L1RCTJetSummaryCard::crateNumber (  )  [inline]

Definition at line 17 of file L1RCTJetSummaryCard.h.

00017 {return crtNo;}

void L1RCTJetSummaryCard::fillHFRegionSums ( std::vector< unsigned short >  hfRegionSums  ) 

Referenced by L1RCTCrate::input().

void L1RCTJetSummaryCard::fillIsolatedEGObjects ( std::vector< unsigned short >  isoElectrons  ) 

Referenced by L1RCTCrate::fillJetSummaryCard().

void L1RCTJetSummaryCard::fillJetRegions (  ) 

Definition at line 41 of file L1RCTJetSummaryCard.cc.

References barrelRegions, crtNo, HFRegions, i, and jetRegions.

Referenced by L1RCTCrate::processJetSummaryCard().

00041                                         {
00042   if(crtNo<9){
00043     for(int i = 0; i<4;i++){
00044       jetRegions.at(i) = HFRegions.at(i);
00045       jetRegions.at(i+11) = HFRegions.at(i+4);
00046     }
00047     jetRegions.at(4) = barrelRegions.at(12);
00048     jetRegions.at(5) = barrelRegions.at(9);
00049     jetRegions.at(6) = barrelRegions.at(8);
00050     jetRegions.at(7) = barrelRegions.at(5);
00051     jetRegions.at(8) = barrelRegions.at(4);
00052     jetRegions.at(9) = barrelRegions.at(1);
00053     jetRegions.at(10) = barrelRegions.at(0);
00054 
00055     jetRegions.at(15) = barrelRegions.at(13);
00056     jetRegions.at(16) = barrelRegions.at(11);
00057     jetRegions.at(17) = barrelRegions.at(10);
00058     jetRegions.at(18) = barrelRegions.at(7);
00059     jetRegions.at(19) = barrelRegions.at(6);
00060     jetRegions.at(20) = barrelRegions.at(3);
00061     jetRegions.at(21) = barrelRegions.at(2);
00062   }
00063   if(crtNo>=9){
00064     jetRegions.at(0) = barrelRegions.at(0);
00065     jetRegions.at(1) = barrelRegions.at(1);
00066     jetRegions.at(2) = barrelRegions.at(4);
00067     jetRegions.at(3) = barrelRegions.at(5);
00068     jetRegions.at(4) = barrelRegions.at(8);
00069     jetRegions.at(5) = barrelRegions.at(9);
00070     jetRegions.at(6) = barrelRegions.at(12);
00071     
00072     jetRegions.at(11) = barrelRegions.at(2);
00073     jetRegions.at(12) = barrelRegions.at(3);
00074     jetRegions.at(13) = barrelRegions.at(6);
00075     jetRegions.at(14) = barrelRegions.at(7);
00076     jetRegions.at(15) = barrelRegions.at(10);
00077     jetRegions.at(16) = barrelRegions.at(11);
00078     jetRegions.at(17) = barrelRegions.at(13);
00079     for(int i = 0; i<4;i++){
00080       jetRegions.at(i+7) = HFRegions.at(i);
00081       jetRegions.at(i+18) = HFRegions.at(i+4);
00082     }
00083   }
00084 }

void L1RCTJetSummaryCard::fillMIPBits ( std::vector< unsigned short >  mip  ) 

Referenced by L1RCTCrate::fillJetSummaryCard().

void L1RCTJetSummaryCard::fillNonIsolatedEGObjects ( std::vector< unsigned short >  nonIsoElectrons  ) 

Referenced by L1RCTCrate::fillJetSummaryCard().

void L1RCTJetSummaryCard::fillOverFlowBits ( std::vector< unsigned short >  overflow  ) 

Referenced by L1RCTCrate::fillJetSummaryCard().

void L1RCTJetSummaryCard::fillQuietBits (  ) 

Definition at line 189 of file L1RCTJetSummaryCard.cc.

References barrelRegions, i, L1RCTParameters::jscQuietThresholdBarrel(), L1RCTParameters::jscQuietThresholdEndcap(), quietBits, quietThresholdBarrel, quietThresholdEndcap, rctLookupTables_, and L1RCTLookupTables::rctParameters().

Referenced by L1RCTCrate::processJetSummaryCard().

00189                                        {
00190   bitset<14> quiet;
00191 
00192   quietThresholdBarrel = rctLookupTables_->rctParameters()->jscQuietThresholdBarrel();
00193   quietThresholdEndcap = rctLookupTables_->rctParameters()->jscQuietThresholdEndcap();
00194 
00195   // use one threshold for barrel regions (first 8 in list, cards 0-3)
00196   for(int i = 0; i<8; i++){
00197     if((barrelRegions.at(i))>quietThresholdBarrel)
00198       quiet[i] = 0;  //switched 0 and 1
00199     else
00200       quiet[i] = 1;
00201   }
00202   // use second for endcap regions (last 6 in list, cards 4-6)
00203   for(int i = 8; i<14; i++){
00204     if((barrelRegions.at(i))>quietThresholdEndcap)
00205       quiet[i] = 0;  //switched 0 and 1
00206     else
00207       quiet[i] = 1;
00208   }
00209 
00210   quietBits = quiet.to_ulong();
00211 }

void L1RCTJetSummaryCard::fillRegionSums ( std::vector< unsigned short >  regSums  )  [inline]

Definition at line 75 of file L1RCTJetSummaryCard.h.

References barrelRegions.

Referenced by L1RCTCrate::fillJetSummaryCard().

00075                                                         {
00076     barrelRegions = regSums;
00077   }

void L1RCTJetSummaryCard::fillTauBits ( std::vector< unsigned short >  tau  ) 

Referenced by L1RCTCrate::fillJetSummaryCard().

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

Definition at line 54 of file L1RCTJetSummaryCard.h.

References barrelRegions.

Referenced by L1RCTCrate::getBarrelRegions().

00054 {return barrelRegions;}

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

Definition at line 72 of file L1RCTJetSummaryCard.h.

References hfFineGrainBits.

Referenced by L1RCTCrate::getHFFineGrainBits().

00072 {return hfFineGrainBits;}

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

Definition at line 55 of file L1RCTJetSummaryCard.h.

References HFRegions.

Referenced by L1RCTCrate::getHFRegions().

00055 {return HFRegions;}

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

Definition at line 27 of file L1RCTJetSummaryCard.h.

References isolatedEGObjects.

Referenced by L1RCTCrate::getIsolatedEGObjects().

00027 {return isolatedEGObjects;}

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

Definition at line 53 of file L1RCTJetSummaryCard.h.

References jetRegions.

Referenced by L1RCTCrate::getJetRegions().

00053 {return jetRegions;}

unsigned short L1RCTJetSummaryCard::getMIPBits (  )  [inline]

Definition at line 66 of file L1RCTJetSummaryCard.h.

References mipBits.

Referenced by L1RCTCrate::getMIPBits().

00066 {return mipBits;}

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

Definition at line 28 of file L1RCTJetSummaryCard.h.

References nonisolatedEGObjects.

Referenced by L1RCTCrate::getNonisolatedEGObjects().

00028 {return nonisolatedEGObjects;}

unsigned short L1RCTJetSummaryCard::getOverFlowBits (  )  [inline]

Definition at line 70 of file L1RCTJetSummaryCard.h.

References overFlowBits.

Referenced by L1RCTCrate::getOverFlowBits().

00070 {return overFlowBits;}

unsigned short L1RCTJetSummaryCard::getQuietBits (  )  [inline]

Definition at line 67 of file L1RCTJetSummaryCard.h.

References quietBits.

Referenced by L1RCTCrate::getQuietBits().

00067 {return quietBits;}

unsigned short L1RCTJetSummaryCard::getTauBits (  )  [inline]

Definition at line 69 of file L1RCTJetSummaryCard.h.

References tauBits.

Referenced by L1RCTCrate::getTauBits().

00069 {return tauBits;}

void L1RCTJetSummaryCard::print ( void   ) 

Definition at line 276 of file L1RCTJetSummaryCard.cc.

References GenMuonPlsPt100GeV_cfg::cout, lat::endl(), isolatedEGObjects, jetRegions, mipBits, nonisolatedEGObjects, quietBits, and tauBits.

Referenced by L1RCTCrate::print(), and L1RCTCrate::printJSC().

00276                                {
00277   cout << "tauBits " << tauBits << endl;
00278   cout << "MIPBits " << mipBits << endl;
00279   cout << "QuietBits " << quietBits << endl;
00280   for(int i=0; i<4;i++) {
00281     cout << "isoElectron " << i << " " << isolatedEGObjects.at(i) << endl;;
00282     cout << "nonIsoElectron " << i <<" "<< nonisolatedEGObjects.at(i) << endl;
00283   }
00284   cout << "Jets ";
00285   for(int i=0; i<22;i++)
00286     cout << jetRegions.at(i) << " ";
00287   cout << endl;
00288 }


Member Data Documentation

std::vector<unsigned short> L1RCTJetSummaryCard::barrelRegions [private]

Definition at line 100 of file L1RCTJetSummaryCard.h.

Referenced by fillJetRegions(), fillQuietBits(), fillRegionSums(), and getBarrelRegions().

int L1RCTJetSummaryCard::crtNo [private]

Definition at line 91 of file L1RCTJetSummaryCard.h.

Referenced by fillJetRegions().

std::vector<unsigned short> L1RCTJetSummaryCard::hfFineGrainBits [private]

Definition at line 107 of file L1RCTJetSummaryCard.h.

Referenced by getHFFineGrainBits().

std::vector<unsigned short> L1RCTJetSummaryCard::HFRegions [private]

Definition at line 99 of file L1RCTJetSummaryCard.h.

Referenced by fillJetRegions(), and getHFRegions().

std::vector<unsigned short> L1RCTJetSummaryCard::isolatedEGObjects [private]

Definition at line 95 of file L1RCTJetSummaryCard.h.

Referenced by getIsolatedEGObjects(), and print().

std::vector<unsigned short> L1RCTJetSummaryCard::jetRegions [private]

Definition at line 97 of file L1RCTJetSummaryCard.h.

Referenced by fillJetRegions(), getJetRegions(), and print().

unsigned short L1RCTJetSummaryCard::mipBits [private]

Definition at line 102 of file L1RCTJetSummaryCard.h.

Referenced by getMIPBits(), and print().

std::vector<unsigned short> L1RCTJetSummaryCard::nonisolatedEGObjects [private]

Definition at line 96 of file L1RCTJetSummaryCard.h.

Referenced by getNonisolatedEGObjects(), and print().

unsigned short L1RCTJetSummaryCard::overFlowBits [private]

Definition at line 105 of file L1RCTJetSummaryCard.h.

Referenced by getOverFlowBits().

unsigned short L1RCTJetSummaryCard::quietBits [private]

Definition at line 103 of file L1RCTJetSummaryCard.h.

Referenced by fillQuietBits(), getQuietBits(), and print().

unsigned L1RCTJetSummaryCard::quietThresholdBarrel [private]

Definition at line 110 of file L1RCTJetSummaryCard.h.

Referenced by fillQuietBits().

unsigned L1RCTJetSummaryCard::quietThresholdEndcap [private]

Definition at line 111 of file L1RCTJetSummaryCard.h.

Referenced by fillQuietBits().

const L1RCTLookupTables* L1RCTJetSummaryCard::rctLookupTables_ [private]

Definition at line 93 of file L1RCTJetSummaryCard.h.

Referenced by fillQuietBits().

unsigned short L1RCTJetSummaryCard::tauBits [private]

Definition at line 104 of file L1RCTJetSummaryCard.h.

Referenced by getTauBits(), and print().


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