ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/SCerci/interface/ForwardJet_v1.h
Revision: 1.1
Committed: Thu Sep 13 13:52:20 2007 UTC (17 years, 7 months ago) by salim
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Log Message:
*** empty log message ***

File Contents

# Content
1
2 /////////////////////////////////////////////////////
3 // //
4 // Original Author: Salim Cerci //
5 // Created: Sep 10 18:50:23 CET 2007 //
6 // //
7 // //
8 /////////////////////////////////////////////////////
9 #ifndef ForwardJet_H
10 #define ForwardJet_H
11
12
13 #include <memory>
14 #include "FWCore/MessageLogger/interface/MessageLogger.h"
15 #include "FWCore/Framework/interface/EDAnalyzer.h"
16 #include "FWCore/Framework/interface/Frameworkfwd.h"
17 #include "FWCore/Framework/interface/Event.h"
18 #include "FWCore/Framework/interface/MakerMacros.h"
19 #include "FWCore/ParameterSet/interface/ParameterSet.h"
20 #include "RecoBTag/MCTools/interface/JetFlavourIdentifier.h"
21 #include "RecoBTag/MCTools/interface/MCParticleInfo.h"
22 #include "RecoBTag/MCTools/interface/MCBaseParticle.h"
23 #include "RecoBTag/MCTools/interface/MCParton.h"
24 class TTree;
25 class TF1;
26 class TFile;
27 class TH1D;
28 class TH2D;
29 class TProfile;
30 class TH2F;
31
32 class ForwardJet : public edm::EDAnalyzer
33 {
34
35 public:
36
37 //
38 explicit ForwardJet( const edm::ParameterSet& ) ;
39 virtual ~ForwardJet() {} // no need to delete ROOT stuff
40 // as it'll be deleted upon closing TFile
41
42 virtual void analyze( const edm::Event&, const edm::EventSetup&) ;
43 virtual void beginJob( const edm::EventSetup& ) ;
44 virtual void endJob() ;
45 float delR(const float&,const float&,const float&,const float&);
46 int determineIndex( double* , double , int );
47 private:
48
49 //
50 JetFlavourIdentifier jfi;
51 std::string fOutputFileName;
52 std::string objectAnalyzed;
53 std::string CorJetAlgorithm;
54 std::string OutPutFile;
55 TFile* fOutputFile;
56 TTree* RecGenTree;
57 TH2D* distX_hf;
58 TH2D* distX_castor;
59 TH2D* distX_1_hf;
60 TH2D* distX_Matching_parton_hf;
61 TH2D* Min_DeltaR_02;
62 TH2D* Min_DeltaR_04;
63 TH2D* Min_DeltaR_06;
64 TH2D* Min_DeltaR_08;
65 TH2D* Min_DeltaR_1;
66 TH2D* Min_DeltaR_2;
67 TH2D* Min_DeltaR_5;
68 TH2D* Min_DeltaR_8;
69 TH1D* checkdistX_hf;
70 TH1D* ptGen;
71 TH1D* yGen;
72 TH1D* phiGen;
73 TH1D* EGen;
74 TH1D* ptCalo;
75 TH1D* corr_ptCalo;
76 TH1D* yCalo;
77 TH1D* phiCalo;
78 TH1D* ECalo;
79 TH1D* corr_ECalo;
80 TH1D* trueRecoJet;
81 TH1D* ratioE;
82 TH1D* sigmaErEm;
83 TH1D* pid_highx_parton;
84 TH1D* RecJetEt_cut;
85 TH1D* EThist[11];
86 TH1D* Etahist[11];
87 TH1D* Phihist[11];
88 TH1D* EGen_hf;
89 TH1D* ECalo_hf;
90 TH1D* corr_ECalo_hf;
91 TH1D* ERec;
92 TH1D* checkX;
93 TH1D* Min_DeltaR;
94 TProfile* RatioE_vs_Eta;
95 TProfile* RatioE_vs_E;
96 TProfile* RatioE_hf_vs_Eta;
97 TProfile* RatioE_hf_vs_E;
98 TH1D* pid_Allx_parton;
99 int nbreBins;
100 int nbinspt;
101 int nbinsphi;
102 int nbinsE;
103 int nbinsEta;
104 int nbinsBjoX;
105 double ptmin; //GeV
106 double ptmax; //GeV
107 double ymin;
108 double ymax;
109 double BjoXmin;
110 double BjoXmax;
111 double phimin;
112 double phimax ;
113 double Emin; //GeV
114 double Emax; //GeV
115 double ETCut; //GeV
116 double PtCut; //GeV
117 double threeshold;
118 double sqrts;//Gev
119 float BjoX;//Bjorken-x
120 char nameHist [50];
121 char nameHist1 [50];
122 char nameHist2 [50];
123 char label [500];
124 char label1 [500];
125 char label2 [500];
126 int countD;
127 int trueIndex;
128 double limBins[11];
129 double ESim;
130 float Min_deltaR;
131 float sigma;
132 };
133 #endif