00001 #ifndef StarterKit_HistoJet_h
00002 #define StarterKit_HistoJet_h
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038 #include "DataFormats/PatCandidates/interface/Jet.h"
00039 #include "PhysicsTools/StarterKit/interface/HistoGroup.h"
00040
00041
00042 #include <string>
00043
00044
00045 #include <TH1D.h>
00046 #include <TFile.h>
00047
00048 namespace pat {
00049
00050 class HistoJet : public HistoGroup<Jet> {
00051
00052 public:
00053 HistoJet( std::string dir = "jet",std::string group = "Jet",
00054 std::string pre="jet",
00055 double pt1=0, double pt2=200, double m1=0, double m2=200,
00056 TFileDirectory * parentDir=0 );
00057 virtual ~HistoJet();
00058
00059
00060
00061 virtual void fill( const Jet *jet, uint iPart = 1, double weight = 1.0 );
00062 virtual void fill( const Jet &jet, uint iPart = 1, double weight = 1.0 ) { fill(&jet, iPart,weight); }
00063
00064
00065
00066 virtual void fill( const reco::ShallowClonePtrCandidate *jet, uint iPart = 1, double weight = 1.0 );
00067 virtual void fill( const reco::ShallowClonePtrCandidate &jet, uint iPart = 1, double weight = 1.0 )
00068 { fill(&jet, iPart, weight); }
00069
00070 virtual void fillCollection( const std::vector<Jet> & coll, double weight = 1.0 );
00071
00072
00073 void clearVec();
00074 protected:
00075 PhysVarHisto * h_jetFlavour_;
00076 PhysVarHisto * h_BDiscriminant_;
00077 PhysVarHisto * h_jetCharge_;
00078 PhysVarHisto * h_nTrk_;
00079
00080 PhysVarHisto * jetME_;
00081
00082
00083
00084
00085 PhysVarHisto * mE_;
00086 PhysVarHisto * mP_;
00087
00088 PhysVarHisto * mPt_1_;
00089 PhysVarHisto * mPt_2_;
00090 PhysVarHisto * mPt_3_;
00091
00092 PhysVarHisto * mConstituents_;
00093
00094
00095 PhysVarHisto * mEtaFirst_;
00096 PhysVarHisto * mPhiFirst_;
00097 PhysVarHisto * mEFirst_;
00098 PhysVarHisto * mPtFirst_;
00099
00100
00101 PhysVarHisto * mMaxEInEmTowers_;
00102 PhysVarHisto * mMaxEInHadTowers_;
00103 PhysVarHisto * mHadEnergyInHO_;
00104 PhysVarHisto * mHadEnergyInHB_;
00105 PhysVarHisto * mHadEnergyInHF_;
00106 PhysVarHisto * mHadEnergyInHE_;
00107 PhysVarHisto * mEmEnergyInEB_;
00108 PhysVarHisto * mEmEnergyInEE_;
00109 PhysVarHisto * mEmEnergyInHF_;
00110 PhysVarHisto * mEnergyFractionHadronic_;
00111 PhysVarHisto * mEnergyFractionEm_;
00112 PhysVarHisto * mN90_;
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126
00127 };
00128
00129 }
00130 #endif