CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Private Attributes
L1TStage2OMTF Class Reference

#include <L1TStage2OMTF.h>

Inheritance diagram for L1TStage2OMTF:
one::DQMEDAnalyzer< T > one::dqmimplementation::DQMBaseClass< T... >

Public Member Functions

 L1TStage2OMTF (const edm::ParameterSet &ps)
 
 ~L1TStage2OMTF () override
 
- Public Member Functions inherited from one::DQMEDAnalyzer< T >
 DQMEDAnalyzer ()=default
 
 DQMEDAnalyzer (DQMEDAnalyzer< T... > const &)=delete
 
 DQMEDAnalyzer (DQMEDAnalyzer< T... > &&)=delete
 
 ~DQMEDAnalyzer () override=default
 

Protected Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void bookHistograms (DQMStore::IBooker &, const edm::Run &, const edm::EventSetup &) override
 
void dqmBeginRun (const edm::Run &, const edm::EventSetup &) override
 

Private Attributes

float global_phi
 
std::string monitorDir
 
MonitorElementomtf_bx
 
MonitorElementomtf_hwEta
 
MonitorElementomtf_hwEta_bx
 
MonitorElementomtf_hwEta_hwLocalPhi
 
MonitorElementomtf_hwLocalPhi
 
MonitorElementomtf_hwLocalPhi_bx
 
MonitorElementomtf_hwPt
 
MonitorElementomtf_hwPt_bx
 
MonitorElementomtf_hwPt_hwEta
 
MonitorElementomtf_hwPt_hwLocalPhi
 
MonitorElementomtf_hwQual
 
MonitorElementomtf_hwQual_bx
 
MonitorElementomtf_proc
 
edm::InputTag omtfSource
 
edm::EDGetToken omtfToken
 
bool verbose
 

Detailed Description

Definition at line 35 of file L1TStage2OMTF.h.

Constructor & Destructor Documentation

L1TStage2OMTF::L1TStage2OMTF ( const edm::ParameterSet ps)

Definition at line 9 of file L1TStage2OMTF.cc.

References edm::ParameterSet::getParameter(), and omtfToken.

