6 |
|
#include <TH1F.h> |
7 |
|
|
8 |
|
|
9 |
< |
trkupgradeanalysis::MuonInfoCollectionPlotSet::MuonInfoCollectionPlotSet() |
10 |
< |
: histogramHaveBeenBooked_(false) |
9 |
> |
trkupgradeanalysis::MuonInfoCollectionPlotSet::MuonInfoCollectionPlotSet( bool createIsolationTree ) |
10 |
> |
: histogramHaveBeenBooked_(false), muonInfoPlotSet_(createIsolationTree) |
11 |
|
{ |
12 |
|
// No operation besides the initialiser list. |
13 |
|
} |
30 |
|
histogramHaveBeenBooked_=true; |
31 |
|
} |
32 |
|
|
33 |
< |
void trkupgradeanalysis::MuonInfoCollectionPlotSet::fill( const std::vector<VHbbEvent::MuonInfo>& muonCollection ) |
33 |
> |
void trkupgradeanalysis::MuonInfoCollectionPlotSet::fill( const std::vector<VHbbEvent::MuonInfo>& muonCollection, const VHbbEventAuxInfo* pAuxInfo ) |
34 |
|
{ |
35 |
|
if( !histogramHaveBeenBooked_ ) throw std::runtime_error( "trkupgradeanalysis::MuonInfoCollectionPlotSet::book() - histograms have not been booked" ); |
36 |
|
|
38 |
|
|
39 |
|
for( std::vector<VHbbEvent::MuonInfo>::const_iterator iMuon=muonCollection.begin(); iMuon!=muonCollection.end(); ++iMuon ) |
40 |
|
{ |
41 |
< |
muonInfoPlotSet_.fill( *iMuon ); |
41 |
> |
muonInfoPlotSet_.fill( *iMuon, pAuxInfo ); |
42 |
|
} |
43 |
|
|
44 |
|
} |