ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/HbbAnalysis/src/HistosJetsBase.cc
(Generate patch)

Comparing UserCode/HbbAnalysis/src/HistosJetsBase.cc (file contents):
Revision 1.1 by amagnan, Fri Oct 2 11:05:53 2009 UTC vs.
Revision 1.3 by amagnan, Tue Feb 9 14:52:25 2010 UTC

# Line 13 | Line 13 | namespace HbbAnalysis {//namespace
13      CreateHistos(aName,aDir,aDebug);
14  
15      p_nJets = aDir.make<TH1F>("p_nJets",";N_{jets};N_{entries}",50,0,50);
16 +    p_nbJets = aDir.make<TH1F>("p_nbJets",";N_{bjets};N_{entries}",50,0,50);
17  
18      p_deltaRelectrons = aDir.make<TH1F>("p_deltaRelectrons",";#Delta R(electrons);N_{entries}",225,-1,8);
19      p_deltaRmuons = aDir.make<TH1F>("p_deltaRmuons",";#Delta R(muons);N_{entries}",225,-1,8);
# Line 39 | Line 40 | namespace HbbAnalysis {//namespace
40  
41      const unsigned int nTags = btagAlgos.size();
42      assert (nTags == 11);
43 <    double min[11] = {0,0,-0.1,0,0,1,0,0,0,-5,-5};
44 <    double max[11] = {1,1,1,6,2,5,1,1,1,20,20};
43 >    //double min[11] = {0,0,-0.1,0,0,1,0,0,0,-5,-5};
44 >    //double max[11] = {1,1,1,6,2,5,1,1,1,20,20};
45  
46      for (unsigned int i(0); i<nTags; i++){
47        for (int fs(0); fs<4; fs++){//loop on FS
# Line 141 | Line 142 | namespace HbbAnalysis {//namespace
142  
143    }
144  
145 <  void HistosJetsBase::FillEventHistograms(const std::vector<HbbAnalysis::Jet> & aJetCol){
145 >  void HistosJetsBase::FillEventHistograms(const std::vector<HbbAnalysis::Jet> & abJetCol,
146 >                                           const std::vector<HbbAnalysis::Jet> & anonbJetCol)
147 >  {
148  
149 <    p_nJets->Fill(aJetCol.size());
149 >    p_nJets->Fill(abJetCol.size()+anonbJetCol.size());
150 >    p_nbJets->Fill(abJetCol.size());
151    }
152  
153    

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines