KaliVeda
Toolkit for HIC analysis
|
Describe an experimental set-up coupling two or more different detector arrays.
KVExpSetUp combines two or more existing KVMultiDetArray objects to describe the geometry, detectors, etc. of an experiment coupling several different arrays. Each KVMultiDetArray can have its own dedicated calibration database (KVExpDB and KVUpdater class) used to store and set calibration parameters.
Definition at line 25 of file KVExpSetUp.h.
#include <KVExpSetUp.h>
Private Member Functions | |
void | copy_fired_parameters_to_recon_param_list () |
void | for_each_array (const std::function< void(KVMultiDetArray *)> &f, const std::function< bool(KVMultiDetArray *)> &break_cond=[](KVMultiDetArray *) { return false;}) const |
Bool_t | handle_raw_data_event_mfmframe (const MFMCommonFrame &mfmframe) |
void | init () |
virtual void | SetExpectedDetectorSignalNames () |
Private Attributes | |
KVList | fMDAList |
list of multidetarrays | |
KVString | lmultidetarrayclasses |
Additional Inherited Members | |
Public Types inherited from KVMultiDetArray | |
enum | EFilterType { kFilterType_Geo , kFilterType_GeoThresh , kFilterType_Full } |
filter types. values of fFilterType More... | |
Public Types inherited from KVBase | |
enum | EKaliVedaBits { kIsKaliVedaObject = BIT(23) } |
Public Types inherited from TObject | |
enum | EDeprecatedStatusBits |
enum | EStatusBits |
Static Public Member Functions inherited from KVMultiDetArray | |
static TGeoHMatrix * | GetVolumePositioningMatrix (Double_t distance, Double_t theta, Double_t phi, TGeoTranslation *postTrans=nullptr) |
static KVMultiDetArray * | MakeMultiDetector (const Char_t *dataset_name, Int_t run=-1, TString classname="KVMultiDetArray") |
static void | SetMakeMultiDetectorPhysicsParametersOnly (Bool_t on=kTRUE) |
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. | |
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.) | |
static const Char_t * | GetINCDIRFilePath (const Char_t *namefile="") |
static const Char_t * | GetKVBuildDate () |
Returns KaliVeda build date. | |
static const Char_t * | GetKVBuildDir () |
Returns top-level directory used for build. | |
static const Char_t * | GetKVBuildTime () |
Returns KaliVeda build time. | |
static const Char_t * | GetKVBuildType () |
Returns KaliVeda build type (cmake build: Release, Debug, RelWithDebInfo, ...) | |
static const Char_t * | GetKVBuildUser () |
Returns username of person who performed build. | |
static const Char_t * | GetKVSourceDir () |
Returns top-level directory of source tree used for build. | |
static const Char_t * | GetKVVersion () |
Returns KaliVeda version string. | |
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. | |
static const Char_t * | gitCommit () |
Returns last git commit of sources. | |
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. | |
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) |
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 | |
KVExpSetUp::KVExpSetUp | ( | ) |
Default constructor.
Definition at line 32 of file KVExpSetUp.cpp.
|
virtual |
Destructor.
Definition at line 43 of file KVExpSetUp.cpp.
|
inlinevirtual |
Calling this method disables any selection of "OK" reconstructed particles according to their calibration code status, for all arrays in the setup.
Reimplemented from KVMultiDetArray.
Definition at line 199 of file KVExpSetUp.h.
|
inlinevirtual |
Calling this method disables any selection of "OK" reconstructed particles according to their identification code status, for all arrays in the setup.
Reimplemented from KVMultiDetArray.
Definition at line 189 of file KVExpSetUp.h.
|
virtual |
Overrides KVMultiDetArray method We use the "ARRAY" parameter of the reconstructed particle (if set) to know which array of the setup detected it.
Reimplemented from KVMultiDetArray.
Definition at line 143 of file KVExpSetUp.cpp.
Build the combined arrays
The name of the setup will be "[det1]-[det2]-..." default ROOT geometry for all arrays
Reimplemented from KVMultiDetArray.
Definition at line 58 of file KVExpSetUp.cpp.
call Clear(opt) for each multidetector in the setup
Reimplemented from KVMultiDetArray.
Definition at line 95 of file KVExpSetUp.h.
|
inlineprivatevirtual |
Reimplemented from KVMultiDetArray.
Definition at line 74 of file KVExpSetUp.h.
|
inlinevirtual |
Call FillDetectorList for each array in turn, until DetList gets filled This is because some arrays may override the KVMultiDetArray::FillDetectorList method
Reimplemented from KVMultiDetArray.
Definition at line 104 of file KVExpSetUp.h.
|
inlineprivate |
perform the same function call f for each array in the setup
if break_cond is given, it is tested after each call to f, and if it returns true, we stop the loop
Definition at line 27 of file KVExpSetUp.h.
|
inlinevirtual |
Return pointer to array in set up with given name
Reimplemented from KVMultiDetArray.
Definition at line 118 of file KVExpSetUp.h.
void KVExpSetUp::GetArrayMultiplicities | ( | KVReconstructedEvent * | e, |
KVNameValueList & | m, | ||
Option_t * | opt = "" |
||
) |
Calculate multiplicities of particles in each array of the setup. They will appear in the KVNameValueList as parameters with the name of the array. e.g.
"INDRA" = 21 "FAZIA" = 3
Any option given will be used to determine the type of event iterator used - see KVEvent::GetNextParticleIterator(Option_t*).
Definition at line 176 of file KVExpSetUp.cpp.
|
inlinevirtual |
Override KVMultiDetArray method Call each array in turn and add fired groups to the KVDetectorEvent
Reimplemented from KVMultiDetArray.
Definition at line 125 of file KVExpSetUp.h.
|
inlinevirtual |
Override KVMultiDetArray method Call each array in turn to get reconstructor for group
Reimplemented from KVMultiDetArray.
Definition at line 136 of file KVExpSetUp.h.
|
inlineprivatevirtual |
Handle single (not merged) MFM frames of raw data. It is assumed that each frame type corresponds to a different detector array. Therefore as soon as one of them treats the data in the frame, we return kTRUE.
Reimplemented from KVMultiDetArray.
Definition at line 53 of file KVExpSetUp.h.
|
virtual |
Set fRawDataReader pointer in each sub-array and call prepare_to_handle_new_raw_data() for each sub-array, before treating raw data.
copy fired signals & detectors of sub-arrays to main lists
copy any reconstruction parameters from sub-arrays to main list
Reimplemented from KVMultiDetArray.
Definition at line 204 of file KVExpSetUp.cpp.
Definition at line 16 of file KVExpSetUp.cpp.
|
inlinevirtual |
Calls InitialiseRawDataReading() for each array of the setup in turn
Reimplemented from KVMultiDetArray.
Definition at line 220 of file KVExpSetUp.h.
|
inlinevirtual |
Override base method in order to set general identification codes for telescopes in each array
Reimplemented from KVMultiDetArray.
Definition at line 210 of file KVExpSetUp.h.
Reimplemented from KVMultiDetArray.
Definition at line 162 of file KVExpSetUp.h.
Set calibrators for all detectors for the run
Reimplemented from KVMultiDetArray.
Definition at line 171 of file KVExpSetUp.h.
Call method for each array in the set up
Reimplemented from KVMultiDetArray.
Definition at line 179 of file KVExpSetUp.h.
|
inlineprivatevirtual |
Reimplemented from KVMultiDetArray.
Definition at line 82 of file KVExpSetUp.h.
|
inlinevirtual |
Reimplemented from KVMultiDetArray.
Definition at line 152 of file KVExpSetUp.h.
Set simulation mode of each array
Reimplemented from KVMultiDetArray.
Definition at line 230 of file KVExpSetUp.h.
Set target both for the overall combined array and each individual array
Reimplemented from KVMultiDetArray.
Definition at line 239 of file KVExpSetUp.h.
|
private |
list of multidetarrays
Definition at line 47 of file KVExpSetUp.h.
|
private |
Definition at line 48 of file KVExpSetUp.h.