CMS 3D CMS Logo

L1MuScalesTester.cc
Go to the documentation of this file.
2 
5 
6 #include <iomanip>
7 using std::cout;
8 using std::endl;
9 
11  : l1muscalesToken_(esConsumes()), l1muptscaleToken_(esConsumes()), l1gmtscalesToken_(esConsumes()) {}
12 
14  using namespace edm;
15 
16  const char* detnam[] = {"DT", "RPC barrel", "CSC", "RPC forward"};
17 
18  L1MuTriggerScales const& l1muscales = es.getData(l1muscalesToken_);
19 
20  L1MuTriggerPtScale const& l1muptscale = es.getData(l1muptscaleToken_);
21 
22  cout << "**** L1 Mu Pt Scale print *****************************************" << endl;
23  printScale(l1muptscale.getPtScale());
24 
25  cout << "**** L1 Mu Phi Scale print *****************************************" << endl;
26  printScale(l1muscales.getPhiScale());
27 
28  cout << "**** L1 Mu GMT eta Scale print *************************************" << endl;
29  printScale(l1muscales.getGMTEtaScale());
30 
31  for (int i = 0; i < 4; i++) {
32  cout << "**** L1 Mu " << detnam[i] << " eta Scale print **************************************" << endl;
33  printScale(l1muscales.getRegionalEtaScale(i));
34  }
35 
36  L1MuGMTScales const& l1gmtscales = es.getData(l1gmtscalesToken_);
37 
38  for (int i = 0; i < 4; i++) {
39  cout << "**** L1 GMT " << detnam[i] << " reduced eta Scale print **************************************" << endl;
40  printScale(l1gmtscales.getReducedEtaScale(i));
41  }
42 
43  cout << "**** L1 GMT delta eta Scale print *************************************" << endl;
44  printScale(l1gmtscales.getDeltaEtaScale(0));
45 
46  cout << "**** L1 GMT delta phi Scale print *************************************" << endl;
47  printScale(l1gmtscales.getDeltaPhiScale());
48 
49  for (int i = 0; i < 4; i++) {
50  cout << "**** L1 GMT " << detnam[i] << " overlap eta Scale print **************************************" << endl;
51  printScale(l1gmtscales.getOvlEtaScale(i));
52  }
53 
54  // cout << "**** L1 GMT calo eta Scale print *************************************" << endl;
55  // printScale(l1gmtscales.getCaloEtaScale());
56 }
57 
58 void L1MuScalesTester::printScale(const L1MuScale* l1muscale) { cout << l1muscale->print(); }
const L1MuScale * getGMTEtaScale() const
get the GMT eta scale
ESGetTokenH3DDVariant esConsumes(std::string const &Record, edm::ConsumesCollector &)
Definition: DeDxTools.cc:283
edm::ESGetToken< L1MuTriggerPtScale, L1MuTriggerPtScaleRcd > l1muptscaleToken_
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
edm::ESGetToken< L1MuGMTScales, L1MuGMTScalesRcd > l1gmtscalesToken_
const L1MuScale * getRegionalEtaScale(int isys) const
get the regioanl muon trigger eta scale, isys = 0(DT), 1(bRPC), 2(CSC), 3(fwdRPC) ...
bool getData(T &iHolder) const
Definition: EventSetup.h:122
edm::ESGetToken< L1MuTriggerScales, L1MuTriggerScalesRcd > l1muscalesToken_
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.
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 &)