11 |
|
|
12 |
|
l1menu::MenuRatePlots::MenuRatePlots( const l1menu::TriggerMenu& triggerMenu, TDirectory* pDirectory ) |
13 |
|
{ |
14 |
+ |
// Before making any histograms make sure errors are done properly |
15 |
+ |
TH1::SetDefaultSumw2(); |
16 |
|
|
17 |
|
// Loop over each of the triggers in the menu, book a histogram for it and then create |
18 |
|
// a l1menu::TriggerRate plot for it. |
42 |
|
numberOfBins=triggerTable.getSuggestedNumberOfBins( pTrigger->name(), *iThresholdName ); |
43 |
|
lowerEdge=triggerTable.getSuggestedLowerEdge( pTrigger->name(), *iThresholdName ); |
44 |
|
upperEdge=triggerTable.getSuggestedUpperEdge( pTrigger->name(), *iThresholdName ); |
43 |
– |
upperEdge*=5; // I'm getting incomplete ReducedSamples, I think because there is the odd overflow event. |
45 |
|
} |
46 |
|
catch( std::exception& error) { /* Do nothing. If no binning suggestions have been set for this trigger use the defaults I set above. */ } |
47 |
|
|