16#include "TGeoManager.h"
20#include "TGeoManager.h"
44void Detector::defineSensitiveVolumes()
46 for (
auto* vol : geo::getSensitiveVolumes()) {
47 AddSensitiveVolume(vol);
53 defineSensitiveVolumes();
58 TGeoVolume*
top = gGeoManager->GetTopVolume();
60 throw std::runtime_error(
"Cannot create MCH geometry without a top volume");
68 throw std::runtime_error(
"Cannot add alignable volumes without TGeoManager");
88bool Detector::setHits(
int i, std::vector<o2::mch::Hit>*
ptr)
Definition of the Stack class.
ClassImp(o2::hmpid::Detector)
Interface for MCH geometry creation.
Detector()
Default Constructor.
std::string addNameTo(const char *ext) const
Bool_t ProcessHits(FairVolume *v=nullptr) override
void InitializeO2Detector() override
void ConstructGeometry() override
void EndOfEvent() override
void addAlignableVolumes() const override
Add alignable top volumes.
std::vector< o2::mch::Hit > * getHits(int)
void registerHits(const char *branchName)
std::vector< o2::mch::Hit > * getHits()
void setHits(std::vector< o2::mch::Hit > *ptr)
void process(const TVirtualMC &vmc)
GLdouble GLdouble GLdouble GLdouble top
void addAlignableVolumes(TGeoManager &geom)
void createGeometry(TGeoManager &geom, TGeoVolume &topVolume)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...