15#include <TGeoManager.h>
16#include <TGeoVolume.h>
17#include "FairVolume.h"
36void Detector::defineSensitiveVolumes()
39 AddSensitiveVolume(vol);
45 defineSensitiveVolumes();
50 auto hit = mStepper.
process(*fMC);
65bool Detector::setHits(
int iColl, std::vector<Hit>*
ptr)
85 auto motherVolume = gGeoManager->GetVolume(
"YOUT2");
87 auto top = (motherVolume) ? motherVolume : gGeoManager->GetTopVolume();
90 throw std::runtime_error(
"Cannot create MID geometry without a top volume");
Definition of the Stack class.
ClassImp(o2::hmpid::Detector)
Implementation of the trigger-stations geometry.
Detector()
Default Constructor.
std::string addNameTo(const char *ext) const
void ConstructGeometry() override
bool ProcessHits(FairVolume *vol=nullptr) override
void EndOfEvent() override
std::vector< o2::mid::Hit > * getHits(int iColl)
void InitializeO2Detector() override
std::vector< o2::mid::Hit > * getHits()
void setHits(std::vector< o2::mid::Hit > *ptr)
void registerHits(const char *branchName)
bool process(const TVirtualMC &vmc)
GLdouble GLdouble GLdouble GLdouble top
std::vector< TGeoVolume * > getSensitiveVolumes()
get a list of MID sensitive volumes
void createGeometry(TGeoVolume &topVolume)
create MID geometry and attach it to existing topVolume
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...