15#include "THttpServer.h"
16#include <TDirectory.h>
52 LOG(debug2) <<
"CbmMcbmCheckTimingTask::Exec => Starting sequence";
56 LOG(debug2) <<
"CbmMcbmCheckTimingTask::Exec => Done";
74 std::vector< std::pair< TNamed *, std::string > > vHistos = fpAlgo->GetHistoVector();
77 TFile* oldFile = gFile;
78 TDirectory* oldDir = gDirectory;
81 TFile* histoFile = nullptr;
84 histoFile = new TFile( fsOutFileName , "RECREATE");
88 for( UInt_t uHisto = 0; uHisto < vHistos.size(); ++uHisto )
91 TString sFolder = vHistos[ uHisto ].second.data();
92 if( nullptr == gDirectory->Get( sFolder ) )
93 gDirectory->mkdir( sFolder );
94 gDirectory->cd( sFolder );
97 vHistos[ uHisto ].first->Write();
100 } // for( UInt_t uHisto = 0; uHisto < vHistos.size(); ++uHisto )
115 Double_t dTimeRangeEndIn, UInt_t uRangeNbBinsIn,
116 UInt_t uChargeCutMinIn, UInt_t uChargeCutMaxIn)
122 Double_t dTimeRangeEndIn, UInt_t uRangeNbBinsIn, UInt_t uChargeCutMinIn,
123 UInt_t uChargeCutMaxIn)
125 fpAlgo->
AddCheckDetector(detIn, sNameIn, dTimeRangeBegIn, dTimeRangeEndIn, uRangeNbBinsIn, uChargeCutMinIn,
ClassImp(CbmConverterManager)
void AddCheckDetector(ECbmModuleId detIn, std::string sNameIn, Double_t dTimeRangeBegIn=-1000.0, Double_t dTimeRangeEndIn=1000.0, UInt_t uRangeNbBinsIn=320, UInt_t uChargeCutMinIn=0, UInt_t uChargeCutMaxIn=0)
void SetDetectorDifferential(ECbmModuleId detIn, std::vector< std::string > vName)
void SetOutFilename(TString sNameIn)
void SetReferenceDetector(ECbmModuleId refDetIn, std::string sNameIn, Double_t dTimeRangeBegIn=-1000.0, Double_t dTimeRangeEndIn=1000.0, UInt_t uRangeNbBinsIn=320, UInt_t uChargeCutMinIn=0, UInt_t uChargeCutMaxIn=0)
void RemoveCheckDetector(ECbmModuleId detIn)
void SetOutFilename(TString sNameIn)
void RemoveCheckDetector(ECbmModuleId detIn)
void AddCheckDetector(ECbmModuleId detIn, std::string sNameIn, Double_t dTimeRangeBegIn=-1000.0, Double_t dTimeRangeEndIn=1000.0, UInt_t uRangeNbBinsIn=320, UInt_t uChargeCutMinIn=0, UInt_t uChargeCutMaxIn=0)
virtual InitStatus Init()
void SetDetectorDifferential(ECbmModuleId detIn, std::vector< std::string > vName)
virtual void Exec(Option_t *)
virtual void SetParContainers()
~CbmMcbmCheckTimingTask()
void SetReferenceDetector(ECbmModuleId refDetIn, std::string sNameIn, Double_t dTimeRangeBegIn=-1000.0, Double_t dTimeRangeEndIn=1000.0, UInt_t uRangeNbBinsIn=320, UInt_t uChargeCutMinIn=0, UInt_t uChargeCutMaxIn=0)
CbmMcbmCheckTimingAlgo * fpAlgo
virtual InitStatus ReInit()
CbmMcbmCheckTimingTask()
CBM headers.