00001 #ifndef RecoExamples_myFastSimVal_h
00002 #define RecoExamples_myFastSimVal_h
00003 #include <TH1.h>
00004 #include <TProfile.h>
00005
00006
00007
00008
00009
00010
00011
00012 #include "FWCore/Framework/interface/EDAnalyzer.h"
00013
00014 class TFile;
00015
00016 class myFastSimVal : public edm::EDAnalyzer {
00017 public:
00018 myFastSimVal( const edm::ParameterSet & );
00019
00020 private:
00021 void beginJob( );
00022 void analyze( const edm::Event& , const edm::EventSetup& );
00023 void endJob();
00024 std::string CaloJetAlgorithm1, CaloJetAlgorithm2, CaloJetAlgorithm3,
00025 CaloJetAlgorithm4;
00026 std::string GenJetAlgorithm1, GenJetAlgorithm2, GenJetAlgorithm3,
00027 GenJetAlgorithm4;
00028 std::string JetCorrectionService;
00029
00030 TProfile hf_TowerDelR1, hf_TowerDelR2, hf_TowerDelR3;
00031 TProfile hf_TowerDelR12, hf_TowerDelR22, hf_TowerDelR32;
00032 TProfile hf_nJet1, hf_nJet2, hf_nJet3, hf_nJet4;
00033 TProfile hf_nJet1s, hf_nJet2s, hf_nJet3s, hf_nJet4s;
00034 TProfile hf_nJet11, hf_nJet21, hf_nJet31, hf_nJet41;
00035 TProfile hf_PtResponse1, hf_PtResponse2, hf_PtResponse3, hf_PtResponse4;
00036
00037 TH1F hf_sumTowerAllEx, hf_sumTowerAllEy;
00038 TH1F SumEt1, MET1;
00039 TH1F SumEt12, MET12;
00040 TH1F SumEt13, MET13;
00041 TH1F hf_TowerJetEt1;
00042
00043 TH1F nTowers1, nTowers2, nTowers3, nTowers4;
00044 TH1F nTowersLeadJetPt1, nTowersLeadJetPt2, nTowersLeadJetPt3, nTowersLeadJetPt4;
00045 TH1F totEneLeadJetEta1_1, totEneLeadJetEta2_1, totEneLeadJetEta3_1;
00046 TH1F hadEneLeadJetEta1_1, hadEneLeadJetEta2_1, hadEneLeadJetEta3_1;
00047 TH1F emEneLeadJetEta1_1, emEneLeadJetEta2_1, emEneLeadJetEta3_1;
00048 TH1F totEneLeadJetEta1_2, totEneLeadJetEta2_2, totEneLeadJetEta3_2;
00049 TH1F hadEneLeadJetEta1_2, hadEneLeadJetEta2_2, hadEneLeadJetEta3_2;
00050 TH1F emEneLeadJetEta1_2, emEneLeadJetEta2_2, emEneLeadJetEta3_2;
00051
00052 TH1F matchedAllPt11, matchedAllPt12, matchedAllPt13;
00053 TH1F matchedAllPt21, matchedAllPt22, matchedAllPt23;
00054 TH1F matchedAllPt31, matchedAllPt32, matchedAllPt33;
00055 TH1F matchedAllPt41, matchedAllPt42, matchedAllPt43;
00056 TH1F matchedPt11, matchedPt12, matchedPt13;
00057 TH1F matchedPt21, matchedPt22, matchedPt23;
00058 TH1F matchedPt31, matchedPt32, matchedPt33;
00059 TH1F matchedPt41, matchedPt42, matchedPt43;
00060
00061 TH1F hadEneLeadJet1, hadEneLeadJet2, hadEneLeadJet3;
00062 TH1F hadEneLeadJet12, hadEneLeadJet22, hadEneLeadJet32;
00063 TH1F hadEneLeadJet13, hadEneLeadJet23, hadEneLeadJet33;
00064 TH1F emEneLeadJet1, emEneLeadJet2, emEneLeadJet3;
00065 TH1F emEneLeadJet12, emEneLeadJet22, emEneLeadJet32;
00066 TH1F emEneLeadJet13, emEneLeadJet23, emEneLeadJet33;
00067 TH1F hadFracEta11, hadFracEta21, hadFracEta31;
00068 TH1F hadFracEta12, hadFracEta22, hadFracEta32;
00069 TH1F hadFracEta13, hadFracEta23, hadFracEta33;
00070 TH1F hadFracLeadJet1, nTowersLeadJet1, nTowersSecondJet1;
00071 TH1F hadFracLeadJet2, nTowersLeadJet2, nTowersSecondJet2;
00072 TH1F hadFracLeadJet3, nTowersLeadJet3, nTowersSecondJet3;
00073 TH1F TowerEtLeadJet1, TowerEtLeadJet2, TowerEtLeadJet3;
00074 TH1F TowerEtLeadJet12, TowerEtLeadJet22, TowerEtLeadJet32;
00075 TH1F TowerEtLeadJet13, TowerEtLeadJet23, TowerEtLeadJet33;
00076 TH1F ZpMass, ZpMassGen, ZpMassGen10, ZpMassGen13, ZpMassGen40;
00077 TH1F ZpMass_700_10, ZpMass_700_13, ZpMass_700_40;
00078 TH1F ZpMassGen_700_10, ZpMassGen_700_13, ZpMassGen_700_40;
00079 TH1F ZpMass_2000_10, ZpMass_2000_13, ZpMass_2000_40;
00080 TH1F ZpMassGen_2000_10, ZpMassGen_2000_13, ZpMassGen_2000_40;
00081 TH1F ZpMass_5000_10, ZpMass_5000_13, ZpMass_5000_40;
00082 TH1F ZpMassGen_5000_10, ZpMassGen_5000_13, ZpMassGen_5000_40;
00083 TH1F topMassParton, topMass1, topMass2, topMass3;
00084
00085 TH1F tMass, tbarMass;
00086 TH1F tMassGen, tbarMassGen;
00087 TH1F ZpMassResL101, ZpMassResL102, ZpMassResL103;
00088 TH1F ZpMassResL131, ZpMassResL132, ZpMassResL133;
00089 TH1F ZpMassResL401, ZpMassResL402, ZpMassResL403;
00090 TH1F ZpMassResRL101, ZpMassResRL102, ZpMassResRL103;
00091 TH1F ZpMassResRL131, ZpMassResRL132, ZpMassResRL133;
00092 TH1F ZpMassResRL401, ZpMassResRL402, ZpMassResRL403;
00093 TH1F ZpMassResRLoP101, ZpMassResRLoP102, ZpMassResRLoP103;
00094 TH1F ZpMassResRLoP131, ZpMassResRLoP132, ZpMassResRLoP133;
00095 TH1F ZpMassResRLoP401, ZpMassResRLoP402, ZpMassResRLoP403;
00096 TH1F ZpMassResPRL101, ZpMassResPRL102, ZpMassResPRL103;
00097 TH1F ZpMassResPRL131, ZpMassResPRL132, ZpMassResPRL133;
00098 TH1F ZpMassResPRL401, ZpMassResPRL402, ZpMassResPRL403;
00099 TH1F ZpMassRes101, ZpMassRes102, ZpMassRes103;
00100 TH1F ZpMassRes131, ZpMassRes132, ZpMassRes133;
00101 TH1F ZpMassRes401, ZpMassRes402, ZpMassRes403;
00102
00103 TH1F dijetMassCor_700_1,dijetMassCor_700_101,dijetMassCor_700_131,dijetMassCor_700_401;
00104 TH1F dijetMassCor_2000_1,dijetMassCor_2000_101,dijetMassCor_2000_131,dijetMassCor_2000_401;
00105 TH1F dijetMassCor_5000_1,dijetMassCor_5000_101,dijetMassCor_5000_131,dijetMassCor_5000_401;
00106
00107 TH1F ZpMassMatched1, ZpMassMatched2, ZpMassMatched3;
00108 TH1F dijetMass1, dijetMass2, dijetMass3, dijetMass4;
00109 TH1F dijetMass12, dijetMass22, dijetMass32, dijetMass42;
00110 TH1F dijetMass13, dijetMass23, dijetMass33, dijetMass43;
00111 TH1F dijetMass101, dijetMass131, dijetMass401;
00112 TH1F dijetMass102, dijetMass132, dijetMass402;
00113 TH1F dijetMass103, dijetMass133, dijetMass403;
00114 TH1F dijetMass_700_101, dijetMass_700_131, dijetMass_700_401;
00115 TH1F dijetMass_2000_101, dijetMass_2000_131, dijetMass_2000_401;
00116 TH1F dijetMass_5000_101, dijetMass_5000_131, dijetMass_5000_401;
00117 TH1F dijetMassP1, dijetMassP2, dijetMassP3;
00118 TH1F dijetMassP101, dijetMassP131, dijetMassP401;
00119
00120 TH1F dijetMassP_700_101, dijetMassP_700_131, dijetMassP_700_401;
00121 TH1F dijetMassP_2000_101, dijetMassP_2000_131, dijetMassP_2000_401;
00122 TH1F dijetMassP_5000_101, dijetMassP_5000_131, dijetMassP_5000_401;
00123
00124 TH1F dijetMassCor1, dijetMassCor101, dijetMassCor131, dijetMassCor401;
00125
00126 TH1F dRPar1, dPhiPar1, dEtaPar1, dPtPar1;
00127 TH1F dRPar2, dPhiPar2, dEtaPar2, dPtPar2;
00128 TH1F dRPar3, dPhiPar3, dEtaPar3, dPtPar3;
00129 TH1F dRPar4, dPhiPar4, dEtaPar4, dPtPar4;
00130
00131 TH1F dRParton, dRPartonMin;
00132 TH1F dR1, dPhi1, dEta1, dPt1, dPtFrac1, dPt20Frac1, dPt40Frac1, dPt80Frac1, dPt100Frac1;
00133 TH1F dR2, dPhi2, dEta2, dPt2, dPtFrac2, dPt20Frac2, dPt40Frac2, dPt80Frac2, dPt100Frac2;
00134 TH1F dR3, dPhi3, dEta3, dPt3, dPtFrac3, dPt20Frac3, dPt40Frac3, dPt80Frac3, dPt100Frac3;
00135 TH1F dR4, dPhi4, dEta4, dPt4, dPtFrac4, dPt20Frac4, dPt40Frac4, dPt80Frac4, dPt100Frac4;
00136 TH1F dR12, dPhi12, dEta12, dPt12;
00137 TH1F h_nCalJets1, h_nCalJets2, h_nCalJets3, h_nCalJets4;
00138 TH1F h_nGenJets1, h_nGenJets2, h_nGenJets3, h_nGenJets4;
00139
00140 TH1F h_ptCal1, h_etaCal1, h_phiCal1;
00141 TH1F h_ptCal2, h_etaCal2, h_phiCal2;
00142 TH1F h_ptCal3, h_etaCal3, h_phiCal3;
00143 TH1F h_ptCal4, h_etaCal4, h_phiCal4;
00144 TH1F h_ptCal12, h_ptCal22, h_ptCal32, h_ptCal42;
00145 TH1F h_ptCal13, h_ptCal23, h_ptCal33, h_ptCal43;
00146
00147 TH1F h_ptCalL1, h_etaCalL1, h_phiCalL1;
00148 TH1F h_ptCalL2, h_etaCalL2, h_phiCalL2;
00149 TH1F h_ptCalL3, h_etaCalL3, h_phiCalL3;
00150 TH1F h_ptCalL4, h_etaCalL4, h_phiCalL4;
00151 TH1F h_ptCalL12, h_ptCalL22, h_ptCalL32, h_ptCalL42;
00152 TH1F h_ptCalL13, h_ptCalL23, h_ptCalL33, h_ptCalL43;
00153
00154 TH1F h_ptGen1, h_etaGen1, h_phiGen1;
00155 TH1F h_ptGen2, h_etaGen2, h_phiGen2;
00156 TH1F h_ptGen3, h_etaGen3, h_phiGen3;
00157 TH1F h_ptGen4, h_etaGen4, h_phiGen4;
00158
00159 TH1F h_ptGen12, h_ptGen22, h_ptGen32, h_ptGen42;
00160 TH1F h_ptGen13, h_ptGen23, h_ptGen33, h_ptGen43;
00161
00162 TH1F h_ptGenL1, h_etaGenL1, h_phiGenL1;
00163 TH1F h_ptGenL2, h_etaGenL2, h_phiGenL2;
00164 TH1F h_ptGenL3, h_etaGenL3, h_phiGenL3;
00165 TH1F h_ptGenL12, h_ptGenL22, h_ptGenL32;
00166 TH1F h_ptGenL13, h_ptGenL23, h_ptGenL33;
00167
00168 TH1F h_jetEt1, h_jetEt2, h_jetEt3;
00169 TH1F h_missEt1s,h_missEt2s, h_missEt3s;
00170 TH1F h_missEt1,h_missEt2, h_missEt3;
00171 TH1F h_totMissEt1,h_totMissEt2, h_totMissEt3;
00172
00173 TH1F h_lowPtCal11, h_lowPtCal21, h_lowPtCal31, h_lowPtCal41;
00174 TH1F h_lowPtCal12, h_lowPtCal22, h_lowPtCal32, h_lowPtCal42;
00175 TH1F h_lowPtCal13, h_lowPtCal23, h_lowPtCal33, h_lowPtCal43;
00176
00177 TH1F h_lowPtCal1c11, h_lowPtCal2c11, h_lowPtCal3c11, h_lowPtCal4c11;
00178 TH1F h_lowPtCal1c12, h_lowPtCal2c12, h_lowPtCal3c12, h_lowPtCal4c12;
00179 TH1F h_lowPtCal1c13, h_lowPtCal2c13, h_lowPtCal3c13, h_lowPtCal4c13;
00180
00181 TH1F h_jet1Pt1, h_jet2Pt1, h_jet3Pt1, h_jet4Pt1, h_jet5Pt1,
00182 h_jet6Pt1, h_jet7Pt1;
00183 TH1F h_jet1Pt2, h_jet2Pt2, h_jet3Pt2, h_jet4Pt2, h_jet5Pt2,
00184 h_jet6Pt2, h_jet7Pt2;
00185 TH1F h_jet1Pt3, h_jet2Pt3, h_jet3Pt3, h_jet4Pt3, h_jet5Pt3,
00186 h_jet6Pt3, h_jet7Pt3;
00187 TH1F h_jet1Pt4, h_jet2Pt4, h_jet3Pt4, h_jet4Pt4, h_jet5Pt4,
00188 h_jet6Pt4, h_jet7Pt4;
00189
00190 TH1F ParMatch1, ParMatch2, ParMatch3;
00191
00192
00193 TFile* m_file;
00194 };
00195
00196 #endif