NCFS-Pack
A generic (astro)particle physics analysis framework
 
Loading...
Searching...
No Matches
RnoConvert.h
Go to the documentation of this file.
1#ifndef RnoConvert_h
2#define RnoConvert_h
3
4// Copyright(c) 2021, RNO-G Experiment at Summit Station, All rights reserved.
5// See cxx source for full Copyright notice.
6
7#include "TSystem.h"
8#include "TFile.h"
9#include "TChain.h"
10#include "TLeaf.h"
11#include "TMath.h"
12#include "TIterator.h"
13
14#include "NcJob.h"
15#include "NcTagger.h"
16
17#include "RnoDetector.h"
18#include "RnoEvent.h"
19
21
22class RnoConvert : public NcJob
23{
24 public :
25 RnoConvert(const char* name="RnoConvert",const char* title=""); // Constructor
26 virtual ~RnoConvert(); // Destructor
27 void SetMaxEvents(Int_t n); // Set maximum number of events to be processed
28 void SetPrintFreq(Int_t m,Int_t level=0); // Set printfrequency to provide info every f events
29 void SetSplitLevel(Int_t split); // Set split level for the produced RnoEvent data file
30 void SetBufferSize(Int_t bsize); // Set buffersize for the produced RnoEvent data file
31 void AddInputFile(TString file,TString type); // Add an RNO-G data input file to the list
32 void SetOutputFile(TFile* ofile); // Set output file for the RnoEvent data structures
33 void SetOutputFile(TString name); // Create output file for the RnoEvent data structures
34 void SetSelectLevels(Int_t min,Int_t max); // Set required event select level interval for events to be written out
35 Int_t GetMinSelectLevel() const; // Provide minimum required event select level for events to be written out
36 Int_t GetMaxSelectLevel() const; // Provide maximum required event select level for events to be written out
37 void ListInput(TString type="*",Option_t* opt=""); // Provide an overview listing of the selected input data
38 TFile* GetOutputFile(); // Provide pointer to the RnoEvent output file
39 virtual void Exec(Option_t* opt); // Perform the format conversion
40
41 protected :
42 Int_t fSplit; // The split level of the produced RnoEvent data file
43 Int_t fBsize; // The buffersize of the produced RnoEvent data file
44 Int_t fMaxevt; // The maximum number of events to be processed
45 Int_t fPrintfreq; // The event info printing frequency
46 Int_t fPrintlevel; // The event info printing level
47 TFile* fOutfile; // The RnoEvent data output file
48 TChain* fHdr; // TChain with RNO-G event header data
49 TChain* fDs; // TChain with RNO-G event DAQ status data
50 TChain* fWf; // TChain with RNO-G event waveform data
51 TChain* fComb; // TChain with RNO-G combined event data
52 TChain* fPed; // TChain with RNO-G pedestal data for all channels
53 TChain* fData; // TChain containing all of the above RNO-G input data
54 Int_t fMinSelectLevel; // Minimum event select level for events to be written out
55 Int_t fMaxSelectLevel; // Maximum event select level for events to be written out
56
57 void CreateMainChain();
58
59 ClassDef(RnoConvert,9) // Job for conversion of RNO-G Root data into RnoEvent data structures.
60};
61#endif
NcJob(const char *name="NcJob", const char *title="")
Definition NcJob.cxx:139
TChain * fPed
Definition RnoConvert.h:52
TFile * GetOutputFile()
Int_t GetMaxSelectLevel() const
virtual ~RnoConvert()
Int_t fMinSelectLevel
Definition RnoConvert.h:54
Int_t GetMinSelectLevel() const
void AddInputFile(TString file, TString type)
Int_t fMaxSelectLevel
Definition RnoConvert.h:55
void SetPrintFreq(Int_t m, Int_t level=0)
Int_t fSplit
Definition RnoConvert.h:42
void SetSelectLevels(Int_t min, Int_t max)
TChain * fComb
Definition RnoConvert.h:51
TFile * fOutfile
Definition RnoConvert.h:47
Int_t fPrintfreq
Definition RnoConvert.h:45
Int_t fPrintlevel
Definition RnoConvert.h:46
TChain * fWf
Definition RnoConvert.h:50
RnoConvert(const char *name="RnoConvert", const char *title="")
void ListInput(TString type="*", Option_t *opt="")
TChain * fData
Definition RnoConvert.h:53
virtual void Exec(Option_t *opt)
void SetSplitLevel(Int_t split)
void SetOutputFile(TFile *ofile)
TChain * fDs
Definition RnoConvert.h:49
void SetMaxEvents(Int_t n)
void SetBufferSize(Int_t bsize)
Int_t fMaxevt
Definition RnoConvert.h:44
void CreateMainChain()
TChain * fHdr
Definition RnoConvert.h:48
Int_t fBsize
Definition RnoConvert.h:43