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 
23  Bool_t use_signal_for_raw_data_tree(const TString&type) const override
24  {
25  return type!="T";
26  }
27 protected:
28 
31  void set_type(TString type)
32  {
34  type.ToUpper();// all INDRA detector types are upper-case
35  KVDetector::SetType(type);
36  }
37  Bool_t ROOTGeo() const override { return disable_root_geo_warning ? false : KVDetector::ROOTGeo(); }
38 
39 public:
41  : fChIo(nullptr)
42  {
43  }
44  void SetType(const Char_t*) override
45  {
48  }
49  void SetName(const char* name) override;
50 
52  {
53  return ring;
54  }
56  {
57  return module;
58  }
59  Int_t GetIndex() const override
60  {
62  return 100 * GetRingNumber() + GetModuleNumber();
63  }
64 
66  {
68  return (fChIo ? fChIo : const_cast<KVINDRADetector*>(this)->FindChIo());
69  }
70 
71  void SetPolarMinMax(Double_t min, Double_t max) override;
72  void SetAzimuthalMinMax(Double_t min, Double_t max) override;
73 
74  ClassDefOverride(KVINDRADetector, 3) //Detectors of INDRA array
75 };
76 
77 #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
Bool_t use_signal_for_raw_data_tree(const TString &type) const override
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