Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:08:02

0001 #ifndef CentralitypADQM_H
0002 #define CentralitypADQM_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 CentralitypADQM : public DQMEDAnalyzer {
0021 public:
0022   explicit CentralitypADQM(const edm::ParameterSet& ps);
0023   ~CentralitypADQM() 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   // void bookHistos(DQMStore * bei );
0032   //  DQMStore* bei_;
0033 
0034   edm::InputTag centralityTag_;
0035   edm::EDGetTokenT<reco::Centrality> centralityToken;
0036   edm::Handle<reco::Centrality> centrality_;
0037 
0038   edm::InputTag vertexTag_;
0039   edm::EDGetTokenT<std::vector<reco::Vertex> > vertexToken;
0040   edm::Handle<std::vector<reco::Vertex> > vertex_;
0041 
0042   edm::InputTag eventplaneTag_;
0043   edm::EDGetTokenT<reco::EvtPlaneCollection> eventplaneToken;
0044 
0045   edm::InputTag centralityBinTag_;
0046   edm::EDGetTokenT<int> centralityBinToken;
0047   edm::Handle<int> centralityBin_;
0048 
0049   ///////////////////////////
0050   // Histograms
0051   ///////////////////////////
0052 
0053   // Histograms - Centrality
0054   MonitorElement* h_hiNpix;
0055   MonitorElement* h_hiNpixelTracks;
0056   MonitorElement* h_hiNtracks;
0057   MonitorElement* h_hiNtracksPtCut;
0058   MonitorElement* h_hiNtracksEtaCut;
0059   MonitorElement* h_hiNtracksEtaPtCut;
0060   MonitorElement* h_hiHF;
0061   MonitorElement* h_hiHFplus;
0062   MonitorElement* h_hiHFminus;
0063   MonitorElement* h_hiHFplusEta4;
0064   MonitorElement* h_hiHFminusEta4;
0065   MonitorElement* h_hiHFhit;
0066   MonitorElement* h_hiHFhitPlus;
0067   MonitorElement* h_hiHFhitMinus;
0068   MonitorElement* h_hiEB;
0069   MonitorElement* h_hiET;
0070   MonitorElement* h_hiEE;
0071   MonitorElement* h_hiEEplus;
0072   MonitorElement* h_hiEEminus;
0073   MonitorElement* h_hiZDC;
0074   MonitorElement* h_hiZDCplus;
0075   MonitorElement* h_hiZDCminus;
0076   MonitorElement* h_hiPF;
0077   MonitorElement* h_hiPFplus;
0078   MonitorElement* h_hiPFminus;
0079 
0080   MonitorElement* h_vertex_x;
0081   MonitorElement* h_vertex_y;
0082   MonitorElement* h_vertex_z;
0083 
0084   MonitorElement* h_cent_bin;
0085 };
0086 
0087 #endif