Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-12-16 00:33:16

0001 #ifndef HZZ4muAnalyzer_H
0002 #define HZZ4muAnalyzer_H
0003 
0004 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0005 
0006 #include "SimDataFormats/GeneratorProducts/interface/HepMCProduct.h"
0007 
0008 // forward declarations
0009 class TFile;
0010 class TH1D;
0011 
0012 class HZZ4muAnalyzer : public edm::one::EDAnalyzer<> {
0013 public:
0014   //
0015   explicit HZZ4muAnalyzer(const edm::ParameterSet&);
0016   virtual ~HZZ4muAnalyzer() {}  // no need to delete ROOT stuff
0017                                 // as it'll be deleted upon closing TFile
0018 
0019   virtual void analyze(const edm::Event&, const edm::EventSetup&) override;
0020   virtual void beginJob() override;
0021   virtual void endJob() override;
0022 
0023 private:
0024   //
0025   edm::EDGetTokenT<edm::HepMCProduct> fToken;
0026   std::string fOutputFileName;
0027   TFile* fOutputFile;
0028   TH1D* fHist2muMass;
0029   TH1D* fHist4muMass;
0030   TH1D* fHistZZMass;
0031 };
0032 
0033 #endif