CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TFileAdaptor.h
Go to the documentation of this file.
1 #ifndef IOPool_TFileAdaptor_TFileAdaptor_h
2 #define IOPool_TFileAdaptor_TFileAdaptor_h
3 
4 #include <map>
5 #include <string>
6 #include <vector>
7 
8 class TPluginManager;
9 
10 namespace edm {
11  class ActivityRegistry;
13  class ParameterSet;
14 }
15 
16 // Driver for configuring ROOT plug-in manager to use TStorageFactoryFile.
17 class TFileAdaptor {
18 public:
20 
21  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
22 
23  // Write current Storage statistics on a ostream
24  void termination(void) const;
25 
26  void stats(std::ostream &o) const;
27 
28  void statsXML(std::map<std::string, std::string> &data) const;
29 
30 private:
31  static void addType(TPluginManager* mgr, char const* type, int altType=0);
32  bool native(char const* proto) const;
33 
34  bool enabled_;
35  bool doStats_;
40  double minFree_;
41  unsigned int timeout_;
42  unsigned int debugLevel_;
43  std::vector<std::string> native_;
44 
45 };
46 
47 namespace edm {
48  namespace service {
49  inline
51  return true;
52  }
53  }
54 }
55 #endif
type
Definition: HCALResponse.h:21
unsigned int timeout_
Definition: TFileAdaptor.h:41
bool native(char const *proto) const
Definition: TFileAdaptor.cc:76
std::string cacheHint_
Definition: TFileAdaptor.h:37
bool isProcessWideService(TFileService const *)
Definition: TFileService.h:43
std::string readHint_
Definition: TFileAdaptor.h:38
void stats(std::ostream &o) const
double minFree_
Definition: TFileAdaptor.h:40
std::string tempDir_
Definition: TFileAdaptor.h:39
unsigned int debugLevel_
Definition: TFileAdaptor.h:42
bool enablePrefetching_
Definition: TFileAdaptor.h:36
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::vector< std::string > native_
Definition: TFileAdaptor.h:43
static void addType(TPluginManager *mgr, char const *type, int altType=0)
Definition: TFileAdaptor.cc:40
TFileAdaptor(edm::ParameterSet const &pset, edm::ActivityRegistry &ar)
Definition: TFileAdaptor.cc:81
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
void termination(void) const
void statsXML(std::map< std::string, std::string > &data) const