CMS 3D CMS Logo

MuonTiming.h
Go to the documentation of this file.
1 #ifndef DQMOffline_Muon_MuonTiming_H
2 #define DQMOffline_Muon_MuonTiming_H
3 
11 #include <memory>
12 #include <fstream>
19 
22 
25 
26 class MuonTiming : public DQMEDAnalyzer {
27 public:
30 
32  ~MuonTiming() override;
33 
35  void analyze(const edm::Event &, const edm::EventSetup &) override;
36  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
37 
38 private:
39  // ----------member data ---------------------------
40 
42  // Switch for verbosity
44 
45  //histo binning parameters
46  int tnbins_;
51  int ptnbins_;
52  int etanbins_;
53  double tmax_, tmin_;
54  double tmaxrpc_, tminrpc_;
55  double terrmax_, terrmin_;
57  double ndofmax_, ndofmin_;
58  double ptmax_, ptmin_;
59  double etamax_, etamin_;
61 
63  std::vector<std::string> EtaName_, ObjectName_;
64  enum eta_ { overlap, barrel, endcap };
65  enum object_ { sta, glb };
66  //the histos
67  /*
68  std::vector<std::vector<MonitorElement*>> timeNDof_;
69  std::vector<std::vector<MonitorElement*>> timeAtIpInOut_;
70  std::vector<std::vector<MonitorElement*>> timeAtIpInOutRPC_;
71  std::vector<std::vector<MonitorElement*>> timeAtIpInOutErr_;
72  std::vector<std::vector<MonitorElement*>> timeAtIpInOutErrRPC_;
73  std::vector<MonitorElement*> etaptVeto_;
74  std::vector<MonitorElement*> etaVeto_;
75  std::vector<MonitorElement*> ptVeto_;
76  std::vector<MonitorElement*> yields_;
77  */
78  std::array<std::array<MonitorElement *, 1>, 3> timeNDof_;
79  std::array<std::array<MonitorElement *, 1>, 3> timeAtIpInOut_;
80  std::array<std::array<MonitorElement *, 1>, 3> timeAtIpInOutRPC_;
81  std::array<std::array<MonitorElement *, 1>, 3> timeAtIpInOutErr_;
82  std::array<std::array<MonitorElement *, 1>, 3> timeAtIpInOutErrRPC_;
83  std::array<MonitorElement *, 1> etaptVeto_;
84  std::array<MonitorElement *, 1> etaVeto_;
85  std::array<MonitorElement *, 1> ptVeto_;
86  std::array<MonitorElement *, 1> yields_;
87 };
88 #endif
MuonTiming::ndofnbins_
int ndofnbins_
Definition: MuonTiming.h:50
Muon.h
MuonTiming::etaOverlapMin_
double etaOverlapMin_
Definition: MuonTiming.h:60
MuonTiming::terrmaxrpc_
double terrmaxrpc_
Definition: MuonTiming.h:56
edm::Run
Definition: Run.h:45
edm::EDGetTokenT
Definition: EDGetToken.h:33
MuonTiming::etamax_
double etamax_
Definition: MuonTiming.h:59
MuonTiming::ptVeto_
std::array< MonitorElement *, 1 > ptVeto_
Definition: MuonTiming.h:85
MuonTiming::timeNDof_
std::array< std::array< MonitorElement *, 1 >, 3 > timeNDof_
Definition: MuonTiming.h:78
MuonTiming::object_
object_
Definition: MuonTiming.h:65
DQMStore.h
MuonTiming::terrnbins_
int terrnbins_
Definition: MuonTiming.h:48
MuonTiming::timeAtIpInOutRPC_
std::array< std::array< MonitorElement *, 1 >, 3 > timeAtIpInOutRPC_
Definition: MuonTiming.h:80
MuonTiming::etaOverlapMax_
double etaOverlapMax_
Definition: MuonTiming.h:60
MuonTiming::barrel
Definition: MuonTiming.h:64
MuonTiming::ptmin_
double ptmin_
Definition: MuonTiming.h:58
MuonTiming::terrmin_
double terrmin_
Definition: MuonTiming.h:55
MuonTiming::theMuonCollectionLabel_
edm::EDGetTokenT< edm::View< reco::Muon > > theMuonCollectionLabel_
Definition: MuonTiming.h:41
MuonTiming
Definition: MuonTiming.h:26
MuonTiming::etaptVeto_
std::array< MonitorElement *, 1 > etaptVeto_
Definition: MuonTiming.h:83
MakerMacros.h
MuonTiming::etamin_
double etamin_
Definition: MuonTiming.h:59
MuonTiming::timeAtIpInOut_
std::array< std::array< MonitorElement *, 1 >, 3 > timeAtIpInOut_
Definition: MuonTiming.h:79
MuonTiming::sta
Definition: MuonTiming.h:65
MuonTiming::overlap
Definition: MuonTiming.h:64
Service.h
MuonFwd.h
MuonTiming::ptmax_
double ptmax_
Definition: MuonTiming.h:58
MuonTiming::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: MuonTiming.cc:60
MuonTiming::EtaName_
std::vector< std::string > EtaName_
Definition: MuonTiming.h:63
MuonTiming::MuonTiming
MuonTiming(const edm::ParameterSet &)
Constructor.
Definition: MuonTiming.cc:18
MuonTiming::timeAtIpInOutErrRPC_
std::array< std::array< MonitorElement *, 1 >, 3 > timeAtIpInOutErrRPC_
Definition: MuonTiming.h:82
MuonTiming::ptnbins_
int ptnbins_
Definition: MuonTiming.h:51
MuonTiming::tnbins_
int tnbins_
Definition: MuonTiming.h:46
DQMEDAnalyzer.h
MuonTiming::etanbins_
int etanbins_
Definition: MuonTiming.h:52
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1
MuonTiming::timeAtIpInOutErr_
std::array< std::array< MonitorElement *, 1 >, 3 > timeAtIpInOutErr_
Definition: MuonTiming.h:81
MuonTiming::tnbinsrpc_
int tnbinsrpc_
Definition: MuonTiming.h:47
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
MuonTiming::ObjectName_
std::vector< std::string > ObjectName_
Definition: MuonTiming.h:63
MuonTiming::glb
Definition: MuonTiming.h:65
MuonTiming::theFolder_
std::string theFolder_
Definition: MuonTiming.h:62
MuonTiming::etaBarrelMax_
double etaBarrelMax_
Definition: MuonTiming.h:60
edm::EventSetup
Definition: EventSetup.h:58
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
MuonTiming::eta_
eta_
Definition: MuonTiming.h:64
MuonTiming::tmaxrpc_
double tmaxrpc_
Definition: MuonTiming.h:54
MuonTiming::yields_
std::array< MonitorElement *, 1 > yields_
Definition: MuonTiming.h:86
InputTag.h
MuonTiming::tmin_
double tmin_
Definition: MuonTiming.h:53
MuonTiming::endcap
Definition: MuonTiming.h:64
MuonTiming::etaVeto_
std::array< MonitorElement *, 1 > etaVeto_
Definition: MuonTiming.h:84
Frameworkfwd.h
MuonTiming::metname_
std::string metname_
Definition: MuonTiming.h:43
MuonTiming::terrmax_
double terrmax_
Definition: MuonTiming.h:55
MuonTiming::etaEndcapMin_
double etaEndcapMin_
Definition: MuonTiming.h:60
dqm::implementation::IBooker
Definition: DQMStore.h:43
MuonTiming::ndofmin_
double ndofmin_
Definition: MuonTiming.h:57
MuonTiming::tminrpc_
double tminrpc_
Definition: MuonTiming.h:54
ParameterSet.h
MuonTiming::ndofmax_
double ndofmax_
Definition: MuonTiming.h:57
edm::Event
Definition: Event.h:73
MuonTiming::~MuonTiming
~MuonTiming() override
Destructor.
Definition: MuonTiming.cc:58
MuonTiming::terrminrpc_
double terrminrpc_
Definition: MuonTiming.h:56
MuonTiming::terrnbinsrpc_
int terrnbinsrpc_
Definition: MuonTiming.h:49
MuonTiming::tmax_
double tmax_
Definition: MuonTiming.h:53
MuonTiming::etaEndcapMax_
double etaEndcapMax_
Definition: MuonTiming.h:60
MuonTiming::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Inizialize parameters for histo binning.
Definition: MuonTiming.cc:153
MuonTiming::etaBarrelMin_
double etaBarrelMin_
Definition: MuonTiming.h:60