12 #include "../TrackParametersHelper.h"
19 PlotMgr* pParent,
const std::string& dirName,
20 const std::string& anaTag,
const std::string& trackType,
22 PlotMgr( dirName, anaTag, pParent ),
23 m_trackType( trackType ),
25 m_doGlobalPlots( doGlobalPlots ) { }
34 if(
sc.isFailure() ) {
42 ATH_MSG_DEBUG(
"Booking track multiplicity plots in " << getDirectory() );
44 for(
unsigned int i=0;
i<NCOUNTERS;
i++ ) {
46 if( not m_doTrigger and
i == INROI )
continue;
49 ATH_CHECK( retrieveAndBook( m_nTracks[
i],
"num_"+m_trackType+
"_"+m_counterName[
i] ) );
52 if( m_doGlobalPlots ) {
57 ATH_CHECK( retrieveAndBook( m_nTracks_vs_truthMu,
"num_"+m_trackType+
"_"+m_counterName[ FS ]+
"_vs_truthMu" ) );
58 ATH_CHECK( retrieveAndBook( m_nTracks_vs_actualMu,
"num_"+m_trackType+
"_"+m_counterName[ FS ]+
"_vs_actualMu" ) );
61 return StatusCode::SUCCESS;
69 const std::vector< unsigned int >& counts,
75 if( counts.size() != NCOUNTERS ) {
77 return StatusCode::FAILURE;
81 for(
unsigned int i=0;
i<NCOUNTERS;
i++ ) {
83 if( not m_doTrigger and
i == INROI )
continue;
87 if( m_doGlobalPlots ) {
92 return StatusCode::SUCCESS;