|
Analysis
version 7.0 - august 2014
|
#include <SimulRun.hh>
Public Member Functions | |
| SimulRun () | |
| virtual | ~SimulRun () |
| virtual int | Open () |
| virtual int | Open (const string &f_name) |
| virtual int | Open (const u_int f_num) |
| virtual bool | IsOpen () |
| virtual int | Close () |
| virtual int | RunInit () |
| virtual int | ReadEvent () |
| virtual void | SetMaxRunEvents (const int n) |
| virtual int | GetMaxRunEvents () const |
| virtual int | AnalyseEvents (const u_int n) |
| virtual void | SetFileMode (const Int_t mode) |
| ClassDef (SimulRun, 0) | |
Public Member Functions inherited from RunBase | |
| RunBase () | |
| virtual | ~RunBase () |
| virtual int | Open (const u_int f_num, u_int f_sub=0) |
| virtual int | ClearEvent () |
| virtual int | AnalyseEvent () |
| virtual int | Init () |
| virtual void | Run () |
| virtual void | Reset () |
| virtual void | FullReset () |
| string | GetWorkDirectory () const |
| void | SetWorkDirectory (const string &wd) |
| virtual Int_t | GetTotalEventCount () const |
| virtual Int_t | GetEventCount () const |
| virtual Int_t | GetFileCount () const |
| virtual bool | IsRunInit () const |
| virtual bool | IsRunStarted () const |
| virtual bool | IsRunStopped () const |
| virtual void | SetFileName (const string &f_name) |
| virtual void | SetFilePattern (const string &pattern) |
| virtual void | SetFilePatternLen (const u_int len) |
| virtual void | SetFileNumbers (const string &f_num) |
| virtual Int_t | SetFileListNames () |
| virtual Int_t | GetFileMode () const |
| virtual string | GetFileName () const |
| virtual string | GetFilePattern () const |
| virtual Int_t | GetFilePatternLen () const |
| virtual string | GetFileNumbers () const |
| virtual Int_t | GetFileNumber () const |
| virtual Int_t | TapeRewind () |
| virtual Int_t | TapeForward (const Int_t n=1) |
| virtual Int_t | TapeBackward (const Int_t n=1) |
| virtual int | UserEventDefine () |
| virtual int | UserRunStart () |
| virtual int | UserEvent () |
| virtual int | UserUpdate () |
| virtual int | UserRunStop () |
| ClassDef (RunBase, 0) | |
Public Member Functions inherited from EventManager | |
| EventManager () | |
| virtual | ~EventManager () |
| u_int | ParamNumber () const |
| u_int | SpecNumber () const |
| u_int | TreeNumber () const |
| u_int | ContourNumber () const |
| u_int | FilterNumber () const |
| const Event * | GetEventPtr () const |
| const TreeList * | GetTreeListPtr () const |
| const SpectrumList * | GetSpectrumListPtr () const |
| const FilterList * | GetFilterListPtr () const |
| const RContourList * | GetContourListPtr () const |
| Event * | GetEventPtr () |
| TreeList * | GetTreeListPtr () |
| SpectrumList * | GetSpectrumListPtr () |
| FilterList * | GetFilterListPtr () |
| RContourList * | GetContourListPtr () |
| virtual const Param * | GetParamPtr (const u_int n) const |
| virtual const Param * | GetParamPtr (const string &par_name) const |
| virtual string | GetParamName (const u_int n) const |
| virtual int | GetParamIndex (const string &par_name) const |
| virtual int | GetParamDimension (const u_int n) const |
| virtual int | GetParamDimension (const string &par_name) const |
| virtual TreeInfo * | GetTreePtr (const u_int t_num) const |
| virtual TreeInfo * | GetTreePtr (const string &t_name) const |
| virtual int | GetTreeIndex (const string &t_name) const |
| virtual Spectrum * | GetSpectrumPtr (const u_int num) const |
| virtual Spectrum * | GetSpectrumPtr (const string &spec_name) const |
| virtual int | GetSpectrumIndex (const string &spec_name) const |
| virtual string | GetSpectrumName (const u_int spec_num) const |
| TH1 * | GetHistoPtr (const u_int num) const |
| TH1 * | GetHistoPtr (const string &spec_name) const |
| virtual RContour * | GetContourPtr (const string &cname) const |
| virtual RContour * | GetContourPtr (const u_int cnum) const |
| virtual int | GetContourIndex (const string &cname) const |
| virtual string | GetContourName (const u_int cnum) const |
| virtual Filter * | GetFilterPtr (const string &fname) const |
| virtual Filter * | GetFilterPtr (const u_int fnum) const |
| virtual int | GetFilterIndex (const string &fname) const |
| virtual string | GetFilterName (const u_int fnum) const |
| virtual int | AddParam (const Param &par) |
| virtual int | AddParamSingle (const string &par_name, const Data &d=DataUI2(0)) |
| virtual int | AddParamArray (const string &par_name, const u_int dim, const Data &d=DataUI2(0)) |
| virtual int | AddParamMultihit (const string &par_name, const Data &d=DataUI2(0)) |
| const Data & | GetParamDefaultValue (const u_int num) |
| const Data & | GetParamDefaultValue (const string &par_name) |
| bool | SetParamDefaultValue (const u_int num, const Data &d) |
| bool | SetParamDefaultValue (const string &par_name, const Data &d) |
| const Data & | GetParam (const u_int num) |
| const Data & | GetParam (const string &par_name) |
| const Data & | GetParam (const u_int num, const u_int index) |
| const Data & | GetParam (const string &par_name, const u_int index) |
| template<class T > | |
| const Data & | SetParam (const u_int num, const T &val) |
| template<class T > | |
| const Data & | SetParam (const string &par_name, const T &val) |
| template<class T > | |
| const Data & | SetParam (const u_int num, const u_int index, const T &val) |
| template<class T > | |
| const Data & | SetParam (const string &par_name, const u_int index, const T &val) |
| virtual int | AddTree (const string &t_name, const string &f_name="", const UInt_t n_max=0) |
| virtual int | InitTree (const string &t_name) |
| virtual int | InitTree (const int t_num=-1) |
| virtual bool | RemoveTree (const TreeInfo *t_ptr) |
| virtual bool | RemoveTree (const u_int t_num) |
| virtual bool | RemoveTree (const string &t_name) |
| virtual void | RemoveAllTrees () |
| virtual Int_t | SetTreeFile (const int t_num, const string &f_name, const UInt_t n_max=0) |
| virtual string | GetTreeFile (const int t_num) const |
| virtual string | GetTreeFileName (const int t_num) const |
| virtual UInt_t | GetTreeFileMode (const int t_num) const |
| virtual Int_t | SetTreeFile (const string &t_name, const string &f_name, const UInt_t n_max=0) |
| virtual string | GetTreeFile (const string &t_name) const |
| virtual string | GetTreeFileName (const string &t_name) const |
| virtual UInt_t | GetTreeFileMode (const string &t_name) const |
| virtual Bool_t | AddTreeParam (const int t_num, const Param *p_ptr) |
| virtual Bool_t | AddTreeParam (const int t_num, const string &p_name) |
| virtual Bool_t | AddTreeParam (const int t_num, const Int_t p_num) |
| virtual Int_t | AddTreeParamRange (const int t_num, const Int_t p1, const Int_t p2) |
| virtual Int_t | AddTreeAllParam (const int t_num) |
| virtual Bool_t | AddTreeParam (const string &t_name, const Param *p_ptr) |
| virtual Bool_t | AddTreeParam (const string &t_name, const string &p_name) |
| virtual Bool_t | AddTreeParam (const string &t_name, const Int_t p_num) |
| virtual Int_t | AddTreeParamRange (const string &t_name, const Int_t p1, const Int_t p2) |
| virtual Int_t | AddTreeAllParam (const string &t_name) |
| virtual void | OpenTreeList (const Int_t m=-1) const |
| virtual void | CloseTreeList (const Int_t m=-1) const |
| virtual Bool_t | OpenTree (const int t_num) const |
| virtual Bool_t | OpenTree (const string &t_name) const |
| virtual Bool_t | CloseTree (const int t_num) const |
| virtual Bool_t | CloseTree (const string &t_name) const |
| virtual Bool_t | IsTreeOpen (const int t_num) const |
| virtual Bool_t | IsTreeOpen (const string &t_name) const |
| virtual Bool_t | IsTreeClosed (const int t_num) const |
| virtual Bool_t | IsTreeClosed (const string &t_name) const |
| bool | StartTree (const int t_num=-1) const |
| bool | StopTree (const int t_num=-1) const |
| bool | SuspendTree (const int t_num=-1) const |
| bool | StartTree (const string &t_name) const |
| bool | StopTree (const string &t_name) const |
| bool | SuspendTree (const string &t_name) const |
| virtual int | LoadTreeList (const string &filename, const bool append=true) |
| virtual int | SaveTreeList (const string &filename) const |
| int | AddSpecMono (const string &spec_name, const u_int par_num, const u_int nx, const double x1, const double x2, const string &family_name="") |
| int | AddSpecMono (const string &spec_name, const string &par_name, const u_int nx, const double x1, const double x2, const string &family_name="") |
| int | AddSpecBidim (const string &spec_name, const u_int par_num_x, const u_int nx, const double x1, const double x2, const u_int par_num_y, const u_int ny, const double y1, const double y2, const string &family_name="") |
| int | AddSpecBidim (const string &spec_name, const string &par_name_x, const u_int nx, const double x1, const double x2, const string &par_name_y, const u_int ny, const double y1, const double y2, const string &family_name="") |
| int | AddSpecTridim (const string &spec_name, const u_int par_num_x, const u_int nx, const double x1, const double x2, const u_int par_num_y, const u_int ny, const double y1, const double y2, const u_int par_num_z, const u_int nz, const double z1, const double z2, const string &family_name="") |
| int | AddSpecTridim (const string &spec_name, const string &par_name_x, const u_int nx, const double x1, const double x2, const string &par_name_y, const u_int ny, const double y1, const double y2, const string &par_name_z, const u_int nz, const double z1, const double z2, const string &family_name="") |
| int | AddSpecDistrib (const string &spec_name, const u_int par_num, const double x1, const double x2, const string &family_name="") |
| int | AddSpecDistrib (const string &spec_name, const string &par_name, const double x1, const double x2, const string &family_name="") |
| int | AddSpecTrace (const string &spec_name, const u_int par_num, const double x1, const double x2, const string &family_name="") |
| int | AddSpecTrace (const string &spec_name, const string &par_name, const double x1, const double x2, const string &family_name="") |
| int | AddSpecCumul (const string &spec_name, const u_int par_num_x, const double x1, const double x2, const u_int ny, const double y1, const double y2, const string &family_name="") |
| int | AddSpecCumul (const string &spec_name, const string &par_name_x, const double x1, const double x2, const u_int ny, const double y1, const double y2, const string &family_name="") |
| int | AddSpecHisto (TH1 &h, const string &family_name="") |
| int | AddSpecExtern (const string &h_name, const string &f_name, const string &s_name="", const string &family_name="") |
| int | AddSpecUser1D (const string &spec_name, const u_int nx, const double x1, const double x2, const string &family_name="") |
| int | AddSpecUser2D (const string &spec_name, const u_int nx, const double x1, const double x2, const u_int ny, const double y1, const double y2, const string &family_name="") |
| int | AddSpecNorm (const string &spec_name, const string &oper_name, const double norm=1., const string &family_name="") |
| int | AddSpecSqrt (const string &spec_name, const string &oper_name, const double c0=1., const double c1=0., const string &family_name="") |
| int | AddSpecInv (const string &spec_name, const string &oper_name, const double c0=1., const double c1=0., const double c2=0., const string &family_name="") |
| int | AddSpecSum (const string &spec_name, const string &oper0_name, const string &oper1_name, const double c0=1., const double c1=1., const double c2=0., const string &family_name="") |
| int | AddSpecProd (const string &spec_name, const string &oper0_name, const string &oper1_name, const double c0=1., const double c1=1., const string &family_name="") |
| int | AddSpecDiv (const string &spec_name, const string &oper0_name, const string &oper1_name, const double c0=1., const double c1=1., const double c2=0., const string &family_name="") |
| int | AddSpecSumN (const string &spec_name, const Int_t oper_num, Spectrum **oper_tab, const string &family_name="") |
| int | AddSpecSumN (const string &spec_name, const string &oper_names, const string &family_name="") |
| int | AddSpecHSum (const string &spec_name, const string &src_name, const string &family_name="") |
| int | AddSpecHSum (const string &spec_name, const Int_t src_num, const string &family_name="") |
| int | AddSpecHSum (const string &spec_name, const TH1 *src_histo, const string &family_name="") |
| int | AddSpecHMean (const string &spec_name, const string &src_name, const string &family_name="") |
| int | AddSpecHMean (const string &spec_name, const Int_t src_num, const string &family_name="") |
| int | AddSpecHMean (const string &spec_name, const TH1 *src_histo, const string &family_name="") |
| int | AddSpecHCumul (const string &spec_name, const string &src_name, const u_int ny, const double y1, const double y2, const string &family_name="") |
| int | AddSpecHCumul (const string &spec_name, const Int_t src_num, const u_int ny, const double y1, const double y2, const string &family_name="") |
| int | AddSpecHCumul (const string &spec_name, const TH1 *src_histo, const u_int ny, const double y1, const double y2, const string &family_name="") |
| virtual bool | User1DIncrement (const string &spec_name, const Double_t x, const Double_t incr=1.) |
| virtual bool | User1DSetValue (const string &spec_name, const Double_t x, const Double_t val) |
| virtual bool | User1DIncrement (const u_int spec_num, const Double_t x, const Double_t incr=1.) |
| virtual bool | User1DSetValue (const u_int spec_num, const Double_t x, const Double_t val) |
| virtual bool | User1DIncrement (const string &spec_name, const Int_t ix, const Double_t incr=1.) |
| virtual bool | User1DSetValue (const string &spec_name, const Int_t ix, const Double_t val) |
| virtual bool | User1DIncrement (const u_int spec_num, const Int_t ix, const Double_t incr=1.) |
| virtual bool | User1DSetValue (const u_int spec_num, const Int_t ix, const Double_t val) |
| virtual bool | User2DIncrement (const string &spec_name, const Double_t x, const Double_t y, const Double_t incr=1.) |
| virtual bool | User2DSetValue (const string &spec_name, const Double_t x, const Double_t y, const Double_t val) |
| virtual bool | User2DIncrement (const u_int spec_num, const Double_t x, const Double_t y, const Double_t incr=1.) |
| virtual bool | User2DSetValue (const u_int spec_num, const Double_t x, const Double_t y, const Double_t val) |
| virtual bool | User2DIncrement (const string &spec_name, const Int_t ix, const Int_t iy, const Double_t incr=1.) |
| virtual bool | User2DSetValue (const string &spec_name, const Int_t ix, const Int_t iy, const Double_t val) |
| virtual bool | User2DIncrement (const u_int spec_num, const Int_t ix, const Int_t iy, const Double_t incr=1.) |
| virtual bool | User2DSetValue (const u_int spec_num, const Int_t ix, const Int_t iy, const Double_t val) |
| virtual bool | RemoveSpectrum (const Spectrum *spec_ptr, const bool force=true) |
| virtual bool | RemoveSpectrum (const u_int spec_num, const bool force=true) |
| virtual bool | RemoveSpectrum (const string &spec_name, const bool force=true) |
| virtual void | RemoveAllSpectra (const bool force=false) |
| virtual bool | SetSpectrumSaveProtection (Spectrum *spec_ptr, const bool b=true) |
| virtual bool | SetSpectrumSaveProtection (const string &spec_name, const bool b=true) |
| virtual bool | SetSpectrumSaveProtection (const u_int spec_num, const bool b=true) |
| virtual bool | SetSpectrumDeleteProtection (Spectrum *spec_ptr, const bool b=true) |
| virtual bool | SetSpectrumDeleteProtection (const string &spec_name, const bool b=true) |
| virtual bool | SetSpectrumDeleteProtection (const u_int spec_num, const bool b=true) |
| virtual bool | RenameSpectrum (const u_int num, const string &name, const string &name_x="", const string &name_y="", const string &name_z="") |
| virtual bool | RenameSpectrum (const string &spec_name, const string &name, const string &name_x="", const string &name_y="", const string &name_z="") |
| bool | StartSpectrum (const int num=-1) const |
| bool | StopSpectrum (const int num=-1) const |
| bool | SuspendSpectrum (const int num=-1) const |
| bool | ResetSpectrum (const int num=-1) const |
| bool | StartSpectrum (const string &spec_name) const |
| bool | StopSpectrum (const string &spec_name) const |
| bool | SuspendSpectrum (const string &spec_name) const |
| bool | ResetSpectrum (const string &spec_name) const |
| virtual void | IncrementSpectra () const |
| bool | SetSpectrumFamily (const string &spec_name, const string &family_name) |
| bool | SetSpectrumFamily (const u_int spec_num, const string &family_name) |
| bool | ResetSpectrumFamily (const string &spec_name) |
| bool | ResetSpectrumFamily (const u_int spec_num) |
| bool | StartFamily (const string &family_name) |
| bool | StopFamily (const string &family_name) |
| bool | SuspendFamily (const string &family_name) |
| bool | ResetFamily (const string &family_name) |
| virtual void | DumpEvent (const bool all=false, const u_int pmin=0, const u_int pmax=0) const |
| virtual void | DumpEvent (const string &file_name, const bool all=false, const u_int pmin=0, const u_int pmax=0) const |
| virtual void | DumpEvent (ostream &os, const bool all=false, const u_int pmin=0, const u_int pmax=0) const |
| virtual void | PrintEvent () const |
| virtual void | PrintEvent (const string &file_name) const |
| virtual void | PrintEvent (ostream &os) const |
| virtual void | PrintSpecList () const |
| virtual void | PrintSpecList (const string &) const |
| virtual void | PrintSpecList (ostream &os) const |
| virtual void | PrintFamily (const string &family_name) |
| virtual void | PrintFamily (ostream &os, const string &family_name) |
| virtual void | PrintFamily (const string &file_name, const string &family_name) |
| virtual int | LoadSpectraList (const string &filename, const bool append=true) |
| virtual int | SaveSpectraList (const string &filename) const |
| virtual int | SaveSelectedSpectra (const string &filename) const |
| virtual int | SaveHistograms (const string &file_name) const |
| virtual int | SaveSelectedHistograms (const string &file_name) const |
| virtual int | SaveFamilyHistograms (const string &file_name, const string &family_name) const |
| virtual void | RejectEvent () |
| virtual int | AddContour (const string &ct_name, RContourBase &ct) |
| virtual int | AddContour (RContour &ct) |
| virtual bool | RemoveContour (const string &ct_name, const bool force=true) |
| virtual bool | RemoveContour (const int ct_num, const bool force=true) |
| virtual bool | RemoveContour (const RContour *ct, const bool force=true) |
| virtual void | RemoveAllContours () |
| virtual int | LoadContourList (const string &filename, const bool append=true) |
| virtual int | SaveContourList (const string &filename) const |
| virtual int | AddFilter (const string &f_name, FilterBase &f) |
| virtual int | AddFilter (Filter *f) |
| virtual bool | RemoveFilter (Filter *f, const bool force=true) |
| virtual bool | RemoveFilter (const string &f_name, const bool force=true) |
| virtual bool | RemoveFilter (const int f_num, const bool force=true) |
| virtual void | RemoveAllFilters () |
| virtual int | AddFilterFalse (const char *f_name) |
| virtual int | AddFilterTrue (const char *f_name) |
| virtual int | AddFilterNot (const char *f_name, const char *fnot_name) |
| virtual int | AddFilterAnd (const char *f_name, const char *f1_name, const char *f2_name) |
| virtual int | AddFilterOr (const char *f_name, const char *f1_name, const char *f2_name) |
| virtual int | AddFilterXOr (const char *f_name, const char *f1_name, const char *f2_name) |
| virtual int | AddFilterMultiAnd (const char *f_name, const char *fl_names) |
| virtual int | AddFilterMultiOr (const char *f_name, const char *fl_names) |
| virtual int | AddFilterGate (const char *f_name, const char *p_name, const double pmin, const double pmax, const int mode=filterMultiParAnd) |
| virtual int | AddFilterContour (const char *f_name, const char *c_name, const char *x_name, const char *y_name, const bool inv=false, const int mode=filterMultiParAnd) |
| virtual int | AddFilterContour (const char *f_name, const char *c_name, const char *x_name, const bool inv=false, const int mode=filterMultiParAnd) |
| virtual int | LoadFilterList (const string &filename, const bool append=true) |
| virtual int | SaveFilterList (const string &filename) const |
| virtual bool | FilterSpectrum (const int sp_num, const string &f_name="") |
| virtual bool | FilterSpectrum (const string &sp_name, const string &f_name="") |
| virtual bool | FilterFamily (const string &family_name, const string &f_name="") |
| virtual bool | FilterTree (const int t_num, const string &f_name="") |
| virtual bool | FilterTree (const string &t_name, const string &f_name="") |
| virtual bool | CheckFilter (const string &f_name) |
| virtual bool | CheckFilter (const u_int f_num) |
| virtual bool | CheckFilter (const Filter *f) |
| ClassDef (EventManager, 0) | |
Protected Member Functions | |
| SimulRun (const SimulRun &original) | |
| virtual int | FileOpen () |
| virtual void | FileClose () |
| virtual int | CreateEvent () |
| virtual void | FillRawEvent () |
Protected Member Functions inherited from RunBase | |
| RunBase (const RunBase &original) | |
| virtual int | RunStart () |
| virtual int | RunStop () |
| virtual void | AnalysisStart () |
| virtual void | AnalysisStop () |
| virtual void | RunTape () |
| virtual void | RunFile () |
| virtual void | RunList () |
| virtual void | IncrementEventCount () |
| virtual void | IncrementFileCount () |
Protected Member Functions inherited from EventManager | |
| EventManager (const EventManager &) | |
Protected Attributes | |
| bool | event_created |
| Test si l'arbre a été initialisé | |
| u_int | raw_param_num |
| Nombre de paramètres bruts de la simulation. | |
| bool | file_open |
| Test processing of a series is started. | |
| int | run_max_event |
| Nombre d'événement avant incrémentation du numéro de fichier. | |
Protected Attributes inherited from RunBase | |
| string | work_dir |
| répertoire de base du programme | |
| bool | run_init |
| test si l'initialisation est effectuée | |
| bool | run_started |
| test si un run est en cours | |
| Int_t | file_mode |
| mode de sélection des fichiers | |
| string | file_name |
| nom effectif du fichier d'entrée | |
| string | file_pattern |
| format de recherche des fichiers runs par leur numéro | |
| u_int | file_pattern_len |
| longueur du format de numéro de run | |
| string | file_numbers |
| numéro des fichiers de runs | |
| Int_t | file_num |
| numéro du fichier traité | |
| Int_t | file_sub_num |
| numéro secondaire du fichier traité | |
| GStringList | file_list |
| liste des fichiers validant le format | |
| bool | file_list_changed |
| indique s'il faut redéterminer la liste de fichiers | |
| Int_t | file_count |
| nombre de fichiers lus | |
| Int_t | event_count |
| nombre d'événements lus dans le fichier | |
| Int_t | total_event_count |
| nombre d'événements lus total | |
Protected Attributes inherited from EventManager | |
| Event | event |
| Structure physique de l'événement. | |
| TreeList | tree_list |
| Liste des arbres de l'analyse. | |
| SpectrumList | spec_list |
| Liste des spectres de l'analyse. | |
| FilterList | filter_list |
| Liste des filtres de l'analyse. | |
Private Member Functions | |
| GObjectV (SimulRun) | |
C'est une classe de base pour générer des simulations (runs sans fichier d'entrée).
C'est une classe abstraite: elle doit être dérivée. La classe dérivée doit définir les fonctions suivantes :
Les données "brutes" des événements sont simulées et ne nécessitent donc pas de fichier d'entrée. Néanmoins, on définit tout de même des pseudo-fichiers, avec un numéro et un nom, pour la création automatique des TTree en sortie:
Ceci n'a d'intérêt que pour identifier des résultats en sortie (TTree ou autre). Si ce n'est pas le cas, il n'y a pas lieu de s'en préoccuper,
Les pseudo-fichiers utilisent également un nombre maximum d'événements. Lorsque ce nombre a été généré, le numéro de fichier est incrémenté. Si ce nombre d'événements vaut 0, alors il n'y a pas de limite au pseudo-fichier.
Exemples:
| SimulRun::SimulRun | ( | ) |
Constructeur par défaut.
References event_created, RunBase::file_name, RunBase::file_num, file_open, RunBase::file_pattern, RunBase::file_pattern_len, raw_param_num, and run_max_event.
|
virtual |
Destructeur.
|
protected |
|
private |
Macro from GCpp library that defines the following functions:
|
virtual |
Fonction qui ouvre le fichier demandé. La structure est définie Le fonction retourne 0 si l'ouverture est réussi, ou une valeur positive en cas d'erreur.
Implements RunBase.
References EventManager::event, file_open, FileOpen(), and IsOpen().
Referenced by Open().
|
virtual |
Démarrage du pseudo-fichier par son nom.
| f_name | nom de pseudo-fichier |
Reimplemented from RunBase.
References RunBase::file_name, and Open().
|
virtual |
Ouverture d'un pseudo-fichier par son numéro. La fonction utilise les champs file_pattern et file_pattern_len pour générer le nom de fichier et l'ouvrir. La fonction retourne 0 si le fichier est ouvert, une valeur négative en cas de problème, et une valeur positive s'il faut interrompre l'exécution.
| f_num | numéro du fichier |
References RunBase::file_num, and Open().
|
virtual |
Test si le fichier de données est ouvert.
Implements RunBase.
References file_open.
Referenced by AnalyseEvents(), Close(), Open(), and ReadEvent().
|
virtual |
Fermeture de fichier et appel à la fonction utilisateur de fin de run.
Implements RunBase.
References FileClose(), IsOpen(), and RunBase::RunStop().
|
virtual |
Fonction d'initialisation de l'analyse. La fonction doit ouvrir un fichier pour aller lire la structure du TTree, et créer la structure d'événement:
Implements RunBase.
References CreateEvent(), event_created, RunBase::Reset(), and RunBase::run_init.
|
virtual |
Fonction de lecture d'un événement: elle retourne 0 si l'événement est lu sans problème, -1 en cas de fin de fichier, et une autre valeur en cas de problème.
Implements RunBase.
References RunBase::event_count, event_created, FillRawEvent(), IsOpen(), RunBase::run_init, and run_max_event.
|
inlinevirtual |
Définit le nombre d'événements par run de simulation.
| n | nombre maxi d'événements |
References run_max_event.
Referenced by GEVSimulRun::RunMaxEventsTextChanged().
|
inlinevirtual |
Retourne le nombre d'événements par run de simulation.
References run_max_event.
|
virtual |
Fonction de traitement d'un nombre donné d'événements. Si le nombre d'événements demandés est 0, on traite le nombre d'événements fixé pour le pseudo-fichier (dans ce cas, celui-ci doit être différent de 0, pour ne pas boucler infiniment !). La fonction retourne le nombre d'événements traités.
| n | nombre d'événements à lire |
Reimplemented from RunBase.
References RunBase::AnalyseEvent(), RunBase::event_count, IsOpen(), and run_max_event.
|
protectedvirtual |
Fonction appelée par Open, qui démarre un nouveau run. La structure d'événement doit avoir été initialisée. La fonction retourne 0 si le démarrage du fichier est correct.
References FileClose(), RunBase::run_init, and RunBase::RunStart().
Referenced by Open().
|
protectedvirtual |
Fonction de fermeture d'un pseudo fichier.
References file_open.
Referenced by Close(), and FileOpen().
|
protectedvirtual |
|
protectedvirtual |
Fonction de simulation des paramètres bruts. Par défaut, aucun paramètre n'est calculé, mais la fonction peut être redéfinie dans les classes dérivées (en particulier si la fonction CreateEvent a été redéfinie).
Referenced by ReadEvent().
|
virtual |
Définit le type de source des fichiers run.
| mode | mode de lecture |
Reimplemented from RunBase.
References RunBase::file_mode.
| SimulRun::ClassDef | ( | SimulRun | , |
| 0 | |||
| ) |
Définition à usage de ROOT...