KaliVeda  1.12/06
Heavy-Ion Analysis Toolkit
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
KVINDRADB Class Reference

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 58 of file KVINDRADB.h.

Public Member Functions

 KVINDRADB ()
 
 KVINDRADB (const Char_t *name)
 
virtual ~ KVINDRADB ()
 
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
 
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) More...
 
virtual void ReadObjects (TFile *)
 Read associated objects (i.e. KVINDRAPulserDataTree's TTree) from file. More...
 
virtual void WriteObjects (TFile *)
 Write associated objects (i.e. KVINDRAPulserDataTree's TTree) in file. More...
 
- Public Member Functions inherited from KVExpDB
 KVExpDB ()
 Default constructor. More...
 
 KVExpDB (const Char_t *name)
 Constructor inherited from KVDataBase. More...
 
 KVExpDB (const Char_t *name, const Char_t *title)
 Constructor inherited from KVDataBase. More...
 
virtual ~KVExpDB ()
 Destructor. More...
 
void AddRun (KVDBRun *r)
 
void AddSystem (KVDBSystem *r)
 
Bool_t FindCalibFile (const Char_t *type, TString &fullpath) 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. More...
 
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). More...
 
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). More...
 
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 ()
 
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=0)
 
virtual void Browse (TBrowser *b)
 
virtual void Clear (Option_t *option="")
 
virtual void Copy (TObject &) const
 
virtual const char * FindFullPathName (const char *name) const
 
virtual const char * FindFullPathName (const TObject *obj) const
 
virtual TObjectFindObject (const char *name) const
 
virtual TObjectFindObject (const TObject *obj) const
 
virtual TObjectFindObjectAny (const char *name) const
 
TCollectionGetListOfFolders () const
 
Bool_t IsFolder () const
 
Bool_t IsOwner () const
 
virtual void ls (Option_t *option="") const
 
virtual Int_t Occurence (const TObject *obj) const
 
virtual void RecursiveRemove (TObject *obj)
 
virtual void Remove (TObject *obj)
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 
virtual void SetOwner (Bool_t owner=kTRUE)
 
- 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 ()
 
virtual TObjectClone (const char *newname="") const
 
virtual Int_t Compare (const TObject *obj) const
 
virtual void FillBuffer (char *&buffer)
 
virtual const char * GetName () const
 
virtual const char * GetTitle () const
 
virtual ULong_t Hash () const
 
virtual Bool_t IsSortable () const
 
TNamedoperator= (const TNamed &rhs)
 
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
 
- 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=0)
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=0)
 
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)
 
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)
 
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)
 
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=0, Int_t option=0, Int_t bufsize=0)
 
virtual Int_t Write (const char *name=0, 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)
 

Protected Member Functions

void _init_MeanGDir_func () const
 
void CloseCalibrationPeakFile ()
 Close file containing database of calibration peaks. More...
 
std::ifstream & GetPeakFileStream ()
 
void init ()
 
Bool_t OpenCalibrationPeakFile ()
 calibration peaks database More...
 
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. More...
 
virtual void ReadLightEnergyCsI (const Char_t *, KVDBTable *)
 
virtual void ReadOoOACQParams ()
 
virtual void ReadOoODetectors ()
 
virtual void ReadPedestalList ()
 
virtual void ReadVoltEnergyChIoSi ()
 
- Protected Member Functions inherited from KVExpDB
void init ()
 default initialisations More...
 
Bool_t OpenCalibFile (const Char_t *type, std::ifstream &fs) const
 
virtual void ReadComments ()
 
virtual void ReadSystemList ()
 
- 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

KVDBTablefAbsentDet
 (optional) Liste les detecteurs absents More...
 
KVDBTablefChanVolt
 ChIo/Si channel-volt calibration parameters. More...
 
KVDBTablefChIoPressures
 General information. More...
 
KVDBTablefCsILumCorr
 table of CsI gain corrections for total light output More...
 
KVDBTablefGains
 (optional) table of detector gains, in case they change from run to run More...
 
KVDBTablefLitEnerCsI
 CsI light-energy calibration for Z>1. More...
 
KVDBTablefLitEnerCsIZ1
 CsI light-energy calibration for Z=1. More...
 
TF1fMeanGDir
 mean frequency of GENE_DIRECT vs. run number More...
 
KVDBTablefOoOACQPar
 (optional) Liste des parametres d acquisition ne marchant pas More...
 
KVDBTablefOoODet
 (optional) Liste les detecteurs hors service More...
 
KVDBTablefPedestals
 table of pedestal files More...
 
KVINDRAPulserDataTreefPulserData
 mean values of pulsers for all detectors & runs More...
 
KVDBTablefTapes
 table of data tapes More...
 
KVDBTablefVoltMeVChIoSi
 ChIo/Si volt-energy calibration. More...
 
- Protected Attributes inherited from KVExpDB
TString fDataSet
 the name of the dataset to which this database is associated More...
 
TString fDataSetDir
 the directory containing the dataset files More...
 
TString fDBType
 used by GetDBEnv More...
 
KVNumberList fListOfRuns
 list of all run numbers More...
 
KVDBTablefRuns
 table of runs More...
 
