Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-10-07 01:21:08

0001 
0002 #ifndef PyquenAnalyzer_H
0003 #define PyquenAnalyzer_H
0004 
0005 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0006 
0007 #include "SimDataFormats/GeneratorProducts/interface/HepMCProduct.h"
0008 
0009 #include "FWCore/Utilities/interface/EDGetToken.h"
0010 #include "FWCore/Framework/interface/ConsumesCollector.h"
0011 
0012 // forward declarations
0013 class TFile;
0014 class TH1D;
0015 
0016 class PyquenAnalyzer : public edm::one::EDAnalyzer<> {  //analyzer module to analyze pythia events
0017 public:
0018   explicit PyquenAnalyzer(const edm::ParameterSet&);
0019   virtual ~PyquenAnalyzer() {}
0020 
0021   void analyze(const edm::Event&, const edm::EventSetup&) final;
0022   void beginJob() final;
0023   void endJob() final;
0024 
0025   edm::EDGetTokenT<edm::HepMCProduct> srcT_;
0026 
0027 private:
0028   TH1D* phdNdEta;  // histogram for dN/deta
0029   TH1D* phdNdY;    // histogram for dN/dy
0030   TH1D* phdNdPt;   // histogram for dN/dpt
0031   TH1D* phdNdPhi;  // histogram for dN/dphi
0032 };
0033 
0034 #endif