16 cout <<
"Constructing a L1ScalesTester" << endl;
24 cout <<
"L1EmEtScaleRcd :" << endl;
32 cout <<
" L1ColoEcalScale :" << endl;
36 cout <<
" L1ColoHcalScale :" << endl;
42 cout <<
"L1JetEtScaleRcd :" << endl;
47 cout <<
"Testing EM linear-to-rank conversion" << endl;
48 for (
unsigned short i = 0;
i < 32;
i++) {
49 unsigned rank = emScale.
rank(
i);
50 cout <<
"EM linear : " <<
i <<
", Et : " <<
i * emScale.
linearLsb() <<
" GeV, rank : " << rank << endl;
55 cout <<
"Testing jet linear-to-rank conversion" << endl;
56 for (
unsigned short i = 0;
i < 32;
i++) {
58 cout <<
"jet linear : " <<
i <<
", Et : " <<
i *
jetScale.linearLsb() <<
" GeV, rank : " << rank << endl;
63 cout <<
"Testing EM rank-to-Et conversion" << endl;
64 for (
unsigned i = 0;
i < 32;
i++) {
65 double et = emScale.
et(
i);
66 cout <<
"EM rank : " <<
i <<
" Et : " <<
et <<
" GeV" << endl;
71 cout <<
"Testing jet rank-to-Et conversion" << endl;
72 for (
unsigned i = 0;
i < 32;
i++) {
74 cout <<
"jet rank : " <<
i <<
" Et : " <<
et <<
" GeV" << endl;
const edm::ESGetToken< L1CaloEtScale, L1JetEtScaleRcd > jetScaleToken_
const edm::ESGetToken< L1CaloEcalScale, L1CaloEcalScaleRcd > ecalScaleToken_
double et(const uint16_t rank) const
convert from rank to physically meaningful quantity
double linearLsb() const
get LSB of linear input scale
bool getData(T &iHolder) const
L1ScalesTester(const edm::ParameterSet &)
void analyze(const edm::Event &, const edm::EventSetup &) override
const edm::ESGetToken< L1CaloHcalScale, L1CaloHcalScaleRcd > hcalScaleToken_
const edm::ESGetToken< L1CaloEtScale, L1EmEtScaleRcd > emScaleToken_
void print(std::ostream &s) const
uint16_t rank(const uint16_t linear) const
convert from linear Et scale to rank scale
void print(std::ostream &s) const
void print(std::ostream &s) const