KaliVeda
Toolkit for HIC analysis
KVINDRADetector.h
1 
4 #ifndef __KVINDRADETECTOR_H
5 #define __KVINDRADETECTOR_H
6 
7 #include "KVDetector.h"
8 
16 class KVINDRADetector : public KVDetector {
17 
18  uint16_t ring : 5;
19  uint16_t module : 5;
20 
22 protected:
23 
26  void set_type(TString type)
27  {
29  type.ToUpper();// all INDRA detector types are upper-case
30  KVDetector::SetType(type);
31  }
32  Bool_t ROOTGeo() const override { return disable_root_geo_warning ? false : KVDetector::ROOTGeo(); }
33 
34 public:
36  : fChIo(nullptr)
37  {
38  }
39  void SetType(const Char_t*) override
40  {
43  }
44  void SetName(const char* name) override;
45 
47  {
48  return ring;
49  }
51  {
52  return module;
53  }
54  Int_t GetIndex() const override
55  {
57  return 100 * GetRingNumber() + GetModuleNumber();
58  }
59 
61  {
63  return (fChIo ? fChIo : const_cast<KVINDRADetector*>(this)->FindChIo());
64  }
65 
66  void SetPolarMinMax(Double_t min, Double_t max) override;
67  void SetAzimuthalMinMax(Double_t min, Double_t max) override;
68 
69  ClassDefOverride(KVINDRADetector, 3) //Detectors of INDRA array
70 };
71 
72 #endif
int Int_t
unsigned int UInt_t
bool Bool_t
char Char_t
double Double_t
#define ClassDefOverride(name, id)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
Base class for detectors of INDRA array.
UInt_t GetRingNumber() const
void SetType(const Char_t *) override
Int_t GetIndex() const override
UInt_t GetModuleNumber() const
void SetAzimuthalMinMax(Double_t min, Double_t max) override
void SetName(const char *name) override
Deduce ring and module number (and index) from name of detector.
KVINDRADetector * FindChIo()
void set_type(TString type)
KVINDRADetector * fChIo
pointer to ionisation chamber in group associated to this detector
Bool_t ROOTGeo() const override
Bool_t disable_root_geo_warning
void SetPolarMinMax(Double_t min, Double_t max) override
KVINDRADetector * GetChIo() const