Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef AnalysisJV_H
0002 #define AnalysisJV_H
0003 
0004 // system include files
0005 #include <memory>
0006 #include <iostream>
0007 #include <iomanip>
0008 #include <string>
0009 #include <cmath>
0010 #include <vector>
0011 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0012 #include "TFile.h"
0013 #include "TH1.h"
0014 #include "DataFormats/JetReco/interface/CaloJetCollection.h"
0015 
0016 //
0017 // class decleration
0018 //
0019 
0020 class AnalysisJV : public edm::one::EDAnalyzer<> {
0021 public:
0022   explicit AnalysisJV(const edm::ParameterSet&);
0023   ~AnalysisJV();
0024 
0025 private:
0026   virtual void beginJob();
0027   virtual void analyze(const edm::Event&, const edm::EventSetup&);
0028   virtual void endJob();
0029   std::string fOutputFileName;
0030 
0031   TFile* fOutputFile;
0032   TH1D* fHistAlpha;
0033 
0034   typedef std::vector<double> ResultCollection1;
0035   typedef std::vector<bool> ResultCollection2;
0036 
0037   edm::EDGetTokenT<ResultCollection1> fResult1Token;
0038   edm::EDGetTokenT<ResultCollection2> fResult2Token;
0039   edm::EDGetTokenT<reco::CaloJetCollection> fCaloJetsToken;
0040 };
0041 #endif