![]() |
KaliVeda
Toolkit for HIC analysis
|
Base class for FAZIA detectors.
Created by KVClassFactory on Fri Jan 23 18:44:27 2015 Author: ,,,
Detector names are assumed to be defined as label-xxx where xxx is computed as follows (see KVFAZIADetector::GetIndex) :
and label can be SI1, SI2 or CSI
For example SI1-123 is the Silicon Si1 of the block 1, the quartet 2 and the telescope 3
Definition at line 29 of file KVFAZIADetector.h.
#include <KVFAZIADetector.h>

Public Types | |
| enum | { kSI1 , kSI2 , kCSI , kOTHER } |
Public Types inherited from KVMaterial | |
| enum | SolType { kEmax , kEmin } |
Public Types inherited from KVBase | |
| enum | EKaliVedaBits { kIsKaliVedaObject = BIT(23) } |
| enum class | GetX_status { ok , above_maximum , below_minimum , at_maximum , at_minimum } |
Public Types inherited from TObject | |
| enum | EDeprecatedStatusBits |
| enum | EStatusBits |
Static Public Member Functions | |
| static const Char_t * | GetNewName (KVString oldname) |
Static Public Member Functions inherited from KVDetector | |
| static KVDetector * | MakeDetector (const Char_t *name, Float_t thick) |
Static Public Member Functions inherited from KVMaterial | |
| static KVIonRangeTable * | ChangeRangeTable (const Char_t *name) |
| static KVIonRangeTable * | GetRangeTable () |
Static Public Member Functions inherited from KVBase | |
| static Bool_t | AreEqual (Double_t x, Double_t y, Long64_t maxdif=1) |
| Comparison between two 64-bit floating-point values. More... | |
| static void | BackupFileWithDate (const Char_t *path) |
| static void | CombineFiles (const Char_t *file1, const Char_t *file2, const Char_t *newfilename, Bool_t keep=kTRUE) |
| static void | Deprecated (const char *method, const char *advice) |
| static Bool_t | FindClassSourceFiles (const KVString &class_name, KVString &imp_file, KVString &dec_file, const KVString &dir_name=".") |
| static Bool_t | FindExecutable (TString &exec, const Char_t *path="$(PATH)") |
| static const Char_t * | FindFile (const Char_t *search, TString &wfil) |
| static const Char_t * | GetBINDIRFilePath (const Char_t *namefile="") |
| static const Char_t * | GetDATABASEFilePath () |
| static const Char_t * | GetDATADIRFilePath (const Char_t *namefile="") |
| template<typename ValType > | |
| static ValType | GetDataSetEnv (const KVString &dataset, const KVString &type, const ValType &defval={}) |
| static const Char_t * | GetETCDIRFilePath (const Char_t *namefile="") |
| static const Char_t * | GetExampleFilePath (const Char_t *library, const Char_t *namefile) |
| Return full path to example file for given library (="KVMultiDet", "BackTrack", etc.) More... | |
| static const Char_t * | GetINCDIRFilePath (const Char_t *namefile="") |
| static const Char_t * | GetKVBuildDate () |
| Returns KaliVeda build date. More... | |
| static const Char_t * | GetKVBuildDir () |
| Returns top-level directory used for build. More... | |
| static const Char_t * | GetKVBuildTime () |
| Returns KaliVeda build time. More... | |
| static const Char_t * | GetKVBuildType () |
| Returns KaliVeda build type (cmake build: Release, Debug, RelWithDebInfo, ...) More... | |
| static const Char_t * | GetKVBuildUser () |
| Returns username of person who performed build. More... | |
| static int | GetKVMajorVersion () |
| static int | GetKVMinorVersion () |
| static int | GetKVPatchVersion () |
| static const Char_t * | GetKVSourceDir () |
| Returns top-level directory of source tree used for build. More... | |
| static const Char_t * | GetKVVersion () |
| Returns KaliVeda version string. More... | |
| static const Char_t * | GetLIBDIRFilePath (const Char_t *namefile="") |
| static const Char_t * | GetListOfPlugins (const Char_t *base) |
| static const Char_t * | GetListOfPluginURIs (const Char_t *base) |
| static const Char_t * | GetPluginURI (const Char_t *base, const Char_t *plugin) |
| static void | GetTempFileName (TString &base) |
| static const Char_t * | GetTEMPLATEDIRFilePath (const Char_t *namefile="") |
| static const Char_t * | GetWORKDIRFilePath (const Char_t *namefile="") |
| static const Char_t * | gitBranch () |
| Returns git branch of sources. More... | |
| static const Char_t * | gitCommit () |
| Returns last git commit of sources. More... | |
| static void | InitEnvironment () |
| static bool | is_gnuinstall () |
| static Bool_t | IsEnvInit () |
| static Bool_t | IsThisAPlugin (const TString &uri, TString &base) |
| static TPluginHandler * | LoadPlugin (const Char_t *base, const Char_t *uri="0") |
| static Bool_t | OpenContextMenu (const char *method, TObject *obj, const char *alt_method_name="") |
| static void | OpenTempFile (TString &base, std::ofstream &fp) |
| static void | PrintSplashScreen () |
| Prints welcome message and infos on version etc. More... | |
| static Double_t | ProtectedGetX (const TF1 &func, Double_t val, GetX_status &status, std::optional< Double_t > xmin={}, std::optional< Double_t > xmax={}) |
| static Double_t | ProtectedGetX (const TF1 *func, Double_t val, GetX_status &status, std::optional< Double_t > xmin={}, std::optional< Double_t > xmax={}) |
| static Bool_t | SearchAndOpenKVFile (const Char_t *name, KVSQLite::database &dbfile, const Char_t *kvsubdir="") |
| static Bool_t | SearchAndOpenKVFile (const Char_t *name, std::ifstream &file, const Char_t *kvsubdir="", KVLockfile *locks=0) |
| static Bool_t | SearchAndOpenKVFile (const Char_t *name, std::ofstream &file, const Char_t *kvsubdir="", KVLockfile *locks=0) |
| static Bool_t | SearchKVFile (const Char_t *name, TString &fullpath, const Char_t *kvsubdir="") |
| static const Char_t * | WorkingDirectory () |
Static Public Member Functions inherited from TNamed | |
| static TClass * | Class () |
| static const char * | Class_Name () |
| static constexpr Version_t | Class_Version () |
| static const char * | DeclFileName () |
Static Public Member Functions inherited from TObject | |
| static TClass * | Class () |
| static const char * | Class_Name () |
| static constexpr Version_t | Class_Version () |
| static const char * | DeclFileName () |
| static Longptr_t | GetDtorOnly () |
| static Bool_t | GetObjectStat () |
| static void | SetDtorOnly (void *obj) |
| static void | SetObjectStat (Bool_t stat) |
Private Member Functions | |
| void | init () |
| default initialisations More... | |
| KVDetectorSignal * | set_psa_detector_signal_value (const TString &sig_type, const TString &psa_val, double val) |
| KVDetectorSignal * | SetBaseLine (int sigid, Float_t baseline) |
| KVDetectorSignal * | SetFPGAEnergy (int sigid, Int_t idx, Double_t energy) |
| Bool_t | SetProperties () |
| void | SetPSAResults (const KVSignal *sig) |
| Bool_t | use_signal_for_raw_data_tree (const TString &) const override |
| Restrict list of signals which are used to fill raw data TTrees. More... | |
Private Attributes | |
| Int_t | fBlock |
| Int_t | fIdentifier |
| SI1=0(kSI1) SI2=1(kSI2) CSI=2(kCSI) More... | |
| Int_t | fIndex |
| 100*block+10*quartet+telescope More... | |
| Bool_t | fIsFiredFromSignals |
| Bool_t | fIsRutherford |
| Double_t | fQ2Threshold |
| Double_t | fQ3Threshold |
| Double_t | fQH1Threshold |
| thresholds defined for this detector More... | |
| Int_t | fQuartet |
| KVUniqueNameList | fSignals |
| list of electronics signal (current, charge, etc... ) More... | |
| Int_t | fTelescope |
Friends | |
| class | KVFAZIA |
Additional Inherited Members | |
Public Attributes inherited from TObject | |
| kBitMask | |
| kCanDelete | |
| kCannotPick | |
| kHasUUID | |
| kInconsistent | |
| kInvalidObject | |
| kIsOnHeap | |
| kIsReferenced | |
| kMustCleanup | |
| kNoContextMenu | |
| kNotDeleted | |
| kObjInCanvas | |
| kOverwrite | |
| kSingleKey | |
| kWriteDelete | |
| kZombie | |
Protected Member Functions inherited from TObject | |
| virtual void | DoError (int level, const char *location, const char *fmt, va_list va) const |
| void | MakeZombie () |
Protected Attributes inherited from TNamed | |
| TString | fName |
| TString | fTitle |
Protected Attributes inherited from TObject | |
| kOnlyPrepStep | |
| anonymous enum |
| Enumerator | |
|---|---|
| kSI1 | |
| kSI2 | |
| kCSI | |
| kOTHER | |
Definition at line 128 of file KVFAZIADetector.h.
| KVFAZIADetector::KVFAZIADetector | ( | ) |
Default constructor.
Definition at line 50 of file KVFAZIADetector.cpp.
Create detector of given material type and thickness (in centimetres)
Definition at line 61 of file KVFAZIADetector.cpp.
|
virtual |
Destructor.
Definition at line 72 of file KVFAZIADetector.cpp.
If opt="N" we do not reset any raw data, signals, etc.
Reimplemented from KVDetector.
Definition at line 105 of file KVFAZIADetector.cpp.
| void KVFAZIADetector::ComputePSA | ( | ) |
Perform Pulse Shape Analysis on all signals.
Definition at line 513 of file KVFAZIADetector.cpp.
This method copies the current state of 'this' object into 'obj' You should add here any member variables, for example: (supposing a member variable KVFAZIADetector::fToto) CastedObj.fToto = fToto; or CastedObj.SetToto( GetToto() );
Reimplemented from KVDetector.
Definition at line 87 of file KVFAZIADetector.cpp.
Returns kTRUE if detector was hit (fired) in an event
Several methods are implemented.
If the detector has a "Fired" signal (defined by a calibration file containing threshold values for individual detectors), we simply test it (if "Fired" > 0, then we are above threshold).
If the detector is fired based on FPGA energy values (i.e. the [dataset].*.IsFiredFromSignal value is set to 0 for the dataset), thresholds are given for all SI1/SI2/CSI detectors using "[dataset].*.MinimumAmplitude" values for the QH1/QL1, Q2 and/or Q3 FPGA values, these will be used to test the corresponding "*.FPGAEnergy" signal of the detector.
Otherwise, the test is made on charge signals of the detectors:
If the detector is in "simulation mode", i.e. if SetSimMode(kTRUE) has been called, this method returns kTRUE if the calculated energy loss in the active layer is > 0.
Reimplemented from KVDetector.
Definition at line 331 of file KVFAZIADetector.cpp.
|
inline |
Definition at line 164 of file KVFAZIADetector.h.
|
inline |
Definition at line 192 of file KVFAZIADetector.h.
|
inline |
Definition at line 196 of file KVFAZIADetector.h.
|
inline |
Return the identifier of the detector. This is one of KVFAZIADetector::kSI1 KVFAZIADetector::kSI2 KVFAZIADetector::kCSI KVFAZIADetector::kOTHER
Definition at line 154 of file KVFAZIADetector.h.
|
inlineoverridevirtual |
Return index of detector, defined as 100*block+10*quartet+telescope
Reimplemented from KVDetector.
Definition at line 168 of file KVFAZIADetector.h.
| const KVSeqCollection * KVFAZIADetector::GetListOfSignals | ( | ) | const |
Definition at line 503 of file KVFAZIADetector.cpp.
Translate an old-style FAZIA detector name (e.g. "SI1-T1-Q2-B001") to the new format ("SI1-121")
Definition at line 274 of file KVFAZIADetector.cpp.
| Int_t KVFAZIADetector::GetNumberOfSignals | ( | ) | const |
Definition at line 494 of file KVFAZIADetector.cpp.
|
inline |
Definition at line 181 of file KVFAZIADetector.h.
Definition at line 35 of file KVFAZIADetector.cpp.
Access detector signal by name, i.e. as in FAZIA raw data e.g. "QL1-231"
Definition at line 451 of file KVFAZIADetector.cpp.
Access signal with given index in list of detector's signals 0 <= idx < KVFAZIADetector::GetNumberOfSignals()
Definition at line 481 of file KVFAZIADetector.cpp.
Access detector signal of given type: "I1", "I2", "Q2", "Q3", "QH1", "QL1"
Definition at line 466 of file KVFAZIADetector.cpp.
|
inline |
Definition at line 185 of file KVFAZIADetector.h.
| Bool_t KVFAZIADetector::HasSignal | ( | ) | const |
Returns kTRUE if detector has at least 1 associated signal.
Definition at line 439 of file KVFAZIADetector.cpp.
default initialisations
Definition at line 17 of file KVFAZIADetector.cpp.
|
inline |
Returns kTRUE if detector is part of elastic scattering monitor telescope
Definition at line 175 of file KVFAZIADetector.h.
|
inlineprivate |
Definition at line 54 of file KVFAZIADetector.h.
|
inlineprivate |
Set signal baseline computed inside the FPGA. Returns address of the signal which was set.
Definition at line 91 of file KVFAZIADetector.h.
Definition at line 200 of file KVFAZIADetector.h.
|
inlineprivate |
Set FPGA energy value in appropriate KVDetectorSignal of detector and set its state to 'fired'. Returns address of the signal which was set.
Definition at line 66 of file KVFAZIADetector.h.
Definition at line 204 of file KVFAZIADetector.h.
|
overridevirtual |
Reimplemented from TNamed.
Definition at line 117 of file KVFAZIADetector.cpp.
|
private |
detector name are assumed to be defined as label-xxx where xxx is computed as follow : 100*block number+10*quartet number+telescope number and label can be SI1, SI2 or CSI For example SI1-123 is the Silicon Si1 of the block 1, the quartet 2 and the telescope 3
Definition at line 135 of file KVFAZIADetector.cpp.
Set PSA results in appropriate KVDetectorSignals of detector and set their state to 'fired'
Definition at line 115 of file KVFAZIADetector.h.
Copy waveform data from TGraph into the signal with the given name (QH1-345 etc.)
Then perform analysis of signal and set the values of the corresponding KVDetectorSignalValue objects
Definition at line 417 of file KVFAZIADetector.cpp.
|
overrideprivatevirtual |
Restrict list of signals which are used to fill raw data TTrees.
Reimplemented from KVDetector.
Definition at line 242 of file KVFAZIADetector.cpp.
|
friend |
Definition at line 31 of file KVFAZIADetector.h.
|
private |
Definition at line 35 of file KVFAZIADetector.h.
|
private |
SI1=0(kSI1) SI2=1(kSI2) CSI=2(kCSI)
Definition at line 38 of file KVFAZIADetector.h.
|
private |
100*block+10*quartet+telescope
Definition at line 39 of file KVFAZIADetector.h.
|
private |
Definition at line 47 of file KVFAZIADetector.h.
|
private |
Definition at line 40 of file KVFAZIADetector.h.
|
private |
Definition at line 44 of file KVFAZIADetector.h.
|
private |
Definition at line 45 of file KVFAZIADetector.h.
|
private |
thresholds defined for this detector
Definition at line 43 of file KVFAZIADetector.h.
|
private |
Definition at line 36 of file KVFAZIADetector.h.
|
private |
list of electronics signal (current, charge, etc... )
Definition at line 33 of file KVFAZIADetector.h.
|
private |
Definition at line 37 of file KVFAZIADetector.h.