KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVINDRADB Class Reference

Detailed Description

DataBase of parameters for an INDRA campaign.

Database containing information on runs, systems, calibrations etc. for an INDRA experiment or set of experiments (dataset).

Each dataset is described by a KVDataSet object which is initialised by the KVDataSetManager.

For each dataset, a directory exists under $KVROOT/KVFiles/name_of_dataset, where it is assumed the database for this dataset can be found.

If DataBase.root does not exist, KVDataSet will try to rebuild it using the appropriate KVINDRADB class (see Plugins in $KVROOT/KVFiles/.kvrootrc).

By default, KVINDRADB::Build() will read any or all of the standard format files Runlist.csv, Systems.dat and ChIoPressures.dat which may be found in the dataset's directory.

Definition at line 59 of file KVINDRADB.h.

#include <KVINDRADB.h>

Inheritance diagram for KVINDRADB:

Public Member Functions

 KVINDRADB ()
 
 KVINDRADB (const Char_t *name)
 
virtual ~KVINDRADB ()
 reset global pointer gIndraDB if it was pointing to this database
 
void AddTape (KVDBTape *r)
 
virtual void Build ()
 
virtual void cd ()
 
KVListGetCalibrationPeaks (Int_t run, KVDetector *detector=0, Int_t peak_type=-1, Int_t signal_type=0, Double_t peak_energy=-1.0)
 
Double_t GetEventCrossSection (const Char_t *system, Int_t Mult_trigger, Double_t Q_apres_cible, Double_t Coul_par_top=1.e-10) const
 
Double_t GetEventCrossSection (Int_t run, Double_t Q_apres_cible, Double_t Coul_par_top=1.e-10) const
 
Double_t GetEventCrossSection (Int_t run1, Int_t run2, Double_t Q_apres_cible, Double_t Coul_par_top=1.e-10) const
 
Double_t GetEventCrossSection (KVNumberList runs, Double_t Q_apres_cible, Double_t Coul_par_top=1.e-10) const
 
Double_t GetMeanGDirFreq (Int_t run) const
 
Float_t GetMeanPulser (const Char_t *, int)
 
KVINDRAPulserDataTreeGetPulserData ()
 
KVINDRADBRunGetRun (Int_t run) const
 
virtual Double_t GetRunLengthFromGeneDirect (int run) const
 
virtual KVDBTapeGetTape (Int_t tape) const
 
virtual KVSeqCollectionGetTapes () const
 
Double_t GetTotalCrossSection (const Char_t *system, Int_t Mult_trigger, Double_t Q_apres_cible, Double_t Coul_par_top=1.e-10) const
 
Double_t GetTotalCrossSection (Int_t run, Double_t Q_apres_cible, Double_t Coul_par_top=1.e-10) const
 
Double_t GetTotalCrossSection (Int_t run1, Int_t run2, Double_t Q_apres_cible, Double_t Coul_par_top=1.e-10) const
 
Double_t GetTotalCrossSection (KVNumberList runs, Double_t Q_apres_cible, Double_t Coul_par_top=1.e-10) const
 
Double_t GetTotalCrossSection (TH1 *events_histo, Double_t Q_apres_cible, Double_t Coul_par_top=1.e-10)
 
virtual void GoodRunLine ()
 
void ReadNewRunList ()
 Read new-style runlist (written using KVDBRun v.10 or later)
 
