ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/HbbAnalysis/src/HistosElecs.cc
Revision: 1.1.1.1 (vendor branch)
Committed: Wed Apr 15 10:24:16 2009 UTC (16 years ago) by amagnan
Content type: text/plain
Branch: v00-00-00
CVS Tags: HbbAnaFor22X
Changes since 1.1: +0 -0 lines
Error occurred while calculating annotation data.
Log Message:
Imported sources

File Contents

# Content
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