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 
23 
25 
28 
29 class MuonTiming : public DQMEDAnalyzer {
30  public:
31 
34 
36  ~MuonTiming() override;
37 
39  void analyze(const edm::Event&, const edm::EventSetup&) override;
40  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
41 
42  private:
43  // ----------member data ---------------------------
45 
47  // Switch for verbosity
49 
50 
51  //histo binning parameters
52  int tnbins_;
57  int ptnbins_;
58  int etanbins_;
59  double tmax_, tmin_;
60  double tmaxrpc_, tminrpc_;
61  double terrmax_, terrmin_;
63  double ndofmax_, ndofmin_;
64  double ptmax_, ptmin_;
65  double etamax_, etamin_;
67 
69  std::vector<std::string> EtaName_, ObjectName_;
71  enum object_ {sta, glb};
72  //the histos
73  /*
74  std::vector<std::vector<MonitorElement*>> timeNDof_;
75  std::vector<std::vector<MonitorElement*>> timeAtIpInOut_;
76  std::vector<std::vector<MonitorElement*>> timeAtIpInOutRPC_;
77  std::vector<std::vector<MonitorElement*>> timeAtIpInOutErr_;
78  std::vector<std::vector<MonitorElement*>> timeAtIpInOutErrRPC_;
79  std::vector<MonitorElement*> etaptVeto_;
80  std::vector<MonitorElement*> etaVeto_;
81  std::vector<MonitorElement*> ptVeto_;
82  std::vector<MonitorElement*> yields_;
83  */
84  std::array<std::array<MonitorElement*,1>,3> timeNDof_;
85  std::array<std::array<MonitorElement*,1>,3> timeAtIpInOut_;
86  std::array<std::array<MonitorElement*,1>,3> timeAtIpInOutRPC_;
87  std::array<std::array<MonitorElement*,1>,3> timeAtIpInOutErr_;
88  std::array<std::array<MonitorElement*,1>,3> timeAtIpInOutErrRPC_;
89  std::array<MonitorElement*,1> etaptVeto_;
90  std::array<MonitorElement*,1> etaVeto_;
91  std::array<MonitorElement*,1> ptVeto_;
92  std::array<MonitorElement*,1> yields_;
93 
94 
95 };
96 #endif
std::string metname_
Definition: MuonTiming.h:48
int terrnbinsrpc_
Definition: MuonTiming.h:55
std::array< MonitorElement *, 1 > etaptVeto_
Definition: MuonTiming.h:89
int tnbins_
Definition: MuonTiming.h:52
std::array< std::array< MonitorElement *, 1 >, 3 > timeAtIpInOutRPC_
Definition: MuonTiming.h:86
int etanbins_
Definition: MuonTiming.h:58
std::array< std::array< MonitorElement *, 1 >, 3 > timeAtIpInOutErrRPC_
Definition: MuonTiming.h:88
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: MuonTiming.cc:66
double tmin_
Definition: MuonTiming.h:59
double tminrpc_
Definition: MuonTiming.h:60
double etamax_
Definition: MuonTiming.h:65
double tmaxrpc_
Definition: MuonTiming.h:60
std::array< MonitorElement *, 1 > yields_
Definition: MuonTiming.h:92
std::array< std::array< MonitorElement *, 1 >, 3 > timeAtIpInOut_
Definition: MuonTiming.h:85
double terrminrpc_
Definition: MuonTiming.h:62
double etaOverlapMin_
Definition: MuonTiming.h:66
std::vector< std::string > ObjectName_
Definition: MuonTiming.h:69
void analyze(const edm::Event &, const edm::EventSetup &) override
Inizialize parameters for histo binning.
Definition: MuonTiming.cc:130
double etaEndcapMin_
Definition: MuonTiming.h:66
std::array< MonitorElement *, 1 > etaVeto_
Definition: MuonTiming.h:90
~MuonTiming() override
Destructor.
Definition: MuonTiming.cc:62
double ndofmin_
Definition: MuonTiming.h:63
double etaBarrelMin_
Definition: MuonTiming.h:66
double ptmin_
Definition: MuonTiming.h:64
edm::EDGetTokenT< edm::View< reco::Muon > > theMuonCollectionLabel_
Definition: MuonTiming.h:46
std::array< MonitorElement *, 1 > ptVeto_
Definition: MuonTiming.h:91
double etamin_
Definition: MuonTiming.h:65
int ptnbins_
Definition: MuonTiming.h:57
double terrmax_
Definition: MuonTiming.h:61
double ndofmax_
Definition: MuonTiming.h:63
int tnbinsrpc_
Definition: MuonTiming.h:53
std::array< std::array< MonitorElement *, 1 >, 3 > timeAtIpInOutErr_
Definition: MuonTiming.h:87
double etaOverlapMax_
Definition: MuonTiming.h:66
double etaEndcapMax_
Definition: MuonTiming.h:66
double terrmin_
Definition: MuonTiming.h:61
double terrmaxrpc_
Definition: MuonTiming.h:62
int ndofnbins_
Definition: MuonTiming.h:56
std::vector< std::string > EtaName_
Definition: MuonTiming.h:69
MuonServiceProxy * theService
Definition: MuonTiming.h:44
MuonTiming(const edm::ParameterSet &)
Constructor.
Definition: MuonTiming.cc:20
double tmax_
Definition: MuonTiming.h:59
int terrnbins_
Definition: MuonTiming.h:54
double ptmax_
Definition: MuonTiming.h:64
Definition: Run.h:45
std::string theFolder_
Definition: MuonTiming.h:68
std::array< std::array< MonitorElement *, 1 >, 3 > timeNDof_
Definition: MuonTiming.h:84
double etaBarrelMax_
Definition: MuonTiming.h:66