![]() |
![]() |
#include <CondFormats/L1TObjects/interface/L1RCTParameters.h>
Public Member Functions | |
unsigned short | calcCard (unsigned short rct_iphi, unsigned short absIeta) const |
unsigned short | calcCrate (unsigned short rct_iphi, short ieta) const |
unsigned short | calcIAbsEta (unsigned short iCrate, unsigned short iCard, unsigned short iTower) const |
short | calcIEta (unsigned short iCrate, unsigned short iCard, unsigned short iTower) const |
unsigned short | calcIPhi (unsigned short iCrate, unsigned short iCard, unsigned short iTower) const |
unsigned short | calcTower (unsigned short rct_iphi, unsigned short absIeta) const |
double | eActivityCut () const |
std::vector< double > | eGammaECalScaleFactors () const |
std::vector< double > | eGammaHCalScaleFactors () const |
double | eGammaLSB () const |
unsigned | eicIsolationThreshold () const |
double | eMaxForFGCut () const |
double | eMaxForHoECut () const |
double | eMinForFGCut () const |
double | eMinForHoECut () const |
double | hActivityCut () const |
double | hMinForHoECut () const |
double | hOeCut () const |
std::vector< double > | jetMETECalScaleFactors () const |
std::vector< double > | jetMETHCalScaleFactors () const |
double | jetMETLSB () const |
unsigned | jscQuietThresholdBarrel () const |
unsigned | jscQuietThresholdEndcap () const |
L1RCTParameters (double eGammaLSB, double jetMETLSB, double eMinForFGCut, double eMaxForFGCut, double hOeCut, double eMinForHoECut, double eMaxForHoECut, double hMinForHoECut, double eActivityCut, double hActivityCut, unsigned eicIsolationThreshold, unsigned jscQuietThresholdBarrel, unsigned jscQuietThresholdEndcap, bool noiseVetoHB, bool noiseVetoHEplus, bool noiseVetoHEminus, std::vector< double > eGammaECalScaleFactors, std::vector< double > eGammaHCalScaleFactors, std::vector< double > jetMETECalScaleFactors, std::vector< double > jetMETHCalScaleFactors) | |
Author: Sridhara Dasu Created: 04 July 2007
| |
L1RCTParameters () | |
bool | noiseVetoHB () const |
bool | noiseVetoHEminus () const |
bool | noiseVetoHEplus () const |
void | print (std::ostream &s) const |
~L1RCTParameters () | |
Private Attributes | |
double | eActivityCut_ |
std::vector< double > | eGammaECalScaleFactors_ |
std::vector< double > | eGammaHCalScaleFactors_ |
double | eGammaLSB_ |
unsigned | eicIsolationThreshold_ |
double | eMaxForFGCut_ |
double | eMaxForHoECut_ |
double | eMinForFGCut_ |
double | eMinForHoECut_ |
double | hActivityCut_ |
double | hMinForHoECut_ |
double | hOeCut_ |
std::vector< double > | jetMETECalScaleFactors_ |
std::vector< double > | jetMETHCalScaleFactors_ |
double | jetMETLSB_ |
unsigned | jscQuietThresholdBarrel_ |
unsigned | jscQuietThresholdEndcap_ |
bool | noiseVetoHB_ |
bool | noiseVetoHEminus_ |
bool | noiseVetoHEplus_ |
Usage: <usage>
Definition at line 26 of file L1RCTParameters.h.
L1RCTParameters::L1RCTParameters | ( | ) | [inline] |
L1RCTParameters::L1RCTParameters | ( | double | eGammaLSB, | |
double | jetMETLSB, | |||
double | eMinForFGCut, | |||
double | eMaxForFGCut, | |||
double | hOeCut, | |||
double | eMinForHoECut, | |||
double | eMaxForHoECut, | |||
double | hMinForHoECut, | |||
double | eActivityCut, | |||
double | hActivityCut, | |||
unsigned | eicIsolationThreshold, | |||
unsigned | jscQuietThresholdBarrel, | |||
unsigned | jscQuietThresholdEndcap, | |||
bool | noiseVetoHB, | |||
bool | noiseVetoHEplus, | |||
bool | noiseVetoHEminus, | |||
std::vector< double > | eGammaECalScaleFactors, | |||
std::vector< double > | eGammaHCalScaleFactors, | |||
std::vector< double > | jetMETECalScaleFactors, | |||
std::vector< double > | jetMETHCalScaleFactors | |||
) |
Author: Sridhara Dasu Created: 04 July 2007
Definition at line 14 of file L1RCTParameters.cc.
00034 : 00035 eGammaLSB_(eGammaLSB), 00036 jetMETLSB_(jetMETLSB), 00037 eMinForFGCut_(eMinForFGCut), 00038 eMaxForFGCut_(eMaxForFGCut), 00039 hOeCut_(hOeCut), 00040 eMinForHoECut_(eMinForHoECut), 00041 eMaxForHoECut_(eMaxForHoECut), 00042 hMinForHoECut_(hMinForHoECut), 00043 eActivityCut_(eActivityCut), 00044 hActivityCut_(hActivityCut), 00045 eicIsolationThreshold_(eicIsolationThreshold), 00046 jscQuietThresholdBarrel_(jscQuietThresholdBarrel), 00047 jscQuietThresholdEndcap_(jscQuietThresholdEndcap), 00048 noiseVetoHB_(noiseVetoHB), 00049 noiseVetoHEplus_(noiseVetoHEplus), 00050 noiseVetoHEminus_(noiseVetoHEminus), 00051 eGammaECalScaleFactors_(eGammaECalScaleFactors), 00052 eGammaHCalScaleFactors_(eGammaHCalScaleFactors), 00053 jetMETECalScaleFactors_(jetMETECalScaleFactors), 00054 jetMETHCalScaleFactors_(jetMETHCalScaleFactors) 00055 { 00056 }
L1RCTParameters::~L1RCTParameters | ( | ) | [inline] |
unsigned short L1RCTParameters::calcCard | ( | unsigned short | rct_iphi, | |
unsigned short | absIeta | |||
) | const |
Definition at line 70 of file L1RCTParameters.cc.
Referenced by L1RCT::digiInput().
00072 { 00073 unsigned short card = 999; 00074 // Note absIeta counts from 1-32 (not 0-31) 00075 if (absIeta <= 24){ 00076 card = ((absIeta-1)/8)*2 + (rct_iphi%8)/4; 00077 } 00078 // 25 <= absIeta <= 28 (card 6) 00079 else if ((absIeta >= 25) && (absIeta <= 28)){ 00080 card = 6; 00081 } 00082 else{} 00083 return card; 00084 }
unsigned short L1RCTParameters::calcCrate | ( | unsigned short | rct_iphi, | |
short | ieta | |||
) | const |
Definition at line 59 of file L1RCTParameters.cc.
References funct::abs().
Referenced by L1RCT::digiInput(), and L1RCTLutWriter::writeRcLutFile().
00060 { 00061 unsigned short crate = rct_iphi/8; 00062 if(abs(ieta) > 28) crate = rct_iphi / 2; 00063 if (ieta > 0){ 00064 crate = crate + 9; 00065 } 00066 return crate; 00067 }
unsigned short L1RCTParameters::calcIAbsEta | ( | unsigned short | iCrate, | |
unsigned short | iCard, | |||
unsigned short | iTower | |||
) | const |
Definition at line 155 of file L1RCTParameters.cc.
Referenced by calcIEta().
00157 { 00158 unsigned short absIEta; 00159 if(iCard < 6) 00160 absIEta = (iCard / 2) * 8 + (iTower / 4) + 1; // rm -1 JLL 7Nov07 00161 else if(iCard == 6) { 00162 // card 6, region 0 00163 if(iTower < 16) // 17->16 00164 absIEta = 25 + iTower / 4; // rm -1 00165 // card 6, region 1 00166 else 00167 absIEta = 28 - ((iTower - 16) / 4); // 17->16 00168 } 00169 // HF regions 00170 else 00171 absIEta = 29 + iTower % 4; 00172 return absIEta; 00173 }
short L1RCTParameters::calcIEta | ( | unsigned short | iCrate, | |
unsigned short | iCard, | |||
unsigned short | iTower | |||
) | const |
Definition at line 122 of file L1RCTParameters.cc.
References calcIAbsEta().
Referenced by L1RCTLookupTables::lookup(), and RctInputTextToDigi::produce().
00124 { 00125 unsigned short absIEta = calcIAbsEta(iCrate, iCard, iTower); 00126 short iEta; 00127 if(iCrate < 9) iEta = -absIEta; 00128 else iEta = absIEta; 00129 return iEta; 00130 }
unsigned short L1RCTParameters::calcIPhi | ( | unsigned short | iCrate, | |
unsigned short | iCard, | |||
unsigned short | iTower | |||
) | const |
Definition at line 133 of file L1RCTParameters.cc.
Referenced by L1RCTLookupTables::lookup(), and RctInputTextToDigi::produce().
00136 { 00137 short iPhi; 00138 if(iCard < 6) 00139 iPhi = (iCrate % 9) * 8 + (iCard % 2) * 4 + (iTower % 4); // rm -1 7Nov07 00140 else if(iCard == 6){ 00141 // region 0 00142 if(iTower < 16) // 17->16 00143 iPhi = (iCrate % 9) * 8 + (iTower % 4); // rm -1 00144 // region 1 00145 else 00146 iPhi = (iCrate % 9) * 8 + ((iTower - 16) % 4) + 4; // 17 -> 16 00147 } 00148 // HF regions 00149 else 00150 iPhi = (iCrate % 9) * 2 + iTower / 4; 00151 return iPhi; 00152 }
unsigned short L1RCTParameters::calcTower | ( | unsigned short | rct_iphi, | |
unsigned short | absIeta | |||
) | const |
Definition at line 87 of file L1RCTParameters.cc.
Referenced by L1RCT::digiInput(), and L1RCTLutWriter::writeRcLutFile().
00089 { 00090 unsigned short tower = 999; 00091 unsigned short iphi = rct_iphi; 00092 unsigned short regionPhi = (iphi % 8)/4; 00093 00094 // Note absIeta counts from 1-32 (not 0-31) 00095 if (absIeta <= 24){ 00096 // assume iphi between 0 and 71; makes towers from 0-31, mod. 7Nov07 00097 tower = ((absIeta-1)%8)*4 + (iphi%4); // REMOVED +1 00098 } 00099 // 25 <= absIeta <= 28 (card 6) 00100 else if ((absIeta >= 25) && (absIeta <= 28)){ 00101 if (regionPhi == 0){ 00102 // towers from 0-31, modified 7Nov07 Jessica Leonard 00103 tower = (absIeta-25)*4 + (iphi%4); // REMOVED +1 00104 } 00105 else { 00106 tower = 28 + iphi % 4 + (25 - absIeta) * 4; // mod. 7Nov07 JLL 00107 } 00108 } 00109 // absIeta >= 29 (HF regions) 00110 else if ((absIeta >= 29) && (absIeta <= 32)){ 00111 // SPECIAL DEFINITION OF REGIONPHI FOR HF SINCE HF IPHI IS 0-17 00112 // Sept. 19 J. Leonard 00113 regionPhi = iphi % 2; 00114 // HF MAPPING, just regions now, don't need to worry about towers 00115 // just calling it "tower" for convenience 00116 tower = (regionPhi) * 4 + absIeta - 29; 00117 } 00118 return tower; 00119 }
double L1RCTParameters::eActivityCut | ( | ) | const [inline] |
Definition at line 68 of file L1RCTParameters.h.
References eActivityCut_.
Referenced by L1RCTLookupTables::activityBit().
00068 {return eActivityCut_;}
std::vector<double> L1RCTParameters::eGammaECalScaleFactors | ( | ) | const [inline] |
Definition at line 76 of file L1RCTParameters.h.
References eGammaECalScaleFactors_.
Referenced by L1RCTLookupTables::eGammaETCode(), and L1RCTLookupTables::lookup().
00076 {return eGammaECalScaleFactors_;}
std::vector<double> L1RCTParameters::eGammaHCalScaleFactors | ( | ) | const [inline] |
Definition at line 77 of file L1RCTParameters.h.
References eGammaHCalScaleFactors_.
Referenced by L1RCTLookupTables::eGammaETCode(), and L1RCTLookupTables::lookup().
00077 {return eGammaHCalScaleFactors_;}
double L1RCTParameters::eGammaLSB | ( | ) | const [inline] |
Definition at line 60 of file L1RCTParameters.h.
References eGammaLSB_.
Referenced by L1RCTLookupTables::convertEcal(), and L1RCTLookupTables::eGammaETCode().
00060 {return eGammaLSB_;}
unsigned L1RCTParameters::eicIsolationThreshold | ( | ) | const [inline] |
Definition at line 70 of file L1RCTParameters.h.
References eicIsolationThreshold_.
Referenced by L1RCTLutWriter::analyze(), and L1RCTElectronIsolationCard::calcElectronCandidates().
00070 {return eicIsolationThreshold_;}
double L1RCTParameters::eMaxForFGCut | ( | ) | const [inline] |
Definition at line 63 of file L1RCTParameters.h.
References eMaxForFGCut_.
Referenced by L1RCTLookupTables::hOeFGVetoBit().
00063 {return eMaxForFGCut_;}
double L1RCTParameters::eMaxForHoECut | ( | ) | const [inline] |
Definition at line 66 of file L1RCTParameters.h.
References eMaxForHoECut_.
Referenced by L1RCTLookupTables::hOeFGVetoBit().
00066 {return eMaxForHoECut_;}
double L1RCTParameters::eMinForFGCut | ( | ) | const [inline] |
Definition at line 62 of file L1RCTParameters.h.
References eMinForFGCut_.
Referenced by L1RCTLookupTables::hOeFGVetoBit().
00062 {return eMinForFGCut_;}
double L1RCTParameters::eMinForHoECut | ( | ) | const [inline] |
Definition at line 65 of file L1RCTParameters.h.
References eMinForHoECut_.
Referenced by L1RCTLookupTables::hOeFGVetoBit().
00065 {return eMinForHoECut_;}
double L1RCTParameters::hActivityCut | ( | ) | const [inline] |
Definition at line 69 of file L1RCTParameters.h.
References hActivityCut_.
Referenced by L1RCTLookupTables::activityBit().
00069 {return hActivityCut_;}
double L1RCTParameters::hMinForHoECut | ( | ) | const [inline] |
Definition at line 67 of file L1RCTParameters.h.
References hMinForHoECut_.
Referenced by L1RCTLookupTables::hOeFGVetoBit().
00067 {return hMinForHoECut_;}
double L1RCTParameters::hOeCut | ( | ) | const [inline] |
Definition at line 64 of file L1RCTParameters.h.
References hOeCut_.
Referenced by L1RCTLookupTables::hOeFGVetoBit().
00064 {return hOeCut_;}
std::vector<double> L1RCTParameters::jetMETECalScaleFactors | ( | ) | const [inline] |
Definition at line 78 of file L1RCTParameters.h.
References jetMETECalScaleFactors_.
Referenced by L1RCTLookupTables::jetMETETCode(), and L1RCTLookupTables::lookup().
00078 {return jetMETECalScaleFactors_;}
std::vector<double> L1RCTParameters::jetMETHCalScaleFactors | ( | ) | const [inline] |
Definition at line 79 of file L1RCTParameters.h.
References jetMETHCalScaleFactors_.
Referenced by L1RCTLookupTables::jetMETETCode(), and L1RCTLookupTables::lookup().
00079 {return jetMETHCalScaleFactors_;}
double L1RCTParameters::jetMETLSB | ( | ) | const [inline] |
Definition at line 61 of file L1RCTParameters.h.
References jetMETLSB_.
Referenced by L1RCTLookupTables::convertHcal(), L1RCTLookupTables::jetMETETCode(), and L1RCTLookupTables::lookup().
00061 {return jetMETLSB_;}
unsigned L1RCTParameters::jscQuietThresholdBarrel | ( | ) | const [inline] |
Definition at line 71 of file L1RCTParameters.h.
References jscQuietThresholdBarrel_.
Referenced by L1RCTLutWriter::analyze(), and L1RCTJetSummaryCard::fillQuietBits().
00071 {return jscQuietThresholdBarrel_;}
unsigned L1RCTParameters::jscQuietThresholdEndcap | ( | ) | const [inline] |
Definition at line 72 of file L1RCTParameters.h.
References jscQuietThresholdEndcap_.
Referenced by L1RCTLutWriter::analyze(), and L1RCTJetSummaryCard::fillQuietBits().
00072 {return jscQuietThresholdEndcap_;}
bool L1RCTParameters::noiseVetoHB | ( | ) | const [inline] |
Definition at line 73 of file L1RCTParameters.h.
References noiseVetoHB_.
Referenced by L1RCTLookupTables::lookup().
00073 {return noiseVetoHB_;}
bool L1RCTParameters::noiseVetoHEminus | ( | ) | const [inline] |
Definition at line 75 of file L1RCTParameters.h.
References noiseVetoHEminus_.
Referenced by L1RCTLookupTables::lookup().
00075 {return noiseVetoHEminus_;}
bool L1RCTParameters::noiseVetoHEplus | ( | ) | const [inline] |
Definition at line 74 of file L1RCTParameters.h.
References noiseVetoHEplus_.
Referenced by L1RCTLookupTables::lookup().
00074 {return noiseVetoHEplus_;}
void L1RCTParameters::print | ( | std::ostream & | s | ) | const [inline] |
double L1RCTParameters::eActivityCut_ [private] |
std::vector<double> L1RCTParameters::eGammaECalScaleFactors_ [private] |
std::vector<double> L1RCTParameters::eGammaHCalScaleFactors_ [private] |
double L1RCTParameters::eGammaLSB_ [private] |
unsigned L1RCTParameters::eicIsolationThreshold_ [private] |
double L1RCTParameters::eMaxForFGCut_ [private] |
double L1RCTParameters::eMaxForHoECut_ [private] |
double L1RCTParameters::eMinForFGCut_ [private] |
double L1RCTParameters::eMinForHoECut_ [private] |
double L1RCTParameters::hActivityCut_ [private] |
double L1RCTParameters::hMinForHoECut_ [private] |
double L1RCTParameters::hOeCut_ [private] |
std::vector<double> L1RCTParameters::jetMETECalScaleFactors_ [private] |
std::vector<double> L1RCTParameters::jetMETHCalScaleFactors_ [private] |
double L1RCTParameters::jetMETLSB_ [private] |
unsigned L1RCTParameters::jscQuietThresholdBarrel_ [private] |
unsigned L1RCTParameters::jscQuietThresholdEndcap_ [private] |
bool L1RCTParameters::noiseVetoHB_ [private] |
bool L1RCTParameters::noiseVetoHEminus_ [private] |
bool L1RCTParameters::noiseVetoHEplus_ [private] |