4 #ifndef __KVFAZIADETECTOR_H
5 #define __KVFAZIADETECTOR_H
10 #define __KVFD_methname(X, Y) Get ## X ## Y
11 #define __KVFD_setmethname(X, Y) Set ## X ## Y
12 #define __KVFD_dotcat(X, Y) X.Y
13 #define __KVFD_str(s) #s
14 #define __KVFD_xstr(s) __KVFD_str(s)
15 #define __KVFD_dcs(X, Y) __KVFD_xstr(__KVFD_dotcat(X,Y))
17 #define __KVFAZIADETECTOR_GETSIGNAL(sig,type) \
18 Double_t __KVFD_methname(sig,type)() const \
20 return GetDetectorSignalValue(__KVFD_dcs(sig,type)); \
22 void __KVFD_setmethname(sig,type)(Double_t val) \
24 GetDetectorSignal(__KVFD_dcs(sig,type))->SetValue(val); \
78 virtual void SetName(
const char* name);
#define __KVFAZIADETECTOR_GETSIGNAL(sig, type)
#define ClassDef(name, id)
Base class for detector geometry description, interface to energy-loss calculations.
Double_t GetDetectorSignalValue(const TString &type, const KVNameValueList ¶ms="") const
void SetDetectorSignalValue(const TString &type, Double_t val) const
Base class for FAZIA detectors.
Bool_t fIsFiredFromSignals
KVSignal * GetSignal(const Char_t *name) const
virtual Bool_t Fired(Option_t *opt="any") const
void SetFPGAEnergy(int sigid, Int_t idx, Double_t energy)
const KVSeqCollection * GetListOfSignals() const
virtual void Clear(Option_t *opt="")
If opt="N" we do not reset any raw data, signals, etc.
Double_t fQH1Threshold
thresholds defined for this detector
virtual ~KVFAZIADetector()
Destructor.
Int_t GetQuartetNumber() const
KVUniqueNameList fSignals
list of electronics signal (current, charge, etc... )
void SetSignal(TGraph *signal, const Char_t *signal_name)
KVFAZIADetector()
Default constructor.
Int_t GetIdentifier() const
Int_t GetBlockNumber() const
virtual void SetName(const char *name)
Bool_t HasSignal() const
Returns kTRUE if detector has at least 1 associated signal.
void Copy(TObject &obj) const
Bool_t IsRutherford() const
Int_t GetTelescopeNumber() const
KVSignal * GetSignalByType(const Char_t *type) const
Access detector signal of given type: "I1", "I2", "Q2", "Q3", "QH1", "QL1".
Double_t GetSetupParameter(const Char_t *parname)
Int_t GetNumberOfSignals() const
void ComputePSA()
Perform Pulse Shape Analysis on all signals.
Int_t fIdentifier
SI1=0(kSI1) SI2=1(kSI2) CSI=2(kCSI)
static const Char_t * GetNewName(KVString oldname)
void init()
default initialisations
Int_t fIndex
100*block+10*quartet+telescope
KaliVeda extensions to ROOT collection classes.
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
Optimised list in which named objects can only be placed once.