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" */
27 /* #include "DataFormats/HcalRecHit/interface/HcalRecHitCollections.h" */
28 /* #include "DataFormats/EcalRecHit/interface/EcalRecHitCollections.h" */
29 /* #include "DataFormats/JetReco/interface/CaloJetCollection.h" */
30 /* #include "DataFormats/JetReco/interface/CaloJet.h" */
31 
32 #include <fstream>
33 
34 
35 namespace edm {
36  class ParameterSet;
37  class Event;
38  class EventSetup;
39 }
40 
41 class TFile;
42 class TTree;
43 class CaloGeometry;
44 
45 //
46 // class decleration
47 //
48 namespace cms
49 {
51  public:
52  explicit GammaJetAnalysis(const edm::ParameterSet&);
54 
55  virtual void analyze(const edm::Event&, const edm::EventSetup&);
56  virtual void beginJob() ;
57  virtual void endJob() ;
58 
59  private:
60  // ----------member data ---------------------------
61  // names of modules, producing object collections
62 
73 
74  // stuff for histogramms
75  // output file name with histograms
78  bool useMC;
79  //
80  TFile* hOutputFile ;
81  TTree * myTree;
82  std::ofstream *myout_part;
83  std::ofstream *myout_hcal;
84  std::ofstream *myout_ecal;
85  std::ofstream *myout_jet;
86  std::ofstream *myout_photon;
87  //
89  int run,event;
90  float JetRecoEt[10],JetRecoEta[10],JetRecoPhi[10],JetRecoType[10];
91  float JetGenEt[10],JetGenEta[10],JetGenPhi[10],JetGenType[10];
93  int EcalClusDet[20];
95  float HcalDet[8000],HcalRecoEt[8000],HcalRecoEta[8000],HcalRecoPhi[8000];
96  int Status[4000],Code[4000],Mother1[4000];
97  float partpx[4000],partpy[4000],partpz[4000],parte[4000],partm[4000],partvx[4000];
98  float partvy[4000],partvz[4000],partvt[4000];
99  float risol[3];
100  float ecut[3][3];
101 
102 // Calo geometry
104 
105 };
106 }
107 #endif
GammaJetAnalysis(const edm::ParameterSet &)
std::ofstream * myout_jet
std::ofstream * myout_hcal
std::ofstream * myout_photon
std::ofstream * myout_part
std::ofstream * myout_ecal
const CaloGeometry * geo
virtual void analyze(const edm::Event &, const edm::EventSetup &)