test
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 
5 
6 #include <map>
7 #include <memory>
8 #include <string>
9 #include <vector>
10 
11 class TPluginManager;
12 
13 namespace edm {
14  class ActivityRegistry;
16  class ParameterSet;
17 }
18 
19 // Driver for configuring ROOT plug-in manager to use TStorageFactoryFile.
20 class TFileAdaptor {
21 public:
23 
24  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
25 
26  friend class TFileAdaptorUI;
27 private:
28  // Write current Storage statistics on a ostream
29  void termination(void) const;
30 
31  //Called by TFileAdaptorUI
32  void stats(std::ostream &o) const;
33 
34  void statsXML(std::map<std::string, std::string> &data) const;
35 
36  static void addType(TPluginManager* mgr, char const* type, int altType=0);
37  bool native(char const* proto) const;
38 
39  bool enabled_;
40  bool doStats_;
45  double minFree_;
46  unsigned int timeout_;
47  unsigned int debugLevel_;
48  std::vector<std::string> native_;
49 
50 };
51 
52 namespace edm {
53  namespace service {
54  inline
56  return true;
57  }
58  }
59 }
60 
61 /*
62  * wrapper to bind TFileAdaptor to root, python etc
63  * loading IOPoolTFileAdaptor library and instantiating
64  * TFileAdaptorUI will make root to use StorageAdaptor for I/O instead
65  * of its own plugins
66  */
67 
69 public:
70 
73 
74  // print current Storage statistics on cout
75  void stats() const;
76 
77 private:
79 };
80 
81 #endif
type
Definition: HCALResponse.h:21
unsigned int timeout_
Definition: TFileAdaptor.h:46
bool native(char const *proto) const
Definition: TFileAdaptor.cc:75
std::string cacheHint_
Definition: TFileAdaptor.h:42
bool isProcessWideService(TFileService const *)
Definition: TFileService.h:99
std::string readHint_
Definition: TFileAdaptor.h:43
void stats(std::ostream &o) const
edm::propagate_const< std::shared_ptr< TFileAdaptor > > me
Definition: TFileAdaptor.h:78
double minFree_
Definition: TFileAdaptor.h:45
std::string tempDir_
Definition: TFileAdaptor.h:44
unsigned int debugLevel_
Definition: TFileAdaptor.h:47
bool enablePrefetching_
Definition: TFileAdaptor.h:41
void stats() const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::vector< std::string > native_
Definition: TFileAdaptor.h:48
static void addType(TPluginManager *mgr, char const *type, int altType=0)
Definition: TFileAdaptor.cc:39
TFileAdaptor(edm::ParameterSet const &pset, edm::ActivityRegistry &ar)
Definition: TFileAdaptor.cc:80
void termination(void) const
void statsXML(std::map< std::string, std::string > &data) const