CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GammaJetAnalysis.h
Go to the documentation of this file.
1 #ifndef GammaJetAnalysis_h
2 #define GammaJetAnalysis_h
3 // system include files
4 #include <memory>
5 #include <string>
6 #include <iostream>
7 #include <map>
8 
9 // user include files
10 // #include "FWCore/Framework/interface/Frameworkfwd.h"
13 /* #include "FWCore/Framework/interface/Event.h" */
14 /* #include "FWCore/Framework/interface/MakerMacros.h" */
15 /* #include "FWCore/Framework/interface/ESHandle.h" */
16 /* #include "FWCore/Framework/interface/EventSetup.h" */
17 /* #include "FWCore/ParameterSet/interface/ParameterSet.h" */
18 
19 /* #include "DataFormats/Common/interface/Ref.h" */
20 /* #include "DataFormats/DetId/interface/DetId.h" */
21 
22 /* #include "Geometry/Records/interface/IdealGeometryRecord.h" */
23 /* #include "Geometry/CaloGeometry/interface/CaloGeometry.h" */
24 /* #include "Geometry/Vector/interface/GlobalPoint.h" */
25 /* #include "DataFormats/CaloTowers/interface/CaloTowerCollection.h" */
26 /* #include "DataFormats/CaloTowers/interface/CaloTowerDetId.h" */
30 /* #include "DataFormats/JetReco/interface/CaloJet.h" */
32 
33 #include <fstream>
34 
35 
36 namespace edm {
37  class ParameterSet;
38  class Event;
39  class EventSetup;
40 }
41 
42 class TFile;
43 class TTree;
44 class CaloGeometry;
45 
46 //
47 // class decleration
48 //
49 namespace cms
50 {
52  public:
53  explicit GammaJetAnalysis(const edm::ParameterSet&);
55 
56  virtual void analyze(const edm::Event&, const edm::EventSetup&);
57  virtual void beginJob() ;
58  virtual void endJob() ;
59 
60  private:
61  // ----------member data ---------------------------
62  // names of modules, producing object collections
63 
74 
81 
82  // stuff for histogramms
83  // output file name with histograms
86  bool useMC;
87  //
88  TFile* hOutputFile ;
89  TTree * myTree;
90  std::ofstream *myout_part;
91  std::ofstream *myout_hcal;
92  std::ofstream *myout_ecal;
93  std::ofstream *myout_jet;
94  std::ofstream *myout_photon;
95  //
97  int run,event;
98  float JetRecoEt[10],JetRecoEta[10],JetRecoPhi[10],JetRecoType[10];
99  float JetGenEt[10],JetGenEta[10],JetGenPhi[10],JetGenType[10];
101  int EcalClusDet[20];
103  float HcalDet[8000],HcalRecoEt[8000],HcalRecoEta[8000],HcalRecoPhi[8000];
104  int Status[4000],Code[4000],Mother1[4000];
105  float partpx[4000],partpy[4000],partpz[4000],parte[4000],partm[4000],partvx[4000];
106  float partvy[4000],partvz[4000],partvt[4000];
107  float risol[3];
108  float ecut[3][3];
109 
110 // Calo geometry
112 
113 };
114 }
115 #endif
GammaJetAnalysis(const edm::ParameterSet &)
std::ofstream * myout_jet
edm::EDGetTokenT< HFRecHitCollection > tok_hf_
std::ofstream * myout_hcal
std::ofstream * myout_photon
edm::EDGetTokenT< EcalRecHitCollection > tok_ecal_
std::ofstream * myout_part
std::ofstream * myout_ecal
edm::EDGetTokenT< HORecHitCollection > tok_ho_
const CaloGeometry * geo
virtual void analyze(const edm::Event &, const edm::EventSetup &)
edm::EDGetTokenT< reco::CaloJetCollection > tok_jets_
edm::EDGetTokenT< reco::SuperClusterCollection > tok_egamma_
edm::EDGetTokenT< HBHERecHitCollection > tok_hbhe_