7#include "FairDetector.h"
14#include <unordered_map>
99 std::unique_ptr<BmnFHCalPoint>
fPoint;
#define ClassDefOverride(name, id)
int GetSurfaceMCTrack(int start_track_id)
Determines the surface-level Monte Carlo track ID associated with the given starting track ID.
std::unique_ptr< BmnFHCalGeo > fGeoHandler
virtual ~BmnFHCal()
Destructor.
BmnFHCalPoint * AddHit(BmnFHCalPoint *point)
Adds the hit to hits collection.
virtual void BeginEvent() override
Called at the beginning of each event.
BmnFHCalPoint * GetHit(uint32_t address)
Retrieves a hit from the collection based on the detector address.
virtual Bool_t ProcessHits(FairVolume *vol=nullptr) override
Processes hits and creates BmnFHCalPoints.
virtual void Initialize() override
Initializes detector and FairRun.
std::unique_ptr< BmnFHCalPoint > fPoint
BmnFHCal()
Default constructor.
std::map< uint32_t, FairMultiLinkedData > fMultiLinkMap
virtual void Print(Option_t *) const override
Screen output of hit collection.
virtual Bool_t CheckIfSensitive(std::string name) override
Checks whether a volume is sensitive based on its name.
void UpdateHit(BmnFHCalPoint &existing, const BmnFHCalPoint &update)
Updates an existing hit by merging information from a new hit, weighting position,...
BmnFHCal(const char *name, Bool_t active)
Standard constructor.
virtual void ConstructGeometry() override
Constructs geometry from files.
virtual void Register() override
Registers the hit collection in the ROOT manager.
virtual void EndOfEvent() override
Called at the end of each event.
virtual void Reset() override
Clears the hit collection.
TClonesArray * fCollection
virtual TClonesArray * GetCollection(Int_t iColl) const override
Accessor to the hit collection.