4#include "KVSimReader.h"
26 fOutputDirectory =
"./";
29 tree_title =
"SIMULATION";
30 root_file_name =
"Output.root";
32 branch_name =
"Simulated_evts";
120 Info(
"DeclareTree",
"Ouverture du fichier de stockage %s",
filename.Data());
134 Info(
"ReadFile",
"To be defined in child class");
157 Info(
"ReadHeader",
"To be defined in child class");
186 Info(
"ReadEvent",
"To be defined in child class");
226 Info(
"ReadNucleus",
"To be defined in child class");
279 ::Error(
"KVSimReader::MakeSimReader",
"No plugin defined with name %s", model_uri);
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char filename
char * Form(const char *fmt,...)
R__EXTERN TSystem * gSystem
static TPluginHandler * LoadPlugin(const Char_t *base, const Char_t *uri="0")
static void MakeEventBranch(TTree *tree, const TString &branchname, T &event, Int_t bufsize=10000000)
Bool_t OpenFileToRead(const KVString &filename)
Extended TList class which owns its objects by default.
Handles lists of named parameters with different types, a list of KVNamedParameter objects.
virtual void Clear(Option_t *opt="")
virtual void SetOwner(Bool_t enable=kTRUE)
virtual void Clear(Option_t *option="")
virtual void Add(TObject *obj)
Container class for simulated nuclei, KVSimNucleus.
Base class to read output files for simulation and create tree using KVSimEvent class.
virtual Bool_t ReadHeader()
void DeclareTree(Option_t *option)
KVList * linked_info
Liste d'info (TNamed) enregistree dans l arbre.
virtual Bool_t ReadNucleus()
virtual Bool_t ReadEvent()
TString fOutputDirectory
where to save converted events
void Run(Option_t *option="recreate")
KVList * linked_objects
liste d'objets a enregistree avec l'arbre
KVList * GetLinkedObjects()
static KVSimReader * MakeSimReader(const char *model_uri)
virtual Bool_t HasToFill()
void AddObject(TObject *obj)
virtual void ConvertEventsInFile(KVString filename)
Method called by constructors with KVString filename argument.
KVSimReader()
Default constructor.
virtual ~KVSimReader()
Destructor.
virtual KVString GetDate()
void AddInfo(const Char_t *name, const Char_t *val)
virtual void ConvertAndSaveEventsInFile(KVString filename)
Read events, convert and save in ROOT file.
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
void SetName(const char *name)
virtual Int_t GetEntries() const
void Add(TObject *obj) override
virtual void Error(const char *method, const char *msgfmt,...) const
virtual void Info(const char *method, const char *msgfmt,...) const
Longptr_t ExecPlugin(int nargs)
virtual TObject * RemoveAt(Int_t idx)
void Start(Bool_t reset=kTRUE)
Bool_t EndsWith(const char *pat, ECaseCompare cmp=kExact) const
const char * Data() const
void Form(const char *fmt,...)
virtual UserGroup_t * GetUserInfo(const char *user=nullptr)
virtual void ResetBranchAddress(TBranch *)
Int_t Write(const char *name=nullptr, Int_t option=0, Int_t bufsize=0) const override
virtual TList * GetUserInfo()