25 fOutputDirectory =
"./";
27 tree_name =
"SIMULATION_NAME";
28 tree_title =
"SIMULATION";
29 root_file_name =
"Output.root";
31 branch_name =
"Simulated_evts";
119 Info(
"DeclareTree",
"Ouverture du fichier de stockage %s", filename.
Data());
133 Info(
"ReadFile",
"To be defined in child class");
156 Info(
"ReadHeader",
"To be defined in child class");
185 Info(
"ReadEvent",
"To be defined in child class");
225 Info(
"ReadNucleus",
"To be defined in child class");
278 ::Error(
"KVSimReader::MakeSimReader",
"No plugin defined with name %s", model_uri);
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
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
virtual void Add(TObject *obj)
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, const T &... params)
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
TString & Prepend(char c, Ssiz_t rep=1)
void Form(const char *fmt,...)
virtual UserGroup_t * GetUserInfo(const char *user=nullptr)
virtual void ResetBranchAddress(TBranch *)
virtual TList * GetUserInfo()
virtual Int_t Write(const char *name=0, Int_t option=0, Int_t bufsize=0)