29 cout <<
"L1EmEtScaleRcd :" << endl;
39 cout <<
" L1ColoEcalScale :" << endl;
43 cout <<
" L1ColoHcalScale :" << endl;
50 cout <<
"L1JetEtScaleRcd :" << endl;
55 cout <<
"Testing EM linear-to-rank conversion" << endl;
56 for (
unsigned short i = 0;
i < 32;
i++) {
57 unsigned rank = emScale->
rank(
i);
58 cout <<
"EM linear : " <<
i <<
", Et : " <<
i * emScale->
linearLsb() <<
" GeV, rank : " << rank << endl;
63 cout <<
"Testing jet linear-to-rank conversion" << endl;
64 for (
unsigned short i = 0;
i < 32;
i++) {
66 cout <<
"jet linear : " <<
i <<
", Et : " <<
i *
jetScale->linearLsb() <<
" GeV, rank : " << rank << endl;
71 cout <<
"Testing EM rank-to-Et conversion" << endl;
72 for (
unsigned i = 0;
i < 32;
i++) {
73 double et = emScale->
et(
i);
74 cout <<
"EM rank : " <<
i <<
" Et : " <<
et <<
" GeV" << endl;
79 cout <<
"Testing jet rank-to-Et conversion" << endl;
80 for (
unsigned i = 0;
i < 32;
i++) {
82 cout <<
"jet rank : " <<
i <<
" Et : " <<
et <<
" GeV" << endl;
double et(const uint16_t rank) const
convert from rank to physically meaningful quantity
double linearLsb() const
get LSB of linear input scale
L1ScalesTester(const edm::ParameterSet &)
void analyze(const edm::Event &, const edm::EventSetup &) override
void print(std::ostream &s) const
uint16_t rank(const uint16_t linear) const
convert from linear Et scale to rank scale
~L1ScalesTester() override
void print(std::ostream &s) const
void print(std::ostream &s) const