28#include "FairRootManager.h"
29#include "TClonesArray.h"
46 LOG(fatal) <<
"CbmRichRingFinderIdeal::Init(): Ideal ringfinder is currently disabled. Will be reimplemented soon, "
47 "supporting time-based mode and mutiple MC input files. Also hits from the same mother particle in 2 "
48 "different cameras will be taken care of.";
50 FairRootManager* manager = FairRootManager::Instance();
51 if (
nullptr == manager) LOG(fatal) <<
"CbmRichRingFinderIdeal::Init(): FairRootManager is nullptr.";
54 if (mcManager ==
nullptr) LOG(fatal) <<
"CbmRichRingFinderIdeal::Init(): MCDataManager is nullptr.";
63 if (
fMcTracks ==
nullptr) LOG(fatal) <<
"CbmRichRingFinderIdeal::Init(): No MCTrack.";
66 if (
fRichPoints ==
nullptr) LOG(fatal) <<
"CbmRichRingFinderIdeal::Init(): No RichPoint!";
69 if (
fEventList ==
nullptr) LOG(fatal) <<
"CbmRichRingFinderIdeal::Init(): No MCEventList.";
153 if (richHit ==
nullptr)
return -1;
154 Int_t digiIndex = richHit->
GetRefId();
155 if (digiIndex < 0)
return -1;
157 if (NULL == digiMatch)
return -1;
@ kRich
Ring-Imaging Cherenkov Detector.
FairTask for matching RECO data to MC.
Ideal ring finder in the RICH detector. It uses MC information to attach RICH hits to rings.
static Bool_t IsPresent(ECbmModuleId systemId)
Presence of a digi branch.
static Bool_t IsMatchPresent(ECbmModuleId systemId)
Presence of a digi match branch.
InitStatus Init()
Initialisation.
static CbmDigiManager * Instance()
Static instance.
const CbmMatch * GetMatch(ECbmModuleId systemId, UInt_t index) const
Get a match object.
Class characterising one event by a collection of links (indices) to data objects,...
Task class creating and managing CbmMCDataArray objects.
CbmMCDataObject * GetObject(const char *name)
CbmMCDataArray * InitBranch(const char *name)
Container class for MC events with number, file and start time.
const CbmLink & GetMatchedLink() const
CbmMCEventList * fEventList
Int_t GetEventIdForRichHit(const CbmRichHit *richHit)
virtual void Init()
Inherited from CbmRichRingFinder.
CbmMCDataArray * fRichPoints
virtual int DoFind(CbmEvent *event, TClonesArray *hitArray, TClonesArray *projArray, TClonesArray *ringArray)
CbmRichRingFinderIdeal()
Default constructor.
virtual ~CbmRichRingFinderIdeal()
Destructor.
CbmDigiManager * fDigiMan
CbmMCDataArray * fMcTracks