6 |
|
#include "l1menu/TriggerRatePlot.h" |
7 |
|
#include "l1menu/tools/tools.h" |
8 |
|
#include "l1menu/ReducedMenuSample.h" |
9 |
< |
#include "l1menu/IReducedEvent.h" |
9 |
> |
#include "l1menu/ReducedEvent.h" |
10 |
|
#include <TH1F.h> |
11 |
|
|
12 |
|
l1menu::MenuRatePlots::MenuRatePlots( const l1menu::TriggerMenu& triggerMenu, TDirectory* pDirectory ) |
53 |
|
} // end of loop over the triggers in the menu |
54 |
|
} |
55 |
|
|
56 |
< |
void l1menu::MenuRatePlots::addEvent( const l1menu::IEvent& event ) |
56 |
> |
void l1menu::MenuRatePlots::addEvent( const l1menu::L1TriggerDPGEvent& event ) |
57 |
|
{ |
58 |
|
// Loop over each of the TriggerRatePlots and add the event to each of them. |
59 |
|
for( auto& ratePlot : triggerPlots_ ) |
71 |
|
} |
72 |
|
} |
73 |
|
|
74 |
< |
void l1menu::MenuRatePlots::addEvent( const l1menu::IReducedEvent& event ) |
74 |
> |
void l1menu::MenuRatePlots::addEvent( const l1menu::ReducedEvent& event ) |
75 |
|
{ |
76 |
|
// Loop over each of the TriggerRatePlots and add the event to each of them. |
77 |
|
for( auto& ratePlot : triggerPlots_ ) |
80 |
|
} |
81 |
|
} |
82 |
|
|
83 |
+ |
void l1menu::MenuRatePlots::addSample( const l1menu::ISample& sample ) |
84 |
+ |
{ |
85 |
+ |
// Loop over each of the TriggerRatePlots and add the sample to each of them. |
86 |
+ |
for( auto& ratePlot : triggerPlots_ ) |
87 |
+ |
{ |
88 |
+ |
ratePlot.addSample( sample ); |
89 |
+ |
} |
90 |
+ |
} |
91 |
+ |
|
92 |
|
void l1menu::MenuRatePlots::setDirectory( TDirectory* pDirectory ) |
93 |
|
{ |
94 |
|
// Loop over each of the TriggerRatePlots and individually set the directory. |