virtual void ReadObjects (TFile *)
 Read associated objects (i.e. KVINDRAPulserDataTree's TTree) from file.
 
virtual void WriteObjects (TFile *)
 Write associated objects (i.e. KVINDRAPulserDataTree's TTree) in file.
 
- Public Member Functions inherited from KVExpDB
 KVExpDB ()
 Default constructor.
 
 KVExpDB (const Char_t *name)
 Constructor inherited from KVDataBase.
 
 KVExpDB (const Char_t *name, const Char_t *title)
 Constructor inherited from KVDataBase.
 
virtual ~KVExpDB ()
 Destructor.
 
void AddRun (KVDBRun *r)
 
void AddSystem (KVDBSystem *r)
 
Bool_t FindCalibFile (const Char_t *type, TString &fullpath, const TString &array_name="") const
 
TString GetCalibFileName (const Char_t *type) const
 
const Char_tGetDataSetDir () const
 
virtual TString GetDBEnv (const Char_t *) const
 
KVDBRunGetDBRun (Int_t number) const
 
TString GetDBType () const
 
const KVNumberListGetRunList () const
 
virtual KVSeqCollectionGetRuns () const
 
virtual KVDBSystemGetSystem (const Char_t *system) const
 
virtual KVSeqCollectionGetSystems () const
 
ULong64_t GetTotalEvents (const KVString &system) const
 Return total number of events for given system.
 
ULong64_t GetTotalEvents (int first_run, int last_run=-1) const
 
virtual void LinkListToRunRange (TList *list, const KVNumberList &nl)
 Link the records contained in the list to the set of runs (see LinkRecordToRunRanges).
 
virtual void LinkListToRunRanges (TList *list, UInt_t rr_number, UInt_t run_ranges[][2])
 Link the records contained in the list to the set of runs (see LinkRecordToRunRanges).
 
virtual void LinkRecordToRun (KVDBRecord *rec, Int_t run)
 
virtual void LinkRecordToRunRange (KVDBRecord *rec, const KVNumberList &nl)
 
virtual void LinkRecordToRunRange (KVDBRecord *rec, UInt_t first_run, UInt_t last_run)
 
virtual void LinkRecordToRunRanges (KVDBRecord *rec, UInt_t rr_number, UInt_t run_ranges[][2])
 
virtual void PrintRuns (KVNumberList &) const
 
void RemoveSystem (KVDBSystem *s)
 
virtual void Save (const Char_t *)
 
void SetDataSet (const TString &s)
 
void SetDataSetDir (const Char_t *d)
 
void SetDBType (const TString &s)
 
void WriteRunListFile () const
 
void WriteSystemsFile () const
 
- Public Member Functions inherited from KVDataBase
 KVDataBase ()
 
 KVDataBase (const Char_t *name)
 
 KVDataBase (const Char_t *name, const Char_t *title)
 
virtual ~KVDataBase ()
 reset global database pointer if it was pointing to this DB
 
virtual KVDBTableAddTable (const Char_t *name, const Char_t *title, Bool_t unique=kFALSE)
 
virtual Bool_t AddTable (KVDBTable *table)
 
virtual KVDBRecordGetRecord (const Char_t *table_name, const Char_t *rec_name) const
 
virtual KVDBTableGetTable (const Char_t *table) const
 
virtual TListGetTables () const
 
virtual void Print (Option_t *option="") const
 
- Public Member Functions inherited from TFolder
 TFolder ()
 
 TFolder (const char *name, const char *title)
 
virtual ~TFolder ()
 
virtual void Add (TObject *obj)
 
TFolderAddFolder (const char *name, const char *title, TCollection *collection=nullptr)
 
void Browse (TBrowser *b) override
 
void Clear (Option_t *option="") override
 
void Copy (TObject &) const override
 
virtual const char * FindFullPathName (const char *name) const
 
virtual const char * FindFullPathName (const TObject *obj) const
 
TObjectFindObject (const char *name) const override
 
TObjectFindObject (const TObject *obj) const override
 
virtual TObjectFindObjectAny (const char *name) const
 
TCollectionGetListOfFolders () const
 
TClassIsA () const override
 
Bool_t IsFolder () const override
 
Bool_t IsOwner () const
 
void ls (Option_t *option="") const override
 
virtual Int_t Occurence (const TObject *obj) const
 
void RecursiveRemove (TObject *obj) override
 
virtual void Remove (TObject *obj)
 
void SaveAs (const char *filename="", Option_t *option="") const override
 
virtual void SetOwner (Bool_t owner=kTRUE)
 
void Streamer (TBuffer &) override
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TNamed
 TNamed ()
 
 TNamed (const char *name, const char *title)
 
 TNamed (const TNamed &named)
 
 TNamed (const TString &name, const TString &title)
 
virtual ~TNamed ()
 
void Clear (Option_t *option="") override
 
TObjectClone (const char *newname="") const override
 
Int_t Compare (const TObject *obj) const override
 
void Copy (TObject &named) const override
 
virtual void FillBuffer (char *&buffer)
 
const char * GetName () const override
 
const char * GetTitle () const override
 
ULong_t Hash () const override
 
TClassIsA () const override
 
Bool_t IsSortable () const override
 
void ls (Option_t *option="") const override
 
TNamedoperator= (const TNamed &rhs)
 
void Print (Option_t *option="") const override
 
virtual void SetName (const char *name)
 
virtual void SetNameTitle (const char *name, const char *title)
 
virtual void SetTitle (const char *title="")
 
virtual Int_t Sizeof () const
 
void Streamer (TBuffer &) override
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TObject
 TObject ()
 
 TObject (const TObject &object)
 
virtual ~TObject ()
 
void AbstractMethod (const char *method) const
 
virtual void AppendPad (Option_t *option="")
 
ULong_t CheckedHash ()
 
virtual const char * ClassName () const
 
virtual void Delete (Option_t *option="")
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 
virtual void Draw (Option_t *option="")
 
virtual void DrawClass () const
 
virtual TObjectDrawClone (Option_t *option="") const
 
virtual void Dump () const
 
virtual void Error (const char *method, const char *msgfmt,...) const
 
virtual void Execute (const char *method, const char *params, Int_t *error=nullptr)
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=nullptr)
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 
virtual Option_tGetDrawOption () const
 
virtual const char * GetIconName () const
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 
virtual Option_tGetOption () const
 
virtual UInt_t GetUniqueID () const
 
virtual Bool_t HandleTimer (TTimer *timer)
 
Bool_t HasInconsistentHash () const
 
virtual void Info (const char *method, const char *msgfmt,...) const
 
virtual Bool_t InheritsFrom (const char *classname) const
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 
virtual void Inspect () const
 
void InvertBit (UInt_t f)
 
Bool_t IsDestructed () const
 
virtual Bool_t IsEqual (const TObject *obj) const
 
R__ALWAYS_INLINE Bool_t IsOnHeap () const
 
R__ALWAYS_INLINE Bool_t IsZombie () const
 
void MayNotUse (const char *method) const
 
virtual Bool_t Notify ()
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 
void operator delete (void *ptr)
 
void operator delete (void *ptr, void *vp)
 
void operator delete[] (void *ptr)
 
void operator delete[] (void *ptr, void *vp)
 
voidoperator new (size_t sz)
 
voidoperator new (size_t sz, void *vp)
 
voidoperator new[] (size_t sz)
 
voidoperator new[] (size_t sz, void *vp)
 
TObjectoperator= (const TObject &rhs)
 
virtual void Paint (Option_t *option="")
 
virtual void Pop ()
 
virtual Int_t Read (const char *name)
 
void ResetBit (UInt_t f)
 
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 
void SetBit (UInt_t f)
 
void SetBit (UInt_t f, Bool_t set)
 
virtual void SetDrawOption (Option_t *option="")
 
virtual void SetUniqueID (UInt_t uid)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 
R__ALWAYS_INLINE Bool_t TestBit (UInt_t f) const
 
Int_t TestBits (UInt_t f) const
 
virtual void UseCurrentStyle ()
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0)
 
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) const
 
