12#ifndef AliceO2_TPC_Detector_H_
13#define AliceO2_TPC_Detector_H_
17#include "TLorentzVector.h"
85 bool isMTSafe()
const override {
return true; }
97 std::vector<HitGroup>*
getHits(Int_t iColl)
const
99 if (iColl >= 0 && iColl < Sector::MAXSECTOR) {
100 return mHitsPerSectorCollection[iColl];
125 template <
typename T>
128 return o2::tpc::BetheBlochAleph(bg, kp1, kp2, kp3, kp4, kp5);
137 Double_t Gamma(Double_t k);
157 int mElectronCounter = 0;
158 int mStepCounter = 0;
159 double mLastReferenceR = 0;
161 HitGroup* mCurrentGroup =
nullptr;
162 int mOldTrackId = -1;
163 int mOldSectorId = -1;
164 int mGroupCounter = 0;
167 virtual void CreateMaterials();
174 void LoadGeometryFromFile();
176 void ConstructTPCGeometry();
179 void defineSensitiveVolumes();
182 bool setHits(Int_t iColl, std::vector<HitGroup>*
ptr)
184 if (iColl >= 0 && iColl < Sector::MAXSECTOR) {
185 mHitsPerSectorCollection[iColl] =
ptr;
187 if (iColl < Sector::MAXSECTOR - 1) {
195 std::vector<HitGroup>* mHitsPerSectorCollection[Sector::MAXSECTOR];
197 TString mGeoFileName;
205 template <
typename Det>
219struct UseShm<
o2::tpc::Detector> {
220 static constexpr bool value =
true;
Definition of the Detector class.
configStandalone Light OpenGL display display_light Apply smoothing to points Enable Z buffer Highlight links Highlight seeds Highlight sector tracks Highlight final tracks Show individual Show related Highlight grid Show only individual collision Color clusters belonging to track objects Set line Enable drawing TPC data Enable drawing TOF data Enable drawing magnetic field Set field line step count Invert colors configStandalone Heavy OpenGL display display_heavy Show tracks with ITS contribution Show tracks with TOF contribution Enable propagation of loopers Show clusters at nominal x of pad row for early transformed data Split CE tracks when they cross the central Mark clusters Mark adjacent clusters Hide rejected tracks Apply filter on tracks to be displayed Separate increase X h configStandalone Camera window renderer OpenGL display display_camera Orient the camera such that the y axis is always upwards Full Screen MultiSample Anti Downsampling Anti Enable Vertical Sync Target frame or if the backend cannot limit to the refresh Use OpenGL indirect draws to reduce number of draw calls Display h configStandalone Vulkan display display_vulkan Have uniform buffers in host accessible device memory h configStandalone Internal display display_internal Number of updates the Qt GUI may send ahead of the last one the display has before it waits for the display Opacity of the console background Number of console lines the history is shortened to this when it reaches twice the size Time in seconds an info message fades out after setInfoTime h OpenGL display display Font size Do not use Freetype for font Renderer for event Frontend to use for event ROOT macros used as track filter Console script file
Detector & operator=(const Detector &)
Detector()
Default Constructor.
void BeginPrimary() override
void ConstructGeometry() override
Point * addHit(float x, float y, float z, float time, float nElectrons, float trackID, float detID)
Bool_t ProcessHits(FairVolume *v=nullptr) override
void FinishPrimary() override
const TString & GetGeoFileName() const
static T BetheBlochAleph(T bg, T kp1, T kp2, T kp3, T kp4, T kp5)
Copied from AliRoot - should go to someplace else.
bool isMTSafe() const override
whether this detector may run in multithreaded Geant4, with one clone per worker thread
void InitializeO2Detector() override
void PostTrack() override
std::vector< HitGroup > * getHits(Int_t iColl) const
void FinishRun() override
std::string getHitBranchNames(int coll) const override
void EndOfEvent() override
void SetGeoFileName(const TString file)
void SetSpecialPhysicsCuts() override
static o2::base::Detector * create(bool active)
GLsizei const GLfloat * value
GLdouble GLdouble GLdouble z
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...