#include <L1TriggerConfig/L1ScalesProducer/interface/L1ScalesTester.h>
Public Member Functions | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) |
L1ScalesTester (const edm::ParameterSet &) | |
~L1ScalesTester () |
Implementation: <Notes on="" implementation>="">
Definition at line 31 of file L1ScalesTester.h.
L1ScalesTester::L1ScalesTester | ( | const edm::ParameterSet & | ps | ) | [explicit] |
Definition at line 13 of file L1ScalesTester.cc.
References GenMuonPlsPt100GeV_cfg::cout, and lat::endl().
L1ScalesTester::~L1ScalesTester | ( | ) |
void L1ScalesTester::analyze | ( | const edm::Event & | e, | |
const edm::EventSetup & | es | |||
) | [virtual] |
Implements edm::EDAnalyzer.
Definition at line 21 of file L1ScalesTester.cc.
References GenMuonPlsPt100GeV_cfg::cout, lat::endl(), edm::EventSetup::get(), and i.
00021 { 00022 using namespace edm; 00023 00024 ESHandle< L1CaloEtScale > emScale ; 00025 es.get< L1EmEtScaleRcd >().get( emScale ) ; 00026 00027 cout << "L1EmEtScaleRcd :" << endl; 00028 emScale->print(cout); 00029 cout << endl; 00030 00031 ESHandle< L1CaloEtScale > jetScale ; 00032 es.get< L1JetEtScaleRcd >().get( jetScale ) ; 00033 00034 cout << "L1JetEtScaleRcd :" << endl; 00035 jetScale->print(cout); 00036 cout << endl; 00037 00038 // test EM lin-rank conversion 00039 cout << "Testing EM linear-to-rank conversion" << endl; 00040 for (unsigned short i=0; i<32; i++) { 00041 unsigned rank = emScale->rank(i); 00042 cout << "EM linear : " << i << ", Et : " << i*emScale->linearLsb() << " GeV, rank : " << rank << endl; 00043 } 00044 cout << endl; 00045 00046 // test jet lin-rank conversion 00047 cout << "Testing jet linear-to-rank conversion" << endl; 00048 for (unsigned short i=0; i<32; i++) { 00049 unsigned rank = jetScale->rank(i); 00050 cout << "jet linear : " << i << ", Et : " << i*jetScale->linearLsb() << " GeV, rank : " << rank << endl; 00051 } 00052 cout << endl; 00053 00054 // test EM rank-et conversion 00055 cout << "Testing EM rank-to-Et conversion" << endl; 00056 for (unsigned i=0; i<32; i++) { 00057 double et = emScale->et(i); 00058 cout << "EM rank : " << i << " Et : " << et << " GeV" << endl; 00059 } 00060 cout << endl; 00061 00062 // test jet rank-et conversion 00063 cout << "Testing jet rank-to-Et conversion" << endl; 00064 for (unsigned i=0; i<32; i++) { 00065 double et = jetScale->et(i); 00066 cout << "jet rank : " << i << " Et : " << et << " GeV" << endl; 00067 } 00068 cout << endl; 00069 00070 00071 }