NCFS-Pack
A generic (astro)particle physics analysis framework
 
Loading...
Searching...
No Matches
IceRootx.h
Go to the documentation of this file.
1#ifndef IceRootx_h
2#define IceRootx_h
3
4// Copyright(c) 2003, IceCube Experiment at the South Pole, All rights reserved.
5// See cxx source for full Copyright notice.
6
7#include "TFile.h"
8#include "TTree.h"
9#include "TLeaf.h"
10#include "TString.h"
11#include "TObjString.h"
12#include "TObjArray.h"
13
14#include "NcJob.h"
15#include "NcObjMatrix.h"
16
17#include "IceAOM.h"
18#include "IceEvent.h"
19
21
22class IceRootx : public NcJob
23{
24 public :
25 IceRootx(const char* name="IceRootx",const char* title=""); // Constructor
26 virtual ~IceRootx(); // Destructor
27 void SetMaxEvents(Int_t n); // Set maximum number of events to be processed
28 void SetPrintFreq(Int_t f); // Set printfrequency to provide info every f events
29 void SetSplitLevel(Int_t split); // Set split level for the produced ROOT data file
30 void SetBufferSize(Int_t bsize); // Set buffersize for the produced ROOT data file
31 void AddInputFile(TString name); // Add name of simple Root input file to the list
32 void SetOutputFile(TFile* ofile); // Set output file for the ROOT data structures
33 void SetOutputFile(TString name); // Create output file for the ROOT data structures
34 TFile* GetOutputFile(); // Provide pointer to the ROOT output file
35 virtual void Exec(Option_t* opt); // Perform the format conversion
36
37 protected :
38 Int_t fSplit; // The split level of the produced ROOT data file
39 Int_t fBsize; // The buffersize of the produced ROOT data file
40 Int_t fMaxevt; // The maximum number of events to be processed
41 Int_t fPrintfreq; // The event info printing frequency
42 TObjArray* fInfiles; // Names of all the simple Root data input files
43 TFile* fOutfile; // The ROOT output file
44
45 TTree* fTree; // Tree with simple Root data
46
47 ClassDef(IceRootx,1) // Job for conversion of simple Root data into IceEvent data structures.
48};
49#endif
TObjArray * fInfiles
Definition IceRootx.h:42
void SetBufferSize(Int_t bsize)
Definition IceRootx.cxx:162
Int_t fSplit
Definition IceRootx.h:38
IceRootx(const char *name="IceRootx", const char *title="")
Definition IceRootx.cxx:93
Int_t fMaxevt
Definition IceRootx.h:40
virtual void Exec(Option_t *opt)
Definition IceRootx.cxx:228
void SetOutputFile(TFile *ofile)
Definition IceRootx.cxx:193
virtual ~IceRootx()
Definition IceRootx.cxx:110
void AddInputFile(TString name)
Definition IceRootx.cxx:174
TFile * fOutfile
Definition IceRootx.h:43
TFile * GetOutputFile()
Definition IceRootx.cxx:217
void SetPrintFreq(Int_t f)
Definition IceRootx.cxx:138
void SetSplitLevel(Int_t split)
Definition IceRootx.cxx:150
TTree * fTree
Definition IceRootx.h:45
Int_t fBsize
Definition IceRootx.h:39
void SetMaxEvents(Int_t n)
Definition IceRootx.cxx:125
Int_t fPrintfreq
Definition IceRootx.h:41
NcJob(const char *name="NcJob", const char *title="")
Definition NcJob.cxx:139