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