9  :
10  monitorDir(ps.getUntrackedParameter<std::string>("monitorDir","")),
11  omtfSource(ps.getParameter<edm::InputTag>("omtfSource")),
12  verbose(ps.getUntrackedParameter<bool>("verbose", false)),
13  global_phi(-1000)
14 {
15  omtfToken=consumes<l1t::RegionalMuonCandBxCollection>(ps.getParameter<edm::InputTag>("omtfSource"));
16 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
std::string monitorDir
Definition: L1TStage2OMTF.h:53
edm::InputTag omtfSource
Definition: L1TStage2OMTF.h:54
edm::EDGetToken omtfToken
Definition: L1TStage2OMTF.h:56
L1TStage2OMTF::~L1TStage2OMTF ( )
override

Definition at line 18 of file L1TStage2OMTF.cc.

19 {
20 }

Member Function Documentation

void L1TStage2OMTF::analyze ( const edm::Event eve,
const edm::EventSetup eveSetup 
)
overrideprotected

Definition at line 59 of file L1TStage2OMTF.cc.

References BXVector< T >::begin(), BXVector< T >::end(), MonitorElement::Fill(), edm::Event::getByToken(), BXVector< T >::getFirstBX(), BXVector< T >::getLastBX(), omtf_bx, omtf_hwEta, omtf_hwEta_bx, omtf_hwEta_hwLocalPhi, omtf_hwLocalPhi, omtf_hwLocalPhi_bx, omtf_hwPt, omtf_hwPt_bx, omtf_hwPt_hwEta, omtf_hwPt_hwLocalPhi, omtf_hwQual, omtf_hwQual_bx, and omtfToken.

60 {
61  if (verbose) {
62  edm::LogInfo("L1TStage2OMTF") << "L1TStage2OMTF: analyze...." << std::endl;
63  }
64 
66  eve.getByToken(omtfToken, omtfMuon);
67 
68  for(int itBX=omtfMuon->getFirstBX(); itBX<=omtfMuon->getLastBX(); ++itBX)
69  {
70  for(l1t::RegionalMuonCandBxCollection::const_iterator itMuon = omtfMuon->begin(itBX); itMuon != omtfMuon->end(itBX); ++itMuon)
71  {
72 
73  omtf_hwEta->Fill(itMuon->hwEta());
74  omtf_hwLocalPhi->Fill(itMuon->hwPhi());
75  omtf_hwPt->Fill(itMuon->hwPt());
76  omtf_hwQual->Fill(itMuon->hwQual());
77 
78  omtf_bx->Fill(itBX);
79  omtf_hwEta_bx->Fill(itMuon->hwEta(), itBX);
80  omtf_hwLocalPhi_bx->Fill(itMuon->hwPhi(), itBX);
81  omtf_hwPt_bx->Fill(itMuon->hwPt(), itBX);
82  omtf_hwQual_bx->Fill(itMuon->hwQual(), itBX);
83 
84  omtf_hwEta_hwLocalPhi->Fill(itMuon->hwEta(),itMuon->hwPhi());
85  omtf_hwPt_hwEta->Fill(itMuon->hwPt(), itMuon->hwEta());
86  omtf_hwPt_hwLocalPhi->Fill(itMuon->hwPt(), itMuon->hwPhi());
87 
88  }
89  }
90 }
const_iterator end(int bx) const
MonitorElement * omtf_hwQual
Definition: L1TStage2OMTF.h:62
MonitorElement * omtf_hwPt
Definition: L1TStage2OMTF.h:61
MonitorElement * omtf_hwPt_hwEta
Definition: L1TStage2OMTF.h:67
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:517
MonitorElement * omtf_hwLocalPhi
Definition: L1TStage2OMTF.h:60
MonitorElement * omtf_hwEta_bx
Definition: L1TStage2OMTF.h:70
void Fill(long long x)
MonitorElement * omtf_hwLocalPhi_bx
Definition: L1TStage2OMTF.h:71
MonitorElement * omtf_hwEta_hwLocalPhi
Definition: L1TStage2OMTF.h:66
MonitorElement * omtf_hwQual_bx
Definition: L1TStage2OMTF.h:73
MonitorElement * omtf_hwEta
Definition: L1TStage2OMTF.h:59
MonitorElement * omtf_hwPt_hwLocalPhi
Definition: L1TStage2OMTF.h:68
int getFirstBX() const
edm::EDGetToken omtfToken
Definition: L1TStage2OMTF.h:56
MonitorElement * omtf_bx
Definition: L1TStage2OMTF.h:64
int getLastBX() const
const_iterator begin(int bx) const
std::vector< RegionalMuonCand >::const_iterator const_iterator
Definition: BXVector.h:20
MonitorElement * omtf_hwPt_bx
Definition: L1TStage2OMTF.h:72
void L1TStage2OMTF::bookHistograms ( DQMStore::IBooker ibooker,
const edm::Run iRun,
const edm::EventSetup eveSetup 
)
overrideprotected

Definition at line 27 of file L1TStage2OMTF.cc.

References DQMStore::IBooker::book1D(), DQMStore::IBooker::book2D(), monitorDir, omtf_bx, omtf_hwEta, omtf_hwEta_bx, omtf_hwEta_hwLocalPhi, omtf_hwLocalPhi, omtf_hwLocalPhi_bx, omtf_hwPt, omtf_hwPt_bx, omtf_hwPt_hwEta, omtf_hwPt_hwLocalPhi, omtf_hwQual, omtf_hwQual_bx, DQMStore::IBooker::setCurrentFolder(), and MonitorElement::setTitle().

28 {
30 
31  omtf_hwEta = ibooker.book1D("omtf_hwEta", "HW #eta", 447, -223.5, 223.5);
32  omtf_hwLocalPhi = ibooker.book1D("omtf_hwLocalPhi", "HW Local #phi", 201, -100.5, 100.5);
33  omtf_hwPt = ibooker.book1D("omtf_hwPt", "HW p_{T}", 511, -0.5, 510.5);
34  omtf_hwQual= ibooker.book1D("omtf_hwQual" , "HW Quality", 20, -0.5, 19.5);
35  omtf_bx = ibooker.book1D("omtf_bx","BX", 5, -2.5, 2.5);
36 
37  omtf_hwEta_hwLocalPhi = ibooker.book2D("omtf_hwEta_hwLocalPhi", "HW #eta vs HW Local #phi" , 447, -223.5, 223.5, 201, -100.5, 100.5);
38  omtf_hwEta_hwLocalPhi->setTitle(";HW #eta; HW Local #phi");
39 
40  omtf_hwPt_hwEta = ibooker.book2D("omtf_hwPt_hwEta" , "HW p_{T} vs HW #eta", 511, -0.5, 510.5, 447, -223.5, 223.5);
41  omtf_hwPt_hwEta->setTitle(";HW p_{T}; HW #eta");
42 
43  omtf_hwPt_hwLocalPhi = ibooker.book2D("omtf_hwPt_hwLocalPhi" , "HW p_{T} vs HW Local #phi", 511, -0.5, 510.5, 201, -100.5, 100.5);
44  omtf_hwPt_hwLocalPhi->setTitle(";HW p_{T}; HW Local #phi");
45 
46  omtf_hwEta_bx = ibooker.book2D("omtf_hwEta_bx" , "HW #eta vs BX" , 447, -223.5, 223.5, 5, -2.5, 2.5);
47  omtf_hwEta_bx->setTitle(";HW #eta; BX");
48 
49  omtf_hwLocalPhi_bx = ibooker.book2D("omtf_hwLocalPhi_bx" , "HW Local #phi vs BX" , 201, -100.5, 100.5, 5, -2.5, 2.5);
50  omtf_hwLocalPhi_bx->setTitle(";HW Local #phi; BX");
51 
52  omtf_hwPt_bx = ibooker.book2D("omtf_hwPt_bx" , "HW p_{T} vs BX" , 511, -0.5, 510.5, 5, -2.5, 2.5);
53  omtf_hwPt_bx->setTitle(";HW p_{T}; BX");
54 
55  omtf_hwQual_bx = ibooker.book2D("omtf_hwQual_bx" , "HW Quality vs BX" , 20, -0.5, 19.5, 5, -2.5, 2.5);
56  omtf_hwQual_bx->setTitle("; HW Quality; BX");
57 }
MonitorElement * omtf_hwQual
Definition: L1TStage2OMTF.h:62
MonitorElement * omtf_hwPt
Definition: L1TStage2OMTF.h:61
MonitorElement * omtf_hwPt_hwEta
Definition: L1TStage2OMTF.h:67
MonitorElement * omtf_hwLocalPhi
Definition: L1TStage2OMTF.h:60
std::string monitorDir
Definition: L1TStage2OMTF.h:53
MonitorElement * omtf_hwEta_bx
Definition: L1TStage2OMTF.h:70
MonitorElement * omtf_hwLocalPhi_bx
Definition: L1TStage2OMTF.h:71
MonitorElement * omtf_hwEta_hwLocalPhi
Definition: L1TStage2OMTF.h:66
void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:268
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:106
MonitorElement * omtf_hwQual_bx
Definition: L1TStage2OMTF.h:73
MonitorElement * omtf_hwEta
Definition: L1TStage2OMTF.h:59
void setTitle(const std::string &title)
set (ie. change) histogram/profile title
MonitorElement * omtf_hwPt_hwLocalPhi
Definition: L1TStage2OMTF.h:68
MonitorElement * book2D(Args &&...args)
Definition: DQMStore.h:109
MonitorElement * omtf_bx
Definition: L1TStage2OMTF.h:64
MonitorElement * omtf_hwPt_bx
Definition: L1TStage2OMTF.h:72
void L1TStage2OMTF::dqmBeginRun ( const edm::Run iRrun,
const edm::EventSetup eveSetup 
)
overrideprotected

Definition at line 22 of file L1TStage2OMTF.cc.

23 {
24 }

Member Data Documentation

float L1TStage2OMTF::global_phi
private

Definition at line 57 of file L1TStage2OMTF.h.

std::string L1TStage2OMTF::monitorDir
private

Definition at line 53 of file L1TStage2OMTF.h.

Referenced by bookHistograms().

MonitorElement* L1TStage2OMTF::omtf_bx
private

Definition at line 64 of file L1TStage2OMTF.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* L1TStage2OMTF::omtf_hwEta
private

Definition at line 59 of file L1TStage2OMTF.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* L1TStage2OMTF::omtf_hwEta_bx
private

Definition at line 70 of file L1TStage2OMTF.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* L1TStage2OMTF::omtf_hwEta_hwLocalPhi
private

Definition at line 66 of file L1TStage2OMTF.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* L1TStage2OMTF::omtf_hwLocalPhi
private

Definition at line 60 of file L1TStage2OMTF.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* L1TStage2OMTF::omtf_hwLocalPhi_bx
private

Definition at line 71 of file L1TStage2OMTF.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* L1TStage2OMTF::omtf_hwPt
private

Definition at line 61 of file L1TStage2OMTF.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* L1TStage2OMTF::omtf_hwPt_bx
private

Definition at line 72 of file L1TStage2OMTF.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* L1TStage2OMTF::omtf_hwPt_hwEta
private

Definition at line 67 of file L1TStage2OMTF.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* L1TStage2OMTF::omtf_hwPt_hwLocalPhi
private

Definition at line 68 of file L1TStage2OMTF.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* L1TStage2OMTF::omtf_hwQual
private

Definition at line 62 of file L1TStage2OMTF.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* L1TStage2OMTF::omtf_hwQual_bx
private

Definition at line 73 of file L1TStage2OMTF.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* L1TStage2OMTF::omtf_proc
private

Definition at line 63 of file L1TStage2OMTF.h.

edm::InputTag L1TStage2OMTF::omtfSource
private

Definition at line 54 of file L1TStage2OMTF.h.

edm::EDGetToken L1TStage2OMTF::omtfToken
private

Definition at line 56 of file L1TStage2OMTF.h.

Referenced by analyze(), and L1TStage2OMTF().

bool L1TStage2OMTF::verbose
private