20 cout <<
"Constructing a L1ScalesTester" << endl;
33 cout <<
"L1EmEtScaleRcd :" << endl;
43 cout <<
" L1ColoEcalScale :" << endl;
47 cout <<
" L1ColoHcalScale :" << endl;
54 cout <<
"L1JetEtScaleRcd :" << endl;
59 cout <<
"Testing EM linear-to-rank conversion" << endl;
60 for (
unsigned short i=0;
i<32;
i++) {
61 unsigned rank = emScale->
rank(
i);
62 cout <<
"EM linear : " <<
i <<
", Et : " <<
i*emScale->
linearLsb() <<
" GeV, rank : " << rank << endl;
67 cout <<
"Testing jet linear-to-rank conversion" << endl;
68 for (
unsigned short i=0;
i<32;
i++) {
69 unsigned rank = jetScale->
rank(
i);
70 cout <<
"jet linear : " <<
i <<
", Et : " <<
i*jetScale->
linearLsb() <<
" GeV, rank : " << rank << endl;
75 cout <<
"Testing EM rank-to-Et conversion" << endl;
76 for (
unsigned i=0;
i<32;
i++) {
77 double et = emScale->
et(
i);
78 cout <<
"EM rank : " <<
i <<
" Et : " << et <<
" GeV" << endl;
83 cout <<
"Testing jet rank-to-Et conversion" << endl;
84 for (
unsigned i=0;
i<32;
i++) {
85 double et = jetScale->
et(
i);
86 cout <<
"jet rank : " <<
i <<
" Et : " << et <<
" GeV" << endl;
void print(std::ostream &s) const
double et(const uint16_t rank) const
convert from rank to physically meaningful quantity
double linearLsb() const
get LSB of linear input scale
uint16_t rank(const uint16_t linear) const
convert from linear Et scale to rank scale
void print(std::ostream &s) const
L1ScalesTester(const edm::ParameterSet &)
void print(std::ostream &s) const
void analyze(const edm::Event &, const edm::EventSetup &) override
et
define resolution functions of each parameter
~L1ScalesTester() override