CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC4_patch1/src/RecoEgamma/Examples/plugins/SimplePi0DiscAnalyzer.h

Go to the documentation of this file.
00001 #ifndef SimplePi0DiscAnalyzer_h
00002 #define SimplePi0DiscAnalyzer_h
00003 
00004 //
00005 // Package:         RecoEgamma/Examples
00006 // Class:           SimplePi0DiscAnalyzer
00007 //
00008 
00009 //
00010 // Original Author:  A. Kyriakis NCSR "Demokritos" Athens
00011 //                    D Maletic, "Vinca" Belgrade
00012 //         Created:   Mar 27 13:22:06 CEST 2009
00013 // $Id: SimplePi0DiscAnalyzer.h,v 1.3 2011/05/20 17:17:28 wmtan Exp $
00014 //
00015 //
00016 
00017 #include "FWCore/Framework/interface/Event.h"
00018 #include "DataFormats/Common/interface/Handle.h"
00019 #include "FWCore/Framework/interface/ESHandle.h"
00020 #include "FWCore/Framework/interface/EventSetup.h"
00021 #include "FWCore/Framework/interface/EDAnalyzer.h"
00022 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00023 
00024 
00025 #include "DataFormats/EgammaCandidates/interface/Photon.h"
00026 #include "DataFormats/EgammaCandidates/interface/PhotonFwd.h"
00027 
00028 #include "DataFormats/EgammaCandidates/interface/Conversion.h"
00029 #include "DataFormats/EgammaCandidates/interface/ConversionFwd.h"
00030 //#include "DataFormats/EgammaReco/interface/SuperCluster.h"
00031 #include "DataFormats/CaloRecHit/interface/CaloCluster.h"
00032 
00033 #include "DataFormats/EgammaCandidates/interface/PhotonPi0DiscriminatorAssociation.h"
00034 
00035 class MagneticField;
00036 class TFile;
00037 class TH1F;
00038 class TH2F;
00039 class TH1I;
00040 class TProfile;
00041 class TTree;
00042 
00043 class SimplePi0DiscAnalyzer : public edm::EDAnalyzer
00044 {
00045  public:
00046 
00047      explicit SimplePi0DiscAnalyzer(const edm::ParameterSet& conf);
00048  
00049      virtual ~SimplePi0DiscAnalyzer();
00050 
00051      virtual void beginJob();
00052      virtual void endJob();
00053      virtual void analyze(const edm::Event& e, const edm::EventSetup& c);
00054 
00055  private:
00056 
00057      // ----------member data ---------------------------
00058 
00059      std::string photonCollectionProducer_;
00060      std::string photonCollection_;
00061 
00062      std::string outputFile_;
00063      TFile*  rootFile_;
00064 
00065      TH1F* hConv_ntracks_;
00066 
00067      TH1F* hAll_nnout_Assoc_;
00068      TH1F* hAll_nnout_NoConv_Assoc_;
00069      TH1F* hBarrel_nnout_Assoc_;
00070      TH1F* hBarrel_nnout_NoConv_Assoc_;
00071      TH1F* hEndcNoPresh_nnout_Assoc_;
00072      TH1F* hEndcNoPresh_nnout_NoConv_Assoc_;
00073      TH1F* hEndcWithPresh_nnout_Assoc_;
00074      TH1F* hEndcWithPresh_nnout_NoConv_Assoc_;
00075      TH1F* hAll_nnout_NoConv_Assoc_R9_;
00076      TH1F* hBarrel_nnout_NoConv_Assoc_R9_;
00077      TH1F* hEndcNoPresh_nnout_NoConv_Assoc_R9_;
00078      TH1F* hEndcWithPresh_nnout_NoConv_Assoc_R9_;
00079  
00080 };
00081 
00082 #endif
00083 
00084 
00085