NCFS-Pack
A generic (astro)particle physics analysis framework
 
Loading...
Searching...
No Matches
IceRoot.h
Go to the documentation of this file.
1#ifndef IceRoot_h
2#define IceRoot_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 "TMath.h"
11#include "TString.h"
12#include "TObjString.h"
13#include "TObjArray.h"
14#include "TPRegexp.h"
15
16#include "NcJob.h"
17#include "NcObjMatrix.h"
18#include "NcSample.h"
19
20#include "IceGOM.h"
21#include "IceAOM.h"
22#include "IceIDOM.h"
23#include "IceTDOM.h"
24#include "IceEvent.h"
25
27
28class IceRoot : public NcJob
29{
30 public :
31 IceRoot(const char* name="IceRoot",const char* title=""); // Constructor
32 virtual ~IceRoot(); // Destructor
33 void SetMaxEvents(Int_t n); // Set maximum number of events to be processed
34 void SetPrintFreq(Int_t f); // Set printfrequency to provide info every f events
35 void SetSplitLevel(Int_t split); // Set split level for the produced ROOT data file
36 void SetBufferSize(Int_t bsize); // Set buffersize for the produced ROOT data file
37 void SetInputFile(TString name); // Set name of simple Root input file
38 void AddInputFile(TString name); // Add name of simple Root input file to the list
39 void SetOutputFile(TFile* ofile); // Set output file for the ROOT data structures
40 void SetOutputFile(TString name); // Create output file for the ROOT data structures
41 TFile* GetOutputFile(); // Provide pointer to the ROOT output file
42 void SetCalibFile(TString name); // Set ROOT calibration input file
43 void SetOMdbase(NcObjMatrix* omdb); // Set ROOT calibration database
44 virtual void Exec(Option_t* opt); // Perform the format conversion
45
46 protected :
47 Int_t fSplit; // The split level of the produced ROOT data file
48 Int_t fBsize; // The buffersize of the produced ROOT data file
49 Int_t fMaxevt; // The maximum number of events to be processed
50 Int_t fPrintfreq; // The event info printing frequency
51 TObjArray* fInfiles; // Names of all the simple Root data input files
52 TFile* fOutfile; // The ROOT output file
53 TFile* fCalfile; // The (optional) calibration input file in ROOT format
54 NcObjMatrix* fJEBTDaq; // The (optional) JEB TWR calibration database
55 TTree* fTree; // Tree with simple Root data
56
57 ClassDef(IceRoot,7) // Job for conversion of simple Root data into IceEvent data structures.
58};
59#endif
void SetOMdbase(NcObjMatrix *omdb)
Definition IceRoot.cxx:279
Int_t fPrintfreq
Definition IceRoot.h:50
void SetOutputFile(TFile *ofile)
Definition IceRoot.cxx:222
TFile * GetOutputFile()
Definition IceRoot.cxx:246
TFile * fOutfile
Definition IceRoot.h:52
void SetBufferSize(Int_t bsize)
Definition IceRoot.cxx:171
void SetCalibFile(TString name)
Definition IceRoot.cxx:257
Int_t fSplit
Definition IceRoot.h:47
virtual ~IceRoot()
Definition IceRoot.cxx:113
IceRoot(const char *name="IceRoot", const char *title="")
Definition IceRoot.cxx:94
Int_t fMaxevt
Definition IceRoot.h:49
void AddInputFile(TString name)
Definition IceRoot.cxx:203
TTree * fTree
Definition IceRoot.h:55
Int_t fBsize
Definition IceRoot.h:48
void SetPrintFreq(Int_t f)
Definition IceRoot.cxx:147
virtual void Exec(Option_t *opt)
Definition IceRoot.cxx:296
NcObjMatrix * fJEBTDaq
Definition IceRoot.h:54
void SetMaxEvents(Int_t n)
Definition IceRoot.cxx:134
void SetSplitLevel(Int_t split)
Definition IceRoot.cxx:159
void SetInputFile(TString name)
Definition IceRoot.cxx:183
TFile * fCalfile
Definition IceRoot.h:53
TObjArray * fInfiles
Definition IceRoot.h:51
NcJob(const char *name="NcJob", const char *title="")
Definition NcJob.cxx:139
Handling of a matrix structure of objects.
Definition NcObjMatrix.h:13