ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/HbbAnalysis/src/HistosBase.cc
Revision: 1.2
Committed: Fri Apr 17 14:26:35 2009 UTC (16 years ago) by amagnan
Content type: text/plain
Branch: MAIN
Changes since 1.1: +7 -1 lines
Log Message:
add Tau histos+debug btag for JPT/PF jets

File Contents

# Content
1 #include <iostream>
2 #include <fstream>
3
4 #include "UserCode/HbbAnalysis/interface/HistosBase.hh"
5
6 namespace HbbAnalysis {//namespace
7
8 HistosBase::HistosBase():
9 debug_(0)
10 {}
11
12 void HistosBase::CreateHistos(std::string aObj, TFileDirectory aDir, unsigned short aDebug){
13
14 debug_ = aDebug;
15
16 std::ostringstream lName;
17
18 lName << "p_pT_" << aObj;
19 p_pT = aDir.make<TH1F>(lName.str().c_str(),";p_{T} (GeV); n_{entries}/GeV",200,0.,200.);
20 lName.str("");
21
22 lName << "p_eta_" << aObj;
23 p_eta = aDir.make<TH1F>(lName.str().c_str(),";#eta;n_{entries}",80,-4,4);
24 lName.str("");
25
26 lName << "p_phi_" << aObj;
27 p_phi = aDir.make<TH1F>(lName.str().c_str(),";#phi;n_{entries}",64,-3.2,3.2);
28 lName.str("");
29
30 lName << "p_pTvseta_" << aObj;
31 p_pTvseta = aDir.make<TH2F>(lName.str().c_str(),";#eta;p_{T} (GeV)",80,-4,4,200,0,200);
32 lName.str("");
33
34 lName << "p_pTvsphi_" << aObj;
35 p_pTvsphi = aDir.make<TH2F>(lName.str().c_str(),";#phi;p_{T} (GeV)",64,-3.2,3.2,200,0,200);
36 lName.str("");
37
38 lName << "p_etavsphi_" << aObj;
39 p_etavsphi = aDir.make<TH2F>(lName.str().c_str(),";#phi;#eta",64,-3.2,3.2,80,-4,4);
40 lName.str("");
41
42 }
43
44 void HistosBase::FillBaseHistograms(double aPT, double aEta, double aPhi){//FillHistograms
45
46 p_pT->Fill(aPT);
47 p_eta->Fill(aEta);
48 p_phi->Fill(aPhi);
49
50 p_pTvseta->Fill(aEta,aPT);
51 p_pTvsphi->Fill(aPhi,aPT);
52 p_etavsphi->Fill(aPhi,aEta);
53
54 }//FillHistograms
55
56 }//namespace
57
58