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 
20 
22  using namespace edm;
23 
24  const char* detnam[] = {"DT", "RPC barrel", "CSC", "RPC forward"};
25 
26  ESHandle<L1MuTriggerScales> l1muscales;
27  es.get<L1MuTriggerScalesRcd>().get(l1muscales);
28 
29  ESHandle<L1MuTriggerPtScale> l1muptscale;
30  es.get<L1MuTriggerPtScaleRcd>().get(l1muptscale);
31 
32  cout << "**** L1 Mu Pt Scale print *****************************************" << endl;
33  printScale(l1muptscale->getPtScale());
34 
35  cout << "**** L1 Mu Phi Scale print *****************************************" << endl;
36  printScale(l1muscales->getPhiScale());
37 
38  cout << "**** L1 Mu GMT eta Scale print *************************************" << endl;
39  printScale(l1muscales->getGMTEtaScale());
40 
41  for (int i = 0; i < 4; i++) {
42  cout << "**** L1 Mu " << detnam[i] << " eta Scale print **************************************" << endl;
43  printScale(l1muscales->getRegionalEtaScale(i));
44  }
45 
46  ESHandle<L1MuGMTScales> l1gmtscales;
47  es.get<L1MuGMTScalesRcd>().get(l1gmtscales);
48 
49  for (int i = 0; i < 4; i++) {
50  cout << "**** L1 GMT " << detnam[i] << " reduced eta Scale print **************************************" << endl;
51  printScale(l1gmtscales->getReducedEtaScale(i));
52  }
53 
54  cout << "**** L1 GMT delta eta Scale print *************************************" << endl;
55  printScale(l1gmtscales->getDeltaEtaScale(0));
56 
57  cout << "**** L1 GMT delta phi Scale print *************************************" << endl;
58  printScale(l1gmtscales->getDeltaPhiScale());
59 
60  for (int i = 0; i < 4; i++) {
61  cout << "**** L1 GMT " << detnam[i] << " overlap eta Scale print **************************************" << endl;
62  printScale(l1gmtscales->getOvlEtaScale(i));
63  }
64 
65  // cout << "**** L1 GMT calo eta Scale print *************************************" << endl;
66  // printScale(l1gmtscales->getCaloEtaScale());
67 }
68 
69 void L1MuScalesTester::printScale(const L1MuScale* l1muscale) { cout << l1muscale->print(); }
const L1MuScale * getGMTEtaScale() const
get the GMT eta scale
const L1MuScale * getPhiScale() const
get the phi scale
void analyze(const edm::Event &, const edm::EventSetup &) override
const L1MuScale * getPtScale() const
get the Pt scale
const L1MuScale * getRegionalEtaScale(int isys) const
get the regioanl muon trigger eta scale, isys = 0(DT), 1(bRPC), 2(CSC), 3(fwdRPC) ...
T get() const
Definition: EventSetup.h:82
const L1MuScale * getDeltaPhiScale() const
get the delta phi scale ( 3 bits)
void printScale(const L1MuScale *)
const L1MuScale * getReducedEtaScale(int isys) const
get the recuced eta scale for matching in the overlap region (4 bit); isys = 0(DT), 1(bRPC), 2(CSC), 3(fwdRPC)
const L1MuScale * getOvlEtaScale(int isys) const
get the overlap eta scale (4 bits); isys = 0(DT), 1(bRPC), 2(CSC), 3(fwdRPC)
HLT enums.
~L1MuScalesTester() override
const L1MuScale * getDeltaEtaScale(int idx) const
get the delta eta scale; idx = 0(DT=RPC), 1(CSC-RPC), 2(DT-CSC), 3(CSC-DT), 4(bRPC-CSC), 5(fRPC-DT)
virtual std::string print() const =0
L1MuScalesTester(const edm::ParameterSet &)