CMS 3D CMS Logo

L1MuScalesTester.cc
Go to the documentation of this file.
2 
5 
12 
13 #include <iomanip>
14 using std::cout;
15 using std::endl;
16 
18 }
19 
21 }
22 
24  using namespace edm;
25 
26  const char* detnam[]={ "DT", "RPC barrel", "CSC", "RPC forward" };
27 
29  es.get< L1MuTriggerScalesRcd >().get( l1muscales ) ;
30 
31  ESHandle< L1MuTriggerPtScale > l1muptscale ;
32  es.get< L1MuTriggerPtScaleRcd >().get( l1muptscale ) ;
33 
34  cout << "**** L1 Mu Pt Scale print *****************************************" << endl;
35  printScale(l1muptscale->getPtScale());
36 
37  cout << "**** L1 Mu Phi Scale print *****************************************" << endl;
38  printScale(l1muscales->getPhiScale());
39 
40  cout << "**** L1 Mu GMT eta Scale print *************************************" << endl;
41  printScale(l1muscales->getGMTEtaScale());
42 
43  for(int i=0; i<4; i++) {
44 
45  cout << "**** L1 Mu " << detnam[i] << " eta Scale print **************************************" << endl;
46  printScale(l1muscales->getRegionalEtaScale(i));
47 
48  }
49 
50  ESHandle< L1MuGMTScales > l1gmtscales ;
51  es.get< L1MuGMTScalesRcd >().get( l1gmtscales ) ;
52 
53  for(int i=0; i<4; i++) {
54 
55  cout << "**** L1 GMT " << detnam[i] << " reduced eta Scale print **************************************" << endl;
56  printScale(l1gmtscales->getReducedEtaScale(i));
57 
58  }
59 
60  cout << "**** L1 GMT delta eta Scale print *************************************" << endl;
61  printScale(l1gmtscales->getDeltaEtaScale(0));
62 
63  cout << "**** L1 GMT delta phi Scale print *************************************" << endl;
64  printScale(l1gmtscales->getDeltaPhiScale());
65 
66  for(int i=0; i<4; i++) {
67 
68  cout << "**** L1 GMT " << detnam[i] << " overlap eta Scale print **************************************" << endl;
69  printScale(l1gmtscales->getOvlEtaScale(i));
70 
71  }
72 
73 // cout << "**** L1 GMT calo eta Scale print *************************************" << endl;
74 // printScale(l1gmtscales->getCaloEtaScale());
75 
76 
77 
78 }
79 
80 void L1MuScalesTester::printScale(const L1MuScale* l1muscale) {
81 
82 
83  cout << l1muscale->print();
84 
85 }
int i
Definition: DBlmapReader.cc:9
const L1MuScale * getPtScale() const
get the Pt scale
virtual void analyze(const edm::Event &, const edm::EventSetup &)
const L1MuScale * getPhiScale() const
get the phi scale
virtual std::string print() const =0
void printScale(const L1MuScale *)
const T & get() const
Definition: EventSetup.h:56
const L1MuScale * getRegionalEtaScale(int isys) const
get the regioanl muon trigger eta scale, isys = 0(DT), 1(bRPC), 2(CSC), 3(fwdRPC) ...
HLT enums.
const L1MuScale * getGMTEtaScale() const
get the GMT eta scale
L1MuScalesTester(const edm::ParameterSet &)