CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
std::array< std::array< MonitorElement *, 1 >, 3 > timeAtIpInOutErrRPC_
Definition: MuonTiming.h:82
std::string metname_
Definition: MuonTiming.h:43
std::array< std::array< MonitorElement *, 1 >, 3 > timeAtIpInOutRPC_
Definition: MuonTiming.h:80
std::array< std::array< MonitorElement *, 1 >, 3 > timeAtIpInOut_
Definition: MuonTiming.h:79
int terrnbinsrpc_
Definition: MuonTiming.h:49
int tnbins_
Definition: MuonTiming.h:46
int etanbins_
Definition: MuonTiming.h:52
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: MuonTiming.cc:60
double tmin_
Definition: MuonTiming.h:53
double tminrpc_
Definition: MuonTiming.h:54
std::array< MonitorElement *, 1 > etaVeto_
Definition: MuonTiming.h:84
std::array< MonitorElement *, 1 > ptVeto_
Definition: MuonTiming.h:85
double etamax_
Definition: MuonTiming.h:59
double tmaxrpc_
Definition: MuonTiming.h:54
std::array< std::array< MonitorElement *, 1 >, 3 > timeAtIpInOutErr_
Definition: MuonTiming.h:81
double terrminrpc_
Definition: MuonTiming.h:56
double etaOverlapMin_
Definition: MuonTiming.h:60
std::vector< std::string > ObjectName_
Definition: MuonTiming.h:63
std::array< std::array< MonitorElement *, 1 >, 3 > timeNDof_
Definition: MuonTiming.h:78
void analyze(const edm::Event &, const edm::EventSetup &) override
Inizialize parameters for histo binning.
Definition: MuonTiming.cc:153
double etaEndcapMin_
Definition: MuonTiming.h:60
~MuonTiming() override
Destructor.
Definition: MuonTiming.cc:58
double ndofmin_
Definition: MuonTiming.h:57
double etaBarrelMin_
Definition: MuonTiming.h:60
double ptmin_
Definition: MuonTiming.h:58
edm::EDGetTokenT< edm::View< reco::Muon > > theMuonCollectionLabel_
Definition: MuonTiming.h:41
std::array< MonitorElement *, 1 > etaptVeto_
Definition: MuonTiming.h:83
double etamin_
Definition: MuonTiming.h:59
int ptnbins_
Definition: MuonTiming.h:51
double terrmax_
Definition: MuonTiming.h:55
double ndofmax_
Definition: MuonTiming.h:57
int tnbinsrpc_
Definition: MuonTiming.h:47
double etaOverlapMax_
Definition: MuonTiming.h:60
double etaEndcapMax_
Definition: MuonTiming.h:60
double terrmin_
Definition: MuonTiming.h:55
double terrmaxrpc_
Definition: MuonTiming.h:56
int ndofnbins_
Definition: MuonTiming.h:50
std::vector< std::string > EtaName_
Definition: MuonTiming.h:63
MuonTiming(const edm::ParameterSet &)
Constructor.
Definition: MuonTiming.cc:18
double tmax_
Definition: MuonTiming.h:53
int terrnbins_
Definition: MuonTiming.h:48
double ptmax_
Definition: MuonTiming.h:58
std::array< MonitorElement *, 1 > yields_
Definition: MuonTiming.h:86
Definition: Run.h:45
std::string theFolder_
Definition: MuonTiming.h:62
double etaBarrelMax_
Definition: MuonTiming.h:60