T2StatFileManager.h
Go to the documentation of this file.
1 #ifndef _sdet_T2StatFileManager_h_
2 #define _sdet_T2StatFileManager_h_
3 
4 /*
5  \file ...
6 
7  \author Jose Luis Navarro Quirante
8  \date Wed Apr 20 09:51:30 CET 2010
9 */
10 
11 #include <det/Detector.h>
12 
13 #include <string>
14 #include <vector>
15 
16 
17 class TChain;
18 class TDirectory;
19 
20 namespace sdet {
21 
23 
24  public:
26  virtual ~T2StatFileManager();
27 
29 
31  //VMANAGER_GETDATA_NOTFOUND(unsigned long long int)
32  VMANAGER_GETDATA_NOTFOUND(std::string)
33  VMANAGER_GETDATA_NOTFOUND(std::list<int>)
34  VMANAGER_GETDATA_NOTFOUND(std::list<double>)
35  VMANAGER_GETDATA_NOTFOUND(std::list<std::string>)
36  VMANAGER_GETDATA_NOTFOUND(std::list<std::pair<int, int>>)
37  VMANAGER_GETDATA_NOTFOUND(std::vector<double>)
38  VMANAGER_GETDATA_NOTFOUND(std::vector<int>)
39  VMANAGER_GETDATA_NOTFOUND(std::vector<std::string>)
40  VMANAGER_GETDATA_NOTFOUND(std::vector<bool>)
41  VMANAGER_GETDATA_NOTFOUND(utl::TabulatedFunction)
42  VMANAGER_GETDATA_NOTFOUND(utl::TabulatedFunctionComplexLgAmpPhase)
43  VMANAGER_GETDATA_NOTFOUND(std::map<int, utl::TabulatedFunction>)
44 
45  VMANAGER_GETDATA_NOTFOUND(std::map<std::string, double>)
46 
47  void Init(const std::string& configLink);
48 
49  private:
50  Status GetOkFlag(int& returnData,
51  const std::string& componentProperty,
52  const std::string& componentName,
53  const IndexMap& componentIndex) const;
54 
55  int GetStationStatus(const IndexMap& componentIndex) const;
56  bool ReadData() const;
57 
59 
60  int fVerbosity = 0;
61  int fCommsCrisis = 0;
62  std::vector <std::string> fAllT2Files;
63  TChain* fDataTree = nullptr;
64  unsigned int fstartGPS = 0;
65  unsigned int fendGPS = 0;
66  TDirectory* fDir = nullptr;
67 
68  // data cache
69  std::vector<unsigned int> fStationList;
70 
71  };
72 
73 }
74 
75 
76 #endif
Status GetOkFlag(int &returnData, const std::string &componentProperty, const std::string &componentName, const IndexMap &componentIndex) const
Interface for detector managers.
Definition: VManager.h:115
std::vector< unsigned int > fStationList
#define VMANAGER_GETDATA_CALL(_GetData_, _T_...)
Definition: VManager.h:59
void Init(const std::string &configLink)
Manager Initialization. configLink is the CentralConfig hook for the configuration file...
#define VMANAGER_GETDATA_HANDLE_DENIED
Definition: VManager.h:75
std::vector< std::string > fAllT2Files
std::map< std::string, std::string > IndexMap
Definition: VManager.h:133
#define VMANAGER_GETDATA_NOTFOUND(_T_...)
Definition: VManager.h:41
Status
Specifies success or (eventually) various possible failure modes.
Definition: VManager.h:127
VMANAGER_GETDATA_HANDLE_DENIED int fVerbosity
int GetStationStatus(const IndexMap &componentIndex) const

, generated on Tue Sep 26 2023.