7#include "FairDetector.h"
12#include <boost/functional/hash.hpp>
15#include <unordered_map>
#define ClassDef(name, id)
virtual Bool_t CheckIfVacuum()
Checks whether current volume is vacuum.
virtual Bool_t CheckIfSensitive(std::string name)
Checks whether a volume is sensitive based on its name.
Int_t FindHitIndex(int trackID, uint32_t address)
Retrieves the hit index corresponding to a specific address and trackID.
TClonesArray * fCollection
virtual void Initialize()
Initialises detector and FairRun.
BmnNdet()
Default constructor.
virtual ~BmnNdet()
Destructor.
virtual void Reset()
Clears the hit collection.
virtual Bool_t ProcessHits(FairVolume *vol=nullptr)
Processes hits and creates BmnNdetPoints.
BmnNdetPoint * AddHit(BmnNdetPoint *point)
Adds the hit to hits collection.
bool FinaliseTrackProcessing(BmnNdetPoint *point)
Removes zero-energy hits.
virtual void ConstructGeometry()
Constructs geometry from files.
int GetSurfacePoint(int start_track_id)
Returns index of surface point.
BmnNdet(const char *name, Bool_t active)
Standard constructor.
virtual TClonesArray * GetCollection(Int_t iColl) const
Accessor to the hit collection.
TClonesArray * fSurfaceCollection
void RemoveHit(Int_t index)
Remove hit from hits collection by index.
BmnNdetPoint * GetHit(int trackID, uint32_t address)
Retrieves the hit corresponding to a specific address and trackID.
virtual void Print(Option_t *) const
Screen output of hit collection.
virtual void BeginEvent()
Called at the beginning of each event.
virtual void EndOfEvent()
Called at the end of each event.
virtual void Register()
Registers the hit collection in the ROOT manager.