BmnRoot
Loading...
Searching...
No Matches
BmnTimeDetQa.cxx
Go to the documentation of this file.
1#include "BmnTimeDetQa.h"
2
3BmnTimeDetQa::BmnTimeDetQa(TString detName, UInt_t id) :
4fSteering(new BmnOfflineQaSteering()),
5fHistoManager(new BmnQaHistoManager()) {
6
7 pair <Int_t, TString> periodSetup = fSteering->GetRunAndSetupByRunId(id);
8 TString prefix = TString::Format("RUN%d_SETUP_%s_", periodSetup.first, periodSetup.second.Data());
9
10 CommonInfo(prefix + detName);
11
12 if (detName.Contains("TOF"))
13 TofInfo(prefix + detName);
14
15 else if (detName.Contains("DCH") || detName.Contains("MWPC"))
16 MwpcDchInfo(prefix + detName);
17
18 else
19 throw;
20}
pair< Int_t, TString > GetRunAndSetupByRunId(Int_t id)