CMS 3D CMS Logo

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 } // namespace edm
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 
28 private:
29  // Write current Storage statistics on a ostream
30  void termination(void) const;
31 
32  //Called by TFileAdaptorUI
33  void stats(std::ostream& o) const;
34 
35  void statsXML(std::map<std::string, std::string>& data) const;
36 
37  static void addType(TPluginManager* mgr, char const* type, int altType = 0);
38  bool native(char const* proto) const;
39 
40  bool enabled_;
41  bool doStats_;
46  double minFree_;
47  unsigned int timeout_;
48  unsigned int debugLevel_;
49  std::vector<std::string> native_;
50 };
51 
52 namespace edm {
53  namespace service {
54  inline bool isProcessWideService(TFileAdaptor const*) { return true; }
55  } // namespace service
56 } // namespace edm
57 
58 /*
59  * wrapper to bind TFileAdaptor to root, python etc
60  * loading IOPoolTFileAdaptor library and instantiating
61  * TFileAdaptorUI will make root to use StorageAdaptor for I/O instead
62  * of its own plugins
63  */
64 
66 public:
69 
70  // print current Storage statistics on cout
71  void stats() const;
72 
73 private:
75 };
76 
77 #endif
TFileAdaptor
Definition: TFileAdaptor.h:20
TFileAdaptorUI::me
edm::propagate_const< std::shared_ptr< TFileAdaptor > > me
Definition: TFileAdaptor.h:74
service
Definition: service.py:1
TFileAdaptor::termination
void termination(void) const
Definition: TFileAdaptor.cc:213
TFileAdaptor::native_
std::vector< std::string > native_
Definition: TFileAdaptor.h:49
ActivityRegistry
TFileAdaptorUI
Definition: TFileAdaptor.h:65
propagate_const.h
edm
HLT enums.
Definition: AlignableModifier.h:19
TFileAdaptor::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: TFileAdaptor.cc:200
edm::service::isProcessWideService
bool isProcessWideService(TFileService const *)
Definition: TFileService.h:98
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:42
edm::propagate_const
Definition: propagate_const.h:32
TFileAdaptorUI::~TFileAdaptorUI
~TFileAdaptorUI()
Definition: TFileAdaptor.cc:264
TFileAdaptor::stats
void stats(std::ostream &o) const
Definition: TFileAdaptor.cc:222
edm::ActivityRegistry
Definition: ActivityRegistry.h:134
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
TFileAdaptor::minFree_
double minFree_
Definition: TFileAdaptor.h:46
edm::ParameterSet
Definition: ParameterSet.h:47
TFileAdaptor::tempDir_
std::string tempDir_
Definition: TFileAdaptor.h:45
ParameterSet
Definition: Functions.h:16
TFileAdaptor::TFileAdaptor
TFileAdaptor(edm::ParameterSet const &pset, edm::ActivityRegistry &ar)
Definition: TFileAdaptor.cc:69
type
type
Definition: SiPixelVCal_PayloadInspector.cc:39
TFileAdaptor::debugLevel_
unsigned int debugLevel_
Definition: TFileAdaptor.h:48
TFileAdaptor::native
bool native(char const *proto) const
Definition: TFileAdaptor.cc:64
TFileAdaptor::cacheHint_
std::string cacheHint_
Definition: TFileAdaptor.h:43
TFileAdaptor::timeout_
unsigned int timeout_
Definition: TFileAdaptor.h:47
TFileAdaptorUI::stats
void stats() const
Definition: TFileAdaptor.cc:266
TFileAdaptor::statsXML
void statsXML(std::map< std::string, std::string > &data) const
Definition: TFileAdaptor.cc:237
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ConfigurationDescriptions
TFileAdaptor::readHint_
std::string readHint_
Definition: TFileAdaptor.h:44
TFileAdaptorUI::TFileAdaptorUI
TFileAdaptorUI()
Definition: TFileAdaptor.cc:258
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
TFileAdaptor::addType
static void addType(TPluginManager *mgr, char const *type, int altType=0)
Definition: TFileAdaptor.cc:38
TFileAdaptor::enabled_
bool enabled_
Definition: TFileAdaptor.h:40
TFileAdaptor::enablePrefetching_
bool enablePrefetching_
Definition: TFileAdaptor.h:42
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
TFileAdaptor::doStats_
bool doStats_
Definition: TFileAdaptor.h:41