12 #include "../TrackParametersHelper.h"
19 PlotMgr* pParent,
const std::string& dirName,
20 const std::string& anaTag,
const std::string& trackType,
21 bool doTrigger,
bool doGlobalPlots,
bool doTruthMuPlots ) :
22 PlotMgr( dirName, anaTag, pParent ),
23 m_trackType( trackType ),
25 m_doGlobalPlots( doGlobalPlots ),
26 m_doTruthMuPlots( doTruthMuPlots ) { }
35 if(
sc.isFailure() ) {
43 ATH_MSG_DEBUG(
"Booking track multiplicity plots in " << getDirectory() );
45 for(
size_t i=0;
i<NCOUNTERS;
i++ ) {
47 if( not m_doTrigger and
i == INROI )
continue;
50 ATH_CHECK( retrieveAndBook( m_nTracks[
i],
"num_"+m_trackType+
"_"+m_counterName[
i] ) );
54 m_nTracks_vs_nVertices[
i],
55 "num_"+m_trackType+
"_"+m_counterName[
i]+
"_vs_num_vtx_"+m_trackType+
"_"+m_counterName[
i] ) );
58 if( m_doGlobalPlots ) {
64 m_nTracks_vs_actualMu,
"num_"+m_trackType+
"_"+m_counterName[ SELECTED ]+
"_vs_actualMu" ) );
65 if( m_doTruthMuPlots )
ATH_CHECK( retrieveAndBook(
66 m_nTracks_vs_truthMu,
"num_"+m_trackType+
"_"+m_counterName[ SELECTED ]+
"_vs_truthMu" ) );
69 return StatusCode::SUCCESS;
77 const std::vector< size_t >& trackCounts,
78 const std::vector< size_t >& vertexCounts,
84 if( trackCounts.size() != NCOUNTERS or vertexCounts.size() != NCOUNTERS ) {
86 return StatusCode::FAILURE;
90 for(
size_t i=0;
i<NCOUNTERS;
i++ ) {
92 if( not m_doTrigger and
i == INROI )
continue;
97 if( m_doGlobalPlots ) {
99 if( m_doTruthMuPlots )
ATH_CHECK(
fill( m_nTracks_vs_truthMu, truthMu, trackCounts[ INROI ],
weight ) );
102 return StatusCode::SUCCESS;