ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/HbbAnalysis/src/HistosElecs.cc
Revision: 1.1
Committed: Wed Apr 15 10:24:16 2009 UTC (16 years ago) by amagnan
Content type: text/plain
Branch: MAIN
Branch point for: v00-00-00
Log Message:
Initial revision

File Contents

# User Rev Content
1 amagnan 1.1 #include <iostream>
2     #include <fstream>
3    
4     #include "DataFormats/MuonReco/interface/Muon.h"
5    
6    
7     #include "UserCode/HbbAnalysis/interface/HistosElecs.hh"
8    
9     namespace HbbAnalysis {//namespace
10    
11     void HistosElecs::Initialise(TFileDirectory & aDir, std::string aName){
12    
13     CreateHistos(aName,aDir);
14    
15     p_nChambers = aDir.make<TH1F>("p_nChambers",";n_{chambers};n_{entries}",20,0,20);
16    
17     }
18    
19     void HistosElecs::FillHistograms(const pat::Muon & aMuon){//FillHistograms
20     const reco::Muon* recoMuon = dynamic_cast<const reco::Muon*>(aMuon.originalObject());
21    
22     p_nChambers->Fill(recoMuon->numberOfChambers());
23    
24     FillBaseHistograms(aMuon.pt(),aMuon.eta(),aMuon.phi());
25    
26     }//FillHistograms
27    
28     }//namespace
29    
30