- Public Member Functions inherited from KVINDRARunListReader
 KVINDRARunListReader ()
 
virtual ~KVINDRARunListReader ()
 
void CloseRLFile ()
 
KVRunListLineGetLineReader () const
 
Int_t GetRLLineNumber () const
 
Int_t GetRunListTrigger (const Char_t *field, const Char_t *fmt)
 
Bool_t IsNewRunList () const
 
Bool_t OpenRLFile (const Char_t *)
 
Bool_t ReadRLLine ()
 
void ReadRunList (const Char_t *name="")
 
void SetRLCommentChar (Char_t c)
 
void SetRLSeparatorChar (Char_t c)
 

Private Member Functions

void _init_MeanGDir_func () const
 
void CloseCalibrationPeakFile ()
 Close file containing database of calibration peaks.
 
std::ifstream & GetPeakFileStream ()
 
void init ()
 
Bool_t OpenCalibrationPeakFile ()
 calibration peaks database
 
virtual void ReadAbsentDetectors ()
 
virtual void ReadCalibCsI ()
 
virtual void ReadChannelVolt ()
 
virtual void ReadChIoPressures ()
 
virtual void ReadCsITotalLightGainCorrections ()
 
virtual void ReadGainList ()
 Read the file listing any detectors whose gain value changes during exeriment.
 
virtual void ReadLightEnergyCsI (const Char_t *, KVDBTable *)
 
virtual void ReadOoOACQParams ()
 
virtual void ReadOoODetectors ()
 
virtual void ReadPedestalList ()
 
virtual void ReadVoltEnergyChIoSi ()
 

Private Attributes

std::ifstream __ifpeaks
 ifstream for calibration peaks file
 
KVDBTablefAbsentDet
 (optional) Liste les detecteurs absents
 
KVDBTablefChanVolt
 ChIo/Si channel-volt calibration parameters.
 
KVDBTablefChIoPressures
 General information.
 
KVDBTablefCsILumCorr
 table of CsI gain corrections for total light output
 
KVDBTablefGains
 (optional) table of detector gains, in case they change from run to run
 
KVDBTablefLitEnerCsI
 CsI light-energy calibration for Z>1.
 
KVDBTablefLitEnerCsIZ1
 CsI light-energy calibration for Z=1.
 
TF1fMeanGDir
 mean frequency of GENE_DIRECT vs. run number
 
KVDBTablefOoOACQPar
 (optional) Liste des parametres d acquisition ne marchant pas
 
KVDBTablefOoODet
 (optional) Liste les detecteurs hors service
 
KVDBTablefPedestals
 table of pedestal files
 
KVINDRAPulserDataTreefPulserData
 mean values of pulsers for all detectors & runs
 
KVDBTablefTapes
 table of data tapes
 
KVDBTablefVoltMeVChIoSi
 ChIo/Si volt-energy calibration.
 

Additional Inherited Members

- Public Types inherited from TObject
enum  EDeprecatedStatusBits
 
enum  EStatusBits
 
- Static Public Member Functions inherited from KVExpDB
static KVExpDBMakeDataBase (const Char_t *name, const Char_t *datasetdir)
 
- Static Public Member Functions inherited from TFolder
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TNamed
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TObject
static TClassClass ()
 
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 TFolder
TCollectionfFolders
 
Bool_t fIsOwner
 
- Protected Attributes inherited from TNamed
TString fName
 
TString fTitle
 
- Protected Attributes inherited from TObject
 kOnlyPrepStep
 

Constructor & Destructor Documentation

◆ KVINDRADB() [1/2]

KVINDRADB::KVINDRADB ( )

Definition at line 95 of file KVINDRADB.cpp.

◆ KVINDRADB() [2/2]

KVINDRADB::KVINDRADB ( const Char_t name)

Definition at line 84 of file KVINDRADB.cpp.

◆ ~KVINDRADB()

KVINDRADB::~KVINDRADB ( )
virtual

reset global pointer gIndraDB if it was pointing to this database

Definition at line 117 of file KVINDRADB.cpp.

Member Function Documentation

◆ _init_MeanGDir_func()

void KVINDRADB::_init_MeanGDir_func ( ) const
private

set up TF1 fMeanGDir if function defined for dataset [dataset].GDir.Freq: [function]

Definition at line 419 of file KVINDRADB.cpp.

◆ AddTape()

void KVINDRADB::AddTape ( KVDBTape r)
inline

Definition at line 119 of file KVINDRADB.h.

◆ Build()

void KVINDRADB::Build ( )
virtual

Use KVINDRARunListReader utility subclass to read complete runlist get full path to runlist file, using environment variables for the current dataset

Reimplemented from KVExpDB.

Reimplemented in KVINDRADB1, KVINDRADB2, KVINDRADB4, KVINDRADB_e416a, KVINDRADB_e475s, KVINDRADB_e503, and KVINDRADB_e613.

Definition at line 893 of file KVINDRADB.cpp.

◆ cd()

void KVINDRADB::cd ( )
virtual

Reimplemented from KVExpDB.

Definition at line 105 of file KVINDRADB.cpp.

◆ CloseCalibrationPeakFile()

void KVINDRADB::CloseCalibrationPeakFile ( )
private

Close file containing database of calibration peaks.

Definition at line 406 of file KVINDRADB.cpp.

◆ GetCalibrationPeaks()

KVList * KVINDRADB::GetCalibrationPeaks ( Int_t  run,
KVDetector detector = 0,
Int_t  peak_type = -1,
Int_t  signal_type = 0,
Double_t  peak_energy = -1.0 
)

Use this method to access the 'peaks' (see class KVDBPeak and derivatives) used for the calibration of detectors in a given run.

Mandatory argument : run : number of the run for which calibration peaks are valid Optional arguments : detector : detector for which peaks are valid peak_type : type of peak peak_type = 1 Thoron alpha peak E=6.062 MeV peak_type = 2 Thoron alpha peak E=8.785 MeV peak_type = 3 Elastic scattering peak peak_type = 4 Thoron alpha peak E=6.062 MeV (no gas in ChIo) peak_type = 5 Thoron alpha peak E=8.785 MeV (no gas in ChIo) signal_type : one of the INDRA signal types, see KVINDRA::GetDetectorByType peak_energy : nominal energy corresponding to peak (incident energy of projectile in case of elastic scattering peak).

The peaks are read as and when necessary in the peak database file.

USER'S RESPONSIBILITY TO DELETE LIST AFTERWARDS.

Definition at line 151 of file KVINDRADB.cpp.

◆ GetEventCrossSection() [1/4]

Double_t KVINDRADB::GetEventCrossSection ( const Char_t system_name,
Int_t  mult_trig,
Double_t  Q_apres_cible,
Double_t  Coul_par_top = 1.e-10 
) const

Returns calculated average cross-section [mb] per event for all runs of the named system* with trigger multiplicity 'mul_trig'. *to see the list of all system names, use gIndraDB->GetSystems()->ls() See KVINDRADBRun::GetNIncidentIons() for meaning of other arguments

Definition at line 757 of file KVINDRADB.cpp.

◆ GetEventCrossSection() [2/4]

Double_t KVINDRADB::GetEventCrossSection ( Int_t  run,
Double_t  Q_apres_cible,
Double_t  Coul_par_top = 1.e-10 
) const

Returns calculated cross-section [mb] per event for the run in question. See KVINDRADBRun::GetEventCrossSection()

Definition at line 658 of file KVINDRADB.cpp.

◆ GetEventCrossSection() [3/4]

Double_t KVINDRADB::GetEventCrossSection ( Int_t  run1,
Int_t  run2,
Double_t  Q_apres_cible,
Double_t  Coul_par_top = 1.e-10 
) const

Returns calculated average cross-section [mb] per event for the runs in question. It is assumed that all runs correspond to the same reaction, with the same beam & target characteristics and multiplicity trigger. The target thickness etc. are taken from the first run.

Definition at line 694 of file KVINDRADB.cpp.

◆ GetEventCrossSection() [4/4]

Double_t KVINDRADB::GetEventCrossSection ( KVNumberList  runs,
Double_t  Q_apres_cible,
Double_t  Coul_par_top = 1.e-10 
) const

Returns calculated average cross-section [mb] per event for the runs in question. It is assumed that all runs correspond to the same reaction, with the same beam & target characteristics and multiplicity trigger. The target thickness etc. are taken from the first run.

Definition at line 1785 of file KVINDRADB.cpp.

◆ GetMeanGDirFreq()

Double_t KVINDRADB::GetMeanGDirFreq ( Int_t  run) const

Return mean frequency of Gene_Direct for run If not defined for dataset, returns 0

Definition at line 874 of file KVINDRADB.cpp.

◆ GetMeanPulser()

Float_t KVINDRADB::GetMeanPulser ( const Char_t param,
int  run 
)

Return mean value of pulser/laser for run.

For detectors, param should be name of an acquisition parameter e.g. CI_0201_PG, CSI_1301_L, etc. For pin laser diodes, param should be name of associated acquisition parameter with either '_laser' or '_gene' appended e.g. PILA_05_PG_laser, SI_PIN1_PG_gene

Returns -1.0 if no data available for this parameter/run.

Definition at line 2003 of file KVINDRADB.cpp.

◆ GetPeakFileStream()

std::ifstream & KVINDRADB::GetPeakFileStream ( )
inlineprivate

Definition at line 101 of file KVINDRADB.h.

◆ GetPulserData()

KVINDRAPulserDataTree * KVINDRADB::GetPulserData ( )
inline

Definition at line 169 of file KVINDRADB.h.

◆ GetRun()

KVINDRADBRun * KVINDRADB::GetRun ( Int_t  run) const
inline

Definition at line 133 of file KVINDRADB.h.

◆ GetRunLengthFromGeneDirect()

Double_t KVINDRADB::GetRunLengthFromGeneDirect ( int  run) const
virtual

Using the mean frequency of the Selecteur internal clock (Gene DIRECT) and the total measured number of ticks for the run, calculate the length of the run in seconds

Definition at line 1174 of file KVINDRADB.cpp.

◆ GetTape()

virtual KVDBTape * KVINDRADB::GetTape ( Int_t  tape) const
inlinevirtual

Definition at line 123 of file KVINDRADB.h.

◆ GetTapes()

virtual KVSeqCollection * KVINDRADB::GetTapes ( ) const
inlinevirtual

Definition at line 127 of file KVINDRADB.h.

◆ GetTotalCrossSection() [1/5]

Double_t KVINDRADB::GetTotalCrossSection ( const Char_t system_name,
Int_t  mult_trig,
Double_t  Q_apres_cible,
Double_t  Coul_par_top = 1.e-10 
) const

Returns calculated total cross-section [mb] for all events in all runs of the named system* with trigger multiplicity 'mul_trig'. *to see the list of all system names, use gIndraDB->GetSystems()->ls() See KVINDRADBRun::GetNIncidentIons() for meaning of other arguments

Definition at line 804 of file KVINDRADB.cpp.

◆ GetTotalCrossSection() [2/5]

Double_t KVINDRADB::GetTotalCrossSection ( Int_t  run,
Double_t  Q_apres_cible,
Double_t  Coul_par_top = 1.e-10 
) const

Returns calculated total measured cross-section [mb] for the run in question. See KVINDRADBRun::GetTotalCrossSection()

Definition at line 675 of file KVINDRADB.cpp.

◆ GetTotalCrossSection() [3/5]

Double_t KVINDRADB::GetTotalCrossSection ( Int_t  run1,
Int_t  run2,
Double_t  Q_apres_cible,
Double_t  Coul_par_top = 1.e-10 
) const

Returns calculated total measured cross-section [mb] for the runs in question. This is SUM (GetEventCrossSection(run1,run2) * SUM( events ) where SUM(events) is the total number of events measured in all the runs

Definition at line 729 of file KVINDRADB.cpp.

◆ GetTotalCrossSection() [4/5]

Double_t KVINDRADB::GetTotalCrossSection ( KVNumberList  runs,
Double_t  Q_apres_cible,
Double_t  Coul_par_top = 1.e-10 
) const

Returns calculated total measured cross-section [mb] for the runs in question. This is SUM (GetEventCrossSection(run1,run2) * SUM( events ) where SUM(events) is the total number of events measured in all the runs

Definition at line 1825 of file KVINDRADB.cpp.

◆ GetTotalCrossSection() [5/5]

Double_t KVINDRADB::GetTotalCrossSection ( TH1 events_histo,
Double_t  Q_apres_cible,
Double_t  Coul_par_top = 1.e-10 
)

Calculate the cross-section [mb] for a given selection of events in several runs, given by the TH1, which is a distribution of run numbers (i.e. a histogram filled with the number of selected events for each run, the run number is on the x-axis of the histogram).

Definition at line 843 of file KVINDRADB.cpp.

◆ GoodRunLine()

void KVINDRADB::GoodRunLine ( )
virtual

For each "good run line" in the run list file, we: add a KVINDRADBRun to the database if it doesn't already exist add a KVDBTape to the database if the "tape" field is active and if it doesn't already exist set properties of run and tape objects kFirstRun & kLastRun are set

Reimplemented from KVINDRARunListReader.

Reimplemented in KVINDRADB1, KVINDRADB2, and KVINDRADB4.

Definition at line 989 of file KVINDRADB.cpp.

◆ init()

void KVINDRADB::init ( )
private

Definition at line 49 of file KVINDRADB.cpp.

◆ OpenCalibrationPeakFile()

Bool_t KVINDRADB::OpenCalibrationPeakFile ( )
private

calibration peaks database

Returns kTRUE if calibration peak file is open, connected to ifstream __ifpeaks (access through GetPeakFileStream()), and ready for reading.

The file is opened if not already open. The stream is repositioned at the beginning of the file if already open.

Definition at line 384 of file KVINDRADB.cpp.

◆ ReadAbsentDetectors()

void KVINDRADB::ReadAbsentDetectors ( )
privatevirtual

Lit le fichier ou sont listés les détecteurs retirés au cours de la manip

Definition at line 1852 of file KVINDRADB.cpp.

◆ ReadCalibCsI()

void KVINDRADB::ReadCalibCsI ( )
privatevirtual

Read CsI Light-Energy calibrations for Z=1 and Z>1 The parameter filenames are taken from the environment variables [dataset name].INDRADB.CalibCsI.Z=1 [dataset name].INDRADB.CalibCsI.Z>1 These calibrations are valid for all runs

Definition at line 1686 of file KVINDRADB.cpp.

◆ ReadChannelVolt()

void KVINDRADB::ReadChannelVolt ( )
privatevirtual

Read Channel-Volt calibrations for ChIo and Si detectors (including Etalons). The parameter filenames are taken from the environment variables [dataset name].INDRADB.ElectronicCalibration: [chio & si detectors] [dataset name].INDRADB.ElectronicCalibration.Etalons: [etalons]

Reimplemented in KVINDRADB_e613.

Definition at line 1343 of file KVINDRADB.cpp.

◆ ReadChIoPressures()

void KVINDRADB::ReadChIoPressures ( )
privatevirtual

Read ChIo pressures for different run ranges and enter into database. Format of file is:

some comments which start with '#' Run Range : 6001 6018 ChIos 2_3 50.0 ChIos 4_5 50.0 ChIos 6_7 50.0 ChIos 8_12 30.0 ChIos 13_17 30.0

Pressures (of C3F8) are given in mbar).

Reimplemented in KVINDRADB_e613.

Definition at line 538 of file KVINDRADB.cpp.

◆ ReadCsITotalLightGainCorrections()

void KVINDRADB::ReadCsITotalLightGainCorrections ( )
privatevirtual

Read in gain corrections for CsI total light output. Looks for directory $KVROOT/KVFiles/[dataset name]/[lumcorrdir] where [lumcorrdir] is defined in .kvrootrc by one of the two variables INDRADB.CsILumCorr: [lumcorrdir] [dataset name].INDRADB.CsILumCorr: [lumcorrdir] the latter value takes precedence for a given dataset over the former, generic, value.

If the directory is not found we look for a compressed archive file $KVROOT/KVFiles/[dataset name]/[lumcorrdir].tgz

The files in the directory containing the corrections for each run have names with the format given by INDRADB.CsILumCorr.FileName: [format] [dataset name].INDRADB.CsILumCorr.FileName: [format] the latter value takes precedence for a given dataset over the former, generic, value. The [format] should include a placeholder for the run number, e.g. INDRADB.CsILumCorr.FileName: run%04d.cor INDRADB.CsILumCorr.FileName: Rund.corrLum etc. etc.

The contents of each file should be in the following format: CSI_0221_R 1.00669 CSI_0321_R 1.01828 CSI_0322_R 1.00977 i.e. name_of_detector correction Any other lines are ignored.

Definition at line 1231 of file KVINDRADB.cpp.

◆ ReadGainList()

void KVINDRADB::ReadGainList ( )
privatevirtual

Read the file listing any detectors whose gain value changes during exeriment.

Reimplemented in KVINDRADB_e613.

Definition at line 437 of file KVINDRADB.cpp.

◆ ReadLightEnergyCsI()

void KVINDRADB::ReadLightEnergyCsI ( const Char_t zrange,
KVDBTable table 
)
privatevirtual

Read CsI Light-Energy calibrations for Z=1 (zrange="Z=1") or Z>1 (zrange="Z>1") and add them to the KVDBTable whose pointer is given as 2nd argument. These calibrations are valid for all runs

Definition at line 1704 of file KVINDRADB.cpp.

◆ ReadNewRunList()

void KVINDRADB::ReadNewRunList ( )

Read new-style runlist (written using KVDBRun v.10 or later)

Definition at line 947 of file KVINDRADB.cpp.

◆ ReadObjects()

void KVINDRADB::ReadObjects ( TFile file)
virtual

Read associated objects (i.e. KVINDRAPulserDataTree's TTree) from file.

Reimplemented from KVExpDB.

Definition at line 1160 of file KVINDRADB.cpp.

◆ ReadOoOACQParams()

void KVINDRADB::ReadOoOACQParams ( )
privatevirtual

Lit le fichier ou sont listés les parametres d acquisition ne marchant plus au cours de la manip

Definition at line 1947 of file KVINDRADB.cpp.

◆ ReadOoODetectors()

void KVINDRADB::ReadOoODetectors ( )
privatevirtual

Lit le fichier ou sont listés les détecteurs ne marchant plus au cours de la manip

Definition at line 1899 of file KVINDRADB.cpp.

◆ ReadPedestalList()

void KVINDRADB::ReadPedestalList ( )
privatevirtual

Read the names of pedestal files to use for each run range, found in file with name defined by the environment variable: [dataset name].INDRADB.Pedestals: ...

Reimplemented in KVINDRADB_e475s, KVINDRADB_e503, and KVINDRADB_e613.

Definition at line 1615 of file KVINDRADB.cpp.

◆ ReadVoltEnergyChIoSi()

void KVINDRADB::ReadVoltEnergyChIoSi ( )
privatevirtual

Read Volt-Energy(MeV) calibrations for ChIo and Si detectors. The parameter filename is taken from the environment variable [dataset name].INDRADB.ChIoSiVoltMeVCalib:

Reimplemented in KVINDRADB_e613.

Definition at line 1526 of file KVINDRADB.cpp.

◆ WriteObjects()

void KVINDRADB::WriteObjects ( TFile file)
virtual

Write associated objects (i.e. KVINDRAPulserDataTree's TTree) in file.

Reimplemented from KVExpDB.

Definition at line 1148 of file KVINDRADB.cpp.

Member Data Documentation

◆ __ifpeaks

std::ifstream KVINDRADB::__ifpeaks
private

ifstream for calibration peaks file

Definition at line 63 of file KVINDRADB.h.

◆ fAbsentDet

KVDBTable* KVINDRADB::fAbsentDet
private

(optional) Liste les detecteurs absents

Definition at line 78 of file KVINDRADB.h.

◆ fChanVolt

KVDBTable* KVINDRADB::fChanVolt
private

ChIo/Si channel-volt calibration parameters.

Definition at line 74 of file KVINDRADB.h.

◆ fChIoPressures

KVDBTable* KVINDRADB::fChIoPressures
private

General information.

table of chio pressures

Definition at line 69 of file KVINDRADB.h.

◆ fCsILumCorr

KVDBTable* KVINDRADB::fCsILumCorr
private

table of CsI gain corrections for total light output

Definition at line 72 of file KVINDRADB.h.

◆ fGains

KVDBTable* KVINDRADB::fGains
private

(optional) table of detector gains, in case they change from run to run

Definition at line 70 of file KVINDRADB.h.

◆ fLitEnerCsI

KVDBTable* KVINDRADB::fLitEnerCsI
private

CsI light-energy calibration for Z>1.

Definition at line 76 of file KVINDRADB.h.

◆ fLitEnerCsIZ1

KVDBTable* KVINDRADB::fLitEnerCsIZ1
private

CsI light-energy calibration for Z=1.

Definition at line 77 of file KVINDRADB.h.

◆ fMeanGDir

TF1* KVINDRADB::fMeanGDir
mutableprivate

mean frequency of GENE_DIRECT vs. run number

Definition at line 106 of file KVINDRADB.h.

◆ fOoOACQPar

KVDBTable* KVINDRADB::fOoOACQPar
private

(optional) Liste des parametres d acquisition ne marchant pas

Definition at line 80 of file KVINDRADB.h.

◆ fOoODet

KVDBTable* KVINDRADB::fOoODet
private

(optional) Liste les detecteurs hors service

Definition at line 79 of file KVINDRADB.h.

◆ fPedestals

KVDBTable* KVINDRADB::fPedestals
private

table of pedestal files

Definition at line 73 of file KVINDRADB.h.

◆ fPulserData

KVINDRAPulserDataTree* KVINDRADB::fPulserData
private

mean values of pulsers for all detectors & runs

Definition at line 82 of file KVINDRADB.h.

◆ fTapes

KVDBTable* KVINDRADB::fTapes
private

table of data tapes

Definition at line 71 of file KVINDRADB.h.

◆ fVoltMeVChIoSi

KVDBTable* KVINDRADB::fVoltMeVChIoSi
private

ChIo/Si volt-energy calibration.

Definition at line 75 of file KVINDRADB.h.