File indexing completed on 2024-04-06 12:08:02
0001 #ifndef CentralityDQM_H
0002 #define CentralityDQM_H
0003
0004 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0005 #include "FWCore/Framework/interface/ESHandle.h"
0006 #include "FWCore/Framework/interface/EventSetup.h"
0007 #include "FWCore/Utilities/interface/InputTag.h"
0008 #include "DataFormats/Common/interface/Handle.h"
0009
0010 #include "DataFormats/HeavyIonEvent/interface/Centrality.h"
0011 #include "DataFormats/VertexReco/interface/Vertex.h"
0012
0013 #include "DQMServices/Core/interface/DQMStore.h"
0014 #include "FWCore/ServiceRegistry/interface/Service.h"
0015 #include "DQMServices/Core/interface/DQMEDAnalyzer.h"
0016
0017 #include "DataFormats/HeavyIonEvent/interface/EvtPlane.h"
0018 #include "RecoHI/HiEvtPlaneAlgos/interface/HiEvtPlaneList.h"
0019
0020 class CentralityDQM : public DQMEDAnalyzer {
0021 public:
0022 explicit CentralityDQM(const edm::ParameterSet& ps);
0023 ~CentralityDQM() override;
0024
0025 protected:
0026 void analyze(edm::Event const& e, edm::EventSetup const& eSetup) override;
0027
0028 private:
0029 void bookHistograms(DQMStore::IBooker& bei, edm::Run const&, edm::EventSetup const&) override;
0030
0031
0032
0033
0034
0035
0036
0037 edm::InputTag centralityTag_;
0038 edm::EDGetTokenT<reco::Centrality> centralityToken;
0039 edm::Handle<reco::Centrality> centrality_;
0040
0041 edm::InputTag vertexTag_;
0042 edm::EDGetTokenT<std::vector<reco::Vertex> > vertexToken;
0043 edm::Handle<std::vector<reco::Vertex> > vertex_;
0044
0045 edm::InputTag eventplaneTag_;
0046 edm::EDGetTokenT<reco::EvtPlaneCollection> eventplaneToken;
0047
0048 edm::InputTag centralityBinTag_;
0049 edm::EDGetTokenT<int> centralityBinToken;
0050 edm::Handle<int> centralityBin_;
0051
0052
0053
0054
0055
0056
0057 MonitorElement* h_hiNpix;
0058 MonitorElement* h_hiNpixelTracks;
0059 MonitorElement* h_hiNtracks;
0060 MonitorElement* h_hiNtracksPtCut;
0061 MonitorElement* h_hiNtracksEtaCut;
0062 MonitorElement* h_hiNtracksEtaPtCut;
0063 MonitorElement* h_hiHF;
0064 MonitorElement* h_hiHFplus;
0065 MonitorElement* h_hiHFminus;
0066 MonitorElement* h_hiHFplusEta4;
0067 MonitorElement* h_hiHFminusEta4;
0068 MonitorElement* h_hiHFhit;
0069 MonitorElement* h_hiHFhitPlus;
0070 MonitorElement* h_hiHFhitMinus;
0071 MonitorElement* h_hiEB;
0072 MonitorElement* h_hiET;
0073 MonitorElement* h_hiEE;
0074 MonitorElement* h_hiEEplus;
0075 MonitorElement* h_hiEEminus;
0076 MonitorElement* h_hiZDC;
0077 MonitorElement* h_hiZDCplus;
0078 MonitorElement* h_hiZDCminus;
0079 MonitorElement* h_hiPF;
0080 MonitorElement* h_hiPFplus;
0081 MonitorElement* h_hiPFminus;
0082
0083 MonitorElement* h_vertex_x;
0084 MonitorElement* h_vertex_y;
0085 MonitorElement* h_vertex_z;
0086
0087 MonitorElement* h_cent_bin;
0088
0089 MonitorElement* h_ep_HFm2;
0090 MonitorElement* h_ep_HFp2;
0091 MonitorElement* h_ep_trackmid2;
0092 MonitorElement* h_ep_trackm2;
0093 MonitorElement* h_ep_trackp2;
0094
0095 MonitorElement* h_ep_HFm3;
0096 MonitorElement* h_ep_HFp3;
0097 MonitorElement* h_ep_trackmid3;
0098 };
0099
0100 #endif