KaliVeda
Toolkit for HIC analysis
|
Base class for FAZIA detectors.
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 49 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) } |
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 Char_t *class_name, KVString &imp_file, KVString &dec_file, const Char_t *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="") |
static Bool_t | GetDataSetEnv (const Char_t *dataset, const Char_t *type, Bool_t defval) |
static const Char_t * | GetDataSetEnv (const Char_t *dataset, const Char_t *type, const Char_t *defval) |
static Double_t | GetDataSetEnv (const Char_t *dataset, const Char_t *type, Double_t 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 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 | 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 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... | |
Bool_t | SetProperties () |
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 |
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 71 of file KVFAZIADetector.h.
KVFAZIADetector::KVFAZIADetector | ( | ) |
Default constructor.
Definition at line 52 of file KVFAZIADetector.cpp.
Create detector of given material type and thickness (in centimetres)
Definition at line 63 of file KVFAZIADetector.cpp.
|
virtual |
Destructor.
Definition at line 74 of file KVFAZIADetector.cpp.
If opt="N" we do not reset any raw data, signals, etc.
Reimplemented from KVDetector.
Definition at line 107 of file KVFAZIADetector.cpp.
void KVFAZIADetector::ComputePSA | ( | ) |
Perform Pulse Shape Analysis on all signals.
Definition at line 455 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 89 of file KVFAZIADetector.cpp.
Returns kTRUE if detector was hit (fired) in an event
The test is made on charge signals of the detectors if one of them return kTRUE to KVSignal::IsFired() method KVDetector::Fired() return kTRUE if not return kFALSE and the detector will not be considered in following analysis except if one detector after it has been fired
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 292 of file KVFAZIADetector.cpp.
|
inline |
Definition at line 110 of file KVFAZIADetector.h.
|
inline |
Definition at line 178 of file KVFAZIADetector.h.
|
inline |
Definition at line 182 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 100 of file KVFAZIADetector.h.
|
inlinevirtual |
Return index of detector, defined as 100*block+10*quartet+telescope
Reimplemented from KVDetector.
Definition at line 114 of file KVFAZIADetector.h.
const KVSeqCollection * KVFAZIADetector::GetListOfSignals | ( | ) | const |
Definition at line 445 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 244 of file KVFAZIADetector.cpp.
Int_t KVFAZIADetector::GetNumberOfSignals | ( | ) | const |
Definition at line 436 of file KVFAZIADetector.cpp.
|
inline |
Definition at line 127 of file KVFAZIADetector.h.
Definition at line 37 of file KVFAZIADetector.cpp.
Access detector signal by name, i.e. as in FAZIA raw data e.g. "QL1-231"
Definition at line 399 of file KVFAZIADetector.cpp.
Access signal with given index in list of detector's signals 0 <= idx < KVFAZIADetector::GetNumberOfSignals()
Definition at line 423 of file KVFAZIADetector.cpp.
Access detector signal of given type: "I1", "I2", "Q2", "Q3", "QH1", "QL1".
Definition at line 411 of file KVFAZIADetector.cpp.
|
inline |
Definition at line 131 of file KVFAZIADetector.h.
Bool_t KVFAZIADetector::HasSignal | ( | ) | const |
Returns kTRUE if detector has at least 1 associated signal.
Definition at line 387 of file KVFAZIADetector.cpp.
default initialisations
Definition at line 19 of file KVFAZIADetector.cpp.
|
inline |
Returns kTRUE if detector is part of elastic scattering monitor telescope
Definition at line 121 of file KVFAZIADetector.h.
KVDetectorSignal * KVFAZIADetector::SetBaseLine | ( | int | sigid, |
Float_t | baseline | ||
) |
Set signal baseline computed inside the FPGA. Returns address of the signal which was set.
Definition at line 503 of file KVFAZIADetector.cpp.
Definition at line 186 of file KVFAZIADetector.h.
KVDetectorSignal * KVFAZIADetector::SetFPGAEnergy | ( | int | sigid, |
Int_t | idx, | ||
Double_t | energy | ||
) |
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 471 of file KVFAZIADetector.cpp.
Definition at line 190 of file KVFAZIADetector.h.
|
virtual |
Reimplemented from TNamed.
Definition at line 119 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 137 of file KVFAZIADetector.cpp.
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 365 of file KVFAZIADetector.cpp.
|
private |
Definition at line 53 of file KVFAZIADetector.h.
|
private |
SI1=0(kSI1) SI2=1(kSI2) CSI=2(kCSI)
Definition at line 56 of file KVFAZIADetector.h.
|
private |
100*block+10*quartet+telescope
Definition at line 57 of file KVFAZIADetector.h.
|
private |
Definition at line 65 of file KVFAZIADetector.h.
|
private |
Definition at line 58 of file KVFAZIADetector.h.
|
private |
Definition at line 62 of file KVFAZIADetector.h.
|
private |
Definition at line 63 of file KVFAZIADetector.h.
|
private |
thresholds defined for this detector
Definition at line 61 of file KVFAZIADetector.h.
|
private |
Definition at line 54 of file KVFAZIADetector.h.
|
private |
list of electronics signal (current, charge, etc... )
Definition at line 51 of file KVFAZIADetector.h.
|
private |
Definition at line 55 of file KVFAZIADetector.h.