NCFS-Pack
A generic (astro)particle physics analysis framework
 
Loading...
Searching...
No Matches
IceDB2Root.h
Go to the documentation of this file.
1#ifndef IceDB2Root_h
2#define IceDB2Root_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 "TSQLServer.h"
10#include "TSQLStatement.h"
11#include "TDatabasePDG.h"
12
13#include "NcJob.h"
14#include "NcObjMatrix.h"
15
16#include "IceAOM.h"
17#include "IceDOM.h"
18
20
21class IceDB2Root : public NcJob
22{
23 public :
24 IceDB2Root(const char* name="IceDB2Root",const char* title=""); // Constructor
25 virtual ~IceDB2Root(); // Destructor
26 void SetDatabase(TString name, TString user, TString password=""); // Set name of database, user and password
27 void SetOutputFile(TString name); // Set output file for the ROOT data structures
28 void SetUT(Int_t y, Int_t m, Int_t d, Int_t hh=0, Int_t mm=0, Int_t ss=0); // Set time for which calibration is done
29 NcTimestamp GetTime(); // Provide time for which calibration is done
30 TDatabasePDG* GetPDG(); // Provide pointer to the PDG database
31 NcObjMatrix* GetOMdbase(TString name="MuDaq"); // Provide pointer to the requested OM database
32 virtual void Exec(Option_t* opt); // Perform the format conversion
33
34 protected :
35 TString fDBName; // Name of the database
36 TString fUser; // User name for access to the DB
37 TString fPassword; // Password for access to the DB
38 TString fRootFileName; // Name of the ROOT output file
39 TFile* fOutfile; // The ROOT output file
40 NcTimestamp fTime; // Time for which calibration is done
41
42 TDatabasePDG* fPdg; // Database with PDG information
43 NcObjMatrix* fMuDaqdb; // Database of all OM devices with their MuDaq geometry, calib. etc... data
44 NcObjMatrix* fTWRDaqdb; // Database of all OM devices with their TWRDaq geometry, calib. etc... data
45 NcObjMatrix* fJEBTDaqdb; // Database of all OM devices with their JEB TWRDaq geometry, calib. etc... data
46 NcObjMatrix* fJEBADaqdb; // Database of all OM devices with their JEB ATWDDaq geometry, calib. etc... data
47
48 void GetMuDaqData(); // Fill MuDaq geometry, calibration and Xtalk parameters of all devices
49 void GetTWRDaqData(); // Fill TWRDaq geometry and calibration parameters of all devices
50 void GetJEBTDaqData(); // Fill JEB TWRDaq geometry and calibration parameters of all devices
51 void GetJEBADaqData(); // Fill JEB ATWDDaq geometry and calibration parameters of all devices
52
53 ClassDef(IceDB2Root,1) // Job for extracting calibration data from database and storing them into an NcObjMatrix OM dbase
54};
55#endif
NcObjMatrix * fJEBTDaqdb
Definition IceDB2Root.h:45
NcTimestamp fTime
Definition IceDB2Root.h:40
void GetMuDaqData()
NcObjMatrix * fTWRDaqdb
Definition IceDB2Root.h:44
void GetJEBTDaqData()
void GetTWRDaqData()
void SetOutputFile(TString name)
NcObjMatrix * fJEBADaqdb
Definition IceDB2Root.h:46
void GetJEBADaqData()
TDatabasePDG * GetPDG()
TString fRootFileName
Definition IceDB2Root.h:38
TDatabasePDG * fPdg
Definition IceDB2Root.h:42
void SetUT(Int_t y, Int_t m, Int_t d, Int_t hh=0, Int_t mm=0, Int_t ss=0)
virtual void Exec(Option_t *opt)
TString fDBName
Definition IceDB2Root.h:35
NcObjMatrix * GetOMdbase(TString name="MuDaq")
TString fPassword
Definition IceDB2Root.h:37
void SetDatabase(TString name, TString user, TString password="")
TFile * fOutfile
Definition IceDB2Root.h:39
IceDB2Root(const char *name="IceDB2Root", const char *title="")
NcTimestamp GetTime()
virtual ~IceDB2Root()
NcObjMatrix * fMuDaqdb
Definition IceDB2Root.h:43
TString fUser
Definition IceDB2Root.h:36
NcJob(const char *name="NcJob", const char *title="")
Definition NcJob.cxx:139
Handling of a matrix structure of objects.
Definition NcObjMatrix.h:13
Handling of timestamps for (astro)particle physics research.
Definition NcTimestamp.h:20