KVDBTablefSystems
 table of systems More...
 
- Protected Attributes inherited from TFolder
TCollectionfFolders
 
Bool_t fIsOwner
 
- Protected Attributes inherited from TNamed
TString fName
 
TString fTitle
 
- Protected Attributes inherited from TObject
 kOnlyPrepStep
 

Private Attributes

std::ifstream __ifpeaks
 ifstream for calibration peaks file More...
 

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 TObject
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
 

#include <KVINDRADB.h>

Inheritance diagram for KVINDRADB:
Inheritance graph
[legend]

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()

virtual KVINDRADB::~ KVINDRADB ( )
virtual

Member Function Documentation

◆ _init_MeanGDir_func()

void KVINDRADB::_init_MeanGDir_func ( ) const
protected

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 118 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 KVINDRADB_e613, KVINDRADB_e503, KVINDRADB_e475s, KVINDRADB_e416a, KVINDRADB4, KVINDRADB2, and KVINDRADB1.

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 ( )
protected

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.

◆ GetPeakFileStream()

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

Definition at line 100 of file KVINDRADB.h.

◆ GetPulserData()

KVINDRAPulserDataTree* KVINDRADB::GetPulserData ( )
inline

Definition at line 168 of file KVINDRADB.h.

◆ GetRun()

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

Definition at line 132 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 122 of file KVINDRADB.h.

◆ GetTapes()

virtual KVSeqCollection* KVINDRADB::GetTapes ( ) const
inlinevirtual

Definition at line 126 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 KVINDRADB4, KVINDRADB2, and KVINDRADB1.

Definition at line 989 of file KVINDRADB.cpp.

◆ init()

void KVINDRADB::init ( void  )
protected

Definition at line 49 of file KVINDRADB.cpp.

◆ OpenCalibrationPeakFile()

Bool_t KVINDRADB::OpenCalibrationPeakFile ( )
protected

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 ( )
protectedvirtual

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 ( )
protectedvirtual

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 ( )
protectedvirtual

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 ( )
protectedvirtual

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 ( )
protectedvirtual

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 ( )
protectedvirtual

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 
)
protectedvirtual

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 ( )
protectedvirtual

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 ( )
protectedvirtual

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 ( )
protectedvirtual

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_e613, KVINDRADB_e503, and KVINDRADB_e475s.

Definition at line 1615 of file KVINDRADB.cpp.

◆ ReadVoltEnergyChIoSi()

void KVINDRADB::ReadVoltEnergyChIoSi ( )
protectedvirtual

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 62 of file KVINDRADB.h.

◆ fAbsentDet

KVDBTable* KVINDRADB::fAbsentDet
protected

(optional) Liste les detecteurs absents

Definition at line 77 of file KVINDRADB.h.

◆ fChanVolt

KVDBTable* KVINDRADB::fChanVolt
protected

ChIo/Si channel-volt calibration parameters.

Definition at line 73 of file KVINDRADB.h.

◆ fChIoPressures

KVDBTable* KVINDRADB::fChIoPressures
protected

General information.

table of chio pressures

Definition at line 68 of file KVINDRADB.h.

◆ fCsILumCorr

KVDBTable* KVINDRADB::fCsILumCorr
protected

table of CsI gain corrections for total light output

Definition at line 71 of file KVINDRADB.h.

◆ fGains

KVDBTable* KVINDRADB::fGains
protected

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

Definition at line 69 of file KVINDRADB.h.

◆ fLitEnerCsI

KVDBTable* KVINDRADB::fLitEnerCsI
protected

CsI light-energy calibration for Z>1.

Definition at line 75 of file KVINDRADB.h.

◆ fLitEnerCsIZ1

KVDBTable* KVINDRADB::fLitEnerCsIZ1
protected

CsI light-energy calibration for Z=1.

Definition at line 76 of file KVINDRADB.h.

◆ fMeanGDir

TF1* KVINDRADB::fMeanGDir
mutableprotected

mean frequency of GENE_DIRECT vs. run number

Definition at line 105 of file KVINDRADB.h.

◆ fOoOACQPar

KVDBTable* KVINDRADB::fOoOACQPar
protected

(optional) Liste des parametres d acquisition ne marchant pas

Definition at line 79 of file KVINDRADB.h.

◆ fOoODet

KVDBTable* KVINDRADB::fOoODet
protected

(optional) Liste les detecteurs hors service

Definition at line 78 of file KVINDRADB.h.

◆ fPedestals

KVDBTable* KVINDRADB::fPedestals
protected

table of pedestal files

Definition at line 72 of file KVINDRADB.h.

◆ fPulserData

KVINDRAPulserDataTree* KVINDRADB::fPulserData
protected

mean values of pulsers for all detectors & runs

Definition at line 81 of file KVINDRADB.h.

◆ fTapes

KVDBTable* KVINDRADB::fTapes
protected

table of data tapes

Definition at line 70 of file KVINDRADB.h.

◆ fVoltMeVChIoSi

KVDBTable* KVINDRADB::fVoltMeVChIoSi
protected

ChIo/Si volt-energy calibration.

Definition at line 74 of file KVINDRADB.h.


The documentation for this class was generated from the following files: