12#include "FairRootManager.h"
25 LOG(info) << GetName() <<
": timeslice " <<
fNumTs <<
" with " <<
fBmonHits->NElements() <<
" BMON hits, "
27 <<
" TOF hits, " <<
fTracks->size() <<
" tracks";
37 LOG(info) <<
"=====================================";
38 LOG(info) << GetName() <<
": Run summary";
39 LOG(info) <<
"Timeslices : " <<
fNumTs;
40 LOG(info) <<
"=====================================";
48 auto* ioman = FairRootManager::Instance();
50 LOG(fatal) <<
"CbmSourceRecoTimeslice::Init(): FairRootManager is not defined";
54 LOG(info) <<
"==================================================";
55 LOG(info) << GetName() <<
": Initialising...";
57 auto InitBranch = [&](
const auto*& vec,
const char* name) ->
bool {
58 using VecPtr_t = std::remove_reference_t<
decltype(vec)>;
59 vec = ioman->InitObjectAs<VecPtr_t>(name);
61 LOG(error) << GetName() <<
": branch " << name <<
" not found";
64 LOG(info) << GetName() <<
": found branch " << name <<
" at " << vec;
69 InitBranch(
fStsHits,
"OnlineStsHit");
70 InitBranch(
fTrdHits,
"OnlineTrdHit");
71 InitBranch(
fTofHits,
"OnlineTofHit");
72 InitBranch(
fTracks,
"OnlineTrack");
A task to store reconstructed data into a ROOT tree.
const cbm::algo::ca::Vector< cbm::algo::ca::Track > * fTracks
const cbm::PartitionedVector< cbm::algo::tof::Hit > * fTofHits
virtual void Exec(Option_t *opt)
Action on the timeslice.
virtual InitStatus Init()
Action in the beginning of the run.
const cbm::PartitionedVector< cbm::algo::sts::Hit > * fStsHits
const cbm::PartitionedVector< cbm::algo::trd::Hit > * fTrdHits
CbmTaskInspectRecoTimeslice()
Constructor.
virtual void Finish()
Action in the end of the run.
const cbm::algo::StorableRecoResults::TrackHitIndexContainer_t * fTrackStsHitIndices
const cbm::algo::StorableRecoResults::TrackHitIndexContainer_t * fTrackTofHitIndices
const cbm::algo::StorableRecoResults::TrackHitIndexContainer_t * fTrackTrdHitIndices
const cbm::PartitionedVector< cbm::algo::bmon::Hit > * fBmonHits