NCFS-Pack
A generic (astro)particle physics analysis framework
 
Loading...
Searching...
No Matches
IceCal2Root.h
Go to the documentation of this file.
1#ifndef IceCal2Root_h
2#define IceCal2Root_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 "TString.h"
9#include "TDatabasePDG.h"
10
11#include "NcJob.h"
12#include "NcObjMatrix.h"
13
14#include "IceAOM.h"
15
16#include "Riostream.h"
17
19
20class IceCal2Root : public NcJob
21{
22 public :
23 IceCal2Root(const char* name="IceCal2Root",const char* title=""); // Constructor
24 virtual ~IceCal2Root(); // Destructor
25 void SetAmacalibFile(TString name); // Set name of the Amacalib MuDaq input file
26 void SetTWRDaqFile(TString name); // Set name of the TWRDaq calibration input file
27 void SetOutputFile(TString name); // Set output file for the ROOT data structures
28 TDatabasePDG* GetPDG(); // Provide pointer to the PDG database
29 NcObjMatrix* GetOMdbase(TString name="MuDaq"); // Provide pointer to the requested OM database
30 virtual void Exec(Option_t* opt); // Perform the format conversion
31
32 protected :
33 ifstream fInput; // Input stream for generic use of reading data
34
35 TString fAmacalFileName; // Name of the Amacalib MuDaq input file
36 TString fTWRDaqFileName; // Name of the TWRDaq calibration input file
37 TString fRootFileName; // Name of the ROOT output file
38 TFile* fOutfile; // The ROOT output file
39
40 TDatabasePDG* fPdg; // Database with PDG information
41 NcObjMatrix* fMuDaqdb; // Database of all OM devices with their MuDaq geometry, calib. etc... data
42 NcObjMatrix* fTWRDaqdb; // Database of all OM devices with their TWRDaq geometry, calib. etc... data
43
44 void GetMuDaqData(); // Fill MuDaq geometry, calibration and Xtalk parameters of all devices
45 void GetTWRDaqData(); // Fill TWRDaq geometry and calibration parameters of all devices
46
47 ClassDef(IceCal2Root,2) // Job for conversion of (ascii) calibration data into an NcObjMatrix OM dbase
48};
49#endif
void GetTWRDaqData()
void SetAmacalibFile(TString name)
NcObjMatrix * fTWRDaqdb
Definition IceCal2Root.h:42
TString fTWRDaqFileName
Definition IceCal2Root.h:36
void SetOutputFile(TString name)
NcObjMatrix * fMuDaqdb
Definition IceCal2Root.h:41
IceCal2Root(const char *name="IceCal2Root", const char *title="")
void GetMuDaqData()
TString fAmacalFileName
Definition IceCal2Root.h:35
TDatabasePDG * GetPDG()
TString fRootFileName
Definition IceCal2Root.h:37
NcObjMatrix * GetOMdbase(TString name="MuDaq")
TFile * fOutfile
Definition IceCal2Root.h:38
virtual ~IceCal2Root()
void SetTWRDaqFile(TString name)
TDatabasePDG * fPdg
Definition IceCal2Root.h:40
virtual void Exec(Option_t *opt)
ifstream fInput
Definition IceCal2Root.h:33
NcJob(const char *name="NcJob", const char *title="")
Definition NcJob.cxx:139
Handling of a matrix structure of objects.
Definition NcObjMatrix.h:13