KaliVeda
Toolkit for HIC analysis
|
#include <KVFAZIA.h>
Public Types | |
enum | ECodes { NO_CALIBRATION_ATTEMPTED = 0 , NORMAL_CALIBRATION = 1 , SOME_ENERGY_LOSSES_CALCULATED = 2 , WARNING_CSI_MAX_ENERGY = 3 , ENERGY_LOSSES_TENTATIVELY_CALCULATED = 4 } |
Calibration quality codes attributed to particles reconstructed from data. More... | |
enum | IDCodes { NO_IDENTIFICATION = -1 , ID_GAMMA = 0 , ID_SI1_PSA = 11 , ID_SI1_SI2 = 12 , ID_SI1_CSI = 13 , ID_SI2_PSA = 22 , ID_SI2_CSI = 23 , ID_SI12_CSI = 123 , ID_CSI_PSA = 33 , ID_STOPPED_IN_FIRST_STAGE = 5 , ID_SI1_SI2_MAYBE_PUNCH_THROUGH = 120 , ID_SI1_SI2_PUNCH_THROUGH = 121 , ID_SI1_PUNCH_THROUGH = 110 , ID_INCOHERENT = 666 } |
Identification quality codes attributed to particles reconstructed from data. More... | |
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 |
Private Attributes | |
TString | fCorrespondanceFile |
Bool_t fBuildTarget; //kTRUE to include target frame in the geometry. | |
KVString | fDetectorLabels |
Double_t | fFDist |
distance of FAZIA detectors from target (in cm) | |
TString | fFGeoType |
type of FAZIA geometry (="compact",...) | |
Double_t | fFThetaMin |
minimum polar angle for compact geometry (in degrees) | |
Double_t | fImport_dPhi |
for geometry import | |
Double_t | fImport_dTheta |
for geometry import | |
Double_t | fImport_PhiMax |
for geometry import | |
Double_t | fImport_PhiMin |
for geometry import | |
Double_t | fImport_ThetaMax |
for geometry import | |
Double_t | fImport_ThetaMin |
for geometry import | |
Double_t | fImport_Xorg |
for geometry import | |
Double_t | fImport_Yorg |
for geometry import | |
Double_t | fImport_Zorg |
for geometry import | |
Int_t | fNblocks |
number of blocks | |
Double_t | fQ2risetime |
Double_t | fQ3fastrisetime |
Double_t | fQ3slowrisetime |
Double_t | fQH1risetime |
values of trapezoidal filter rise time set in the fpgas defined in .kvrootrc | |
int | fQuartet [8][2] |
quartet number from #FEE and #FPGA | |
KVString | fSignalTypes |
Int_t | fStartingBlockNumber |
int | fTelescope [8][2] |
telescope number from #FEE and #FPGA | |
KVFAZIATrigger | fTrigger |
trigger pattern read from data for each event | |
double | oldfaziats = -1. |
dummy ts to control trigger info transmission rate | |
Additional Inherited Members | |
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 | |
enum KVFAZIA::ECodes |
Calibration quality codes attributed to particles reconstructed from data.
enum KVFAZIA::IDCodes |
Identification quality codes attributed to particles reconstructed from data.
KVFAZIA::KVFAZIA | ( | const Char_t * | title = "" | ) |
Default constructor.
Definition at line 54 of file KVFAZIA.cpp.
|
virtual |
Destructor.
Definition at line 243 of file KVFAZIA.cpp.
Definition at line 254 of file KVFAZIA.cpp.
Build the FAZIA array.
Reimplemented from KVMultiDetArray.
Definition at line 465 of file KVFAZIA.cpp.
|
privatevirtual |
methods to be implemented in child classes
Called by the Build method.
Reimplemented in KVFAZIA_2B, KVFAZIACOR, KVFAZIALNS17, KVFAZIALNS2016, KVFAZIAMidRapExplorer, KVFAZIANFS, KVFAZIASYM, KVFAZIAZERO, KVFAZIETO, and KVISOFAZIA.
Definition at line 431 of file KVFAZIA.cpp.
|
privatevirtual |
Reimplemented in KVFAZIANFS.
Definition at line 442 of file KVFAZIA.cpp.
|
inlineprivatevirtual |
override KVMultiDetArray method. raw data signals are not copied to the general (event) parameter list, they are stored in the lists of the individual particles and reset in the detectors when the particles are read back.
the formatting of the signal names is not compatible with the code in KVReconstructedEvent::Streamer, hence the FAZIA-specific treatment which is handled by KVFAZIA::FillDetectorList.
Reimplemented from KVMultiDetArray.
|
private |
set up correspondence between FPGA number/FEE number (from acquisition) and Quartet/Telescope numbers
Definition at line 882 of file KVFAZIA.cpp.
|
virtual |
Set identification telescope objects for FAZIA geometry by hand.
Reimplemented from KVMultiDetArray.
Definition at line 167 of file KVFAZIA.cpp.
|
inlineprivatevirtual |
Reimplemented in KVFAZIACOR, KVFAZIALNS17, KVFAZIALNS2016, KVFAZIASYM, and KVFAZIAZERO.
|
virtual |
Protected method, called when required to fill fDetList with pointers to the detectors whose names are stored in fDetNames. Also set all raw data values in the detectors.
Reimplemented from KVMultiDetArray.
Definition at line 546 of file KVFAZIA.cpp.
|
private |
Look for the geometry object <-> detector name correspondance file in the dataset directory If not found, we create it
Definition at line 266 of file KVFAZIA.cpp.
|
virtual |
First step in event reconstruction based on current status of detectors in array.
Fills the given KVDetectorEvent with the list of all groups which have fired. i.e. loop over all groups of the array and test whether KVGroup::Fired() returns true or false.
This can be made more efficient if the detectors which were hit in the event are already known: then their list should be given to argument dets
If the list of fired detectors dets is not given, we use the internal fFiredACQParams list which is filled with all hit detectors when raw data is treated in treat_event()
Reimplemented from KVMultiDetArray.
Definition at line 500 of file KVFAZIA.cpp.
Reimplemented from KVMultiDetArray.
|
privatevirtual |
Called by the Build method.
Reimplemented in KVFAZIA_2B, KVFAZIACOR, KVFAZIALNS17, KVFAZIALNS2016, KVFAZIAMidRapExplorer, KVFAZIANFS, KVFAZIASYM, KVFAZIAZERO, KVFAZIETO, and KVISOFAZIA.
Definition at line 366 of file KVFAZIA.cpp.
|
inlinevirtual |
Reimplemented from KVMultiDetArray.
Reimplemented from KVMultiDetArray.
|
inlineprivatevirtual |
The following methods are used by the current implementation of the filter. They should be removed in future implementations.
return a general calibration code for correctly calibrated particles
Reimplemented from KVMultiDetArray.
|
virtual |
Specialized group reconstructor for FAZIA.
Reimplemented from KVMultiDetArray.
Definition at line 594 of file KVFAZIA.cpp.
Definition at line 78 of file KVFAZIA.cpp.
Definition at line 609 of file KVFAZIA.cpp.
|
inline |
std::string KVFAZIA::GetTriggerForCurrentRun | ( | ) | const |
Returns the symbolic name for the principal DAQ trigger used for the current run e.g. 'Mult2', 'Mult1/100', etc. (see SetTriggerPatternsForDataSet()).
This can be used to test if the actual DAQ trigger for an event was consistent with the principal trigger by doing:
Definition at line 129 of file KVFAZIA.cpp.
|
privatevirtual |
Treatment of raw data in MFM frames with type MFM_FAZIA_FRAME_TYPE The timestamp is extracted from the frame header and added to fReconParameters in a 64 bit parameter with name "FAZIA.TS"
Reimplemented from KVMultiDetArray.
Definition at line 845 of file KVFAZIA.cpp.
|
privatevirtual |
Reimplemented from KVMultiDetArray.
Definition at line 641 of file KVFAZIA.cpp.
Override base method in order to read FAZIA trigger for each run.
Reimplemented from KVMultiDetArray.
Definition at line 105 of file KVFAZIA.cpp.
|
privatevirtual |
Finalise description of array performing all operations which require ROOT geometry to be closed
Reimplemented from KVMultiDetArray.
Definition at line 335 of file KVFAZIA.cpp.
|
inlineprivate |
Read a file containing runlists for each principal trigger used during an experiment
The file should be in TEnv format like so:
where each trigger pattern name must be known and declared to occur during the dataset (see SetTriggerPatternsForDataSet()) and the list of runs are given using KVNumberList syntax.
The data is added to the database in a table 'FAZIA.Triggers'.
Definition at line 927 of file KVFAZIA.cpp.
|
inline |
Set angular arguments for call to KVGeoImport::ImportGeometry in KVFAZIA::Build Also set origin for geometry import to (xorg,yorg,zorg) [default: (0,0,0)]
|
privatevirtual |
Set the FAZIA-specific general identification code for the given telescope.
Reimplemented from KVMultiDetArray.
Definition at line 970 of file KVFAZIA.cpp.
define the format of detectors name label-index where index = block*100+quartet*10+telescope example : SI1-123 is the Silicon 1 of the block 1, the quartet 2 and the telescope 3
Reimplemented in KVFAZIAMidRapExplorer, KVFAZIACOR, KVFAZIALNS17, KVFAZIALNS2016, KVFAZIANFS, KVFAZIASYM, and KVFAZIAZERO.
Definition at line 304 of file KVFAZIA.cpp.
|
virtual |
Overrides base method in order to set the value of the trigger bit pattern for the event.
Reimplemented from KVMultiDetArray.
Definition at line 92 of file KVFAZIA.cpp.
|
inlineprivate |
Read and set up definitions of trigger patterns for this dataset. These should be given by variables such as:
where [name*]='Mult1','Mult1/100','Mult2', etc. (see KVFAZIATrigger for known trigger patterns).
and [value*] is the value of the corresponding bit pattern, e.g. if bit '3' (0b100) corresponds to 'Mult2' (i.e. multiplicity >= 2) then this would give
Definition at line 394 of file KVFAZIA.cpp.
|
private |
Read raw data for an event.
Definition at line 681 of file KVFAZIA.cpp.
Definition at line 650 of file KVFAZIA.cpp.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |