Main Page
Namespaces
Classes
Package Documentation
IOPool
TFileAdaptor
src
TFileAdaptor.h
Go to the documentation of this file.
1
#ifndef IOPool_TFileAdaptor_TFileAdaptor_h
2
#define IOPool_TFileAdaptor_TFileAdaptor_h
3
4
#include "
FWCore/Utilities/interface/propagate_const.h
"
5
6
#include <map>
7
#include <memory>
8
#include <string>
9
#include <vector>
10
11
class
TPluginManager;
12
13
namespace
edm
{
14
class
ActivityRegistry
;
15
class
ConfigurationDescriptions
;
16
class
ParameterSet
;
17
}
18
19
// Driver for configuring ROOT plug-in manager to use TStorageFactoryFile.
20
class
TFileAdaptor
{
21
public
:
22
TFileAdaptor
(
edm::ParameterSet
const
&
pset
,
edm::ActivityRegistry
& ar);
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_
;
41
bool
enablePrefetching_
;
42
std::string
cacheHint_
;
43
std::string
readHint_
;
44
std::string
tempDir_
;
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
55
bool
isProcessWideService
(
TFileAdaptor
const
*) {
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
68
class
TFileAdaptorUI
{
69
public
:
70
71
TFileAdaptorUI
();
72
~
TFileAdaptorUI
();
73
74
// print current Storage statistics on cout
75
void
stats()
const
;
76
77
private
:
78
edm::propagate_const<std::shared_ptr<TFileAdaptor>
>
me
;
79
};
80
81
#endif
type
type
Definition:
HCALResponse.h:21
edm::propagate_const
Definition:
propagate_const.h:32
TFileAdaptor::timeout_
unsigned int timeout_
Definition:
TFileAdaptor.h:46
ParameterSet
Definition:
Functions.h:16
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
TFileAdaptor::cacheHint_
std::string cacheHint_
Definition:
TFileAdaptor.h:42
TFileAdaptor::readHint_
std::string readHint_
Definition:
TFileAdaptor.h:43
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
TFileAdaptorUI::me
edm::propagate_const< std::shared_ptr< TFileAdaptor > > me
Definition:
TFileAdaptor.h:78
TFileAdaptor::enabled_
bool enabled_
Definition:
TFileAdaptor.h:39
TFileAdaptor::minFree_
double minFree_
Definition:
TFileAdaptor.h:45
TFileAdaptor::tempDir_
std::string tempDir_
Definition:
TFileAdaptor.h:44
TFileAdaptor::debugLevel_
unsigned int debugLevel_
Definition:
TFileAdaptor.h:47
TFileAdaptor::enablePrefetching_
bool enablePrefetching_
Definition:
TFileAdaptor.h:41
service
Definition:
service.py:1
TFileAdaptor::doStats_
bool doStats_
Definition:
TFileAdaptor.h:40
TFileAdaptorUI::stats
void stats() const
Definition:
TFileAdaptor.cc:271
ActivityRegistry
ConfigurationDescriptions
connectstrParser.o
o
Definition:
connectstrParser.py:70
TFileAdaptorUI
Definition:
TFileAdaptor.h:68
isProcessWideService
bool isProcessWideService(ZombieKillerService const *)
Definition:
ZombieKillerService.cc:55
TFileAdaptor::native_
std::vector< std::string > native_
Definition:
TFileAdaptor.h:48
edm
HLT enums.
Definition:
AlignableModifier.h:17
data
char data[epos_bytes_allocation]
Definition:
EPOS_Wrapper.h:82
edm::ParameterSet
Definition:
ParameterSet.h:36
TFileAdaptor
Definition:
TFileAdaptor.h:20
propagate_const.h
edm::ActivityRegistry
Definition:
ActivityRegistry.h:87
edm::ConfigurationDescriptions
Definition:
ConfigurationDescriptions.h:27
Generated for CMSSW Reference Manual by
1.8.11