Main Page
Namespaces
Classes
Package Documentation
src
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
}
// namespace edm
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
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_
;
42
bool
enablePrefetching_
;
43
std::string
cacheHint_
;
44
std::string
readHint_
;
45
std::string
tempDir_
;
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
65
class
TFileAdaptorUI
{
66
public
:
67
TFileAdaptorUI
();
68
~
TFileAdaptorUI
();
69
70
// print current Storage statistics on cout
71
void
stats()
const
;
72
73
private
:
74
edm::propagate_const<std::shared_ptr<TFileAdaptor>
>
me
;
75
};
76
77
#endif
type
type
Definition:
HCALResponse.h:21
edm::propagate_const
Definition:
propagate_const.h:32
TFileAdaptor::timeout_
unsigned int timeout_
Definition:
TFileAdaptor.h:47
ParameterSet
Definition:
Functions.h:16
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
TFileAdaptor::cacheHint_
std::string cacheHint_
Definition:
TFileAdaptor.h:43
TFileAdaptor::readHint_
std::string readHint_
Definition:
TFileAdaptor.h:44
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
TFileAdaptorUI::me
edm::propagate_const< std::shared_ptr< TFileAdaptor > > me
Definition:
TFileAdaptor.h:74
TFileAdaptor::enabled_
bool enabled_
Definition:
TFileAdaptor.h:40
TFileAdaptor::minFree_
double minFree_
Definition:
TFileAdaptor.h:46
TFileAdaptor::tempDir_
std::string tempDir_
Definition:
TFileAdaptor.h:45
TFileAdaptor::debugLevel_
unsigned int debugLevel_
Definition:
TFileAdaptor.h:48
TFileAdaptor::enablePrefetching_
bool enablePrefetching_
Definition:
TFileAdaptor.h:42
service
Definition:
service.py:1
TFileAdaptor::doStats_
bool doStats_
Definition:
TFileAdaptor.h:41
TFileAdaptorUI::stats
void stats() const
Definition:
TFileAdaptor.cc:266
ActivityRegistry
ConfigurationDescriptions
connectstrParser.o
o
Definition:
connectstrParser.py:72
TFileAdaptorUI
Definition:
TFileAdaptor.h:65
isProcessWideService
bool isProcessWideService(ZombieKillerService const *)
Definition:
ZombieKillerService.cc:52
TFileAdaptor::native_
std::vector< std::string > native_
Definition:
TFileAdaptor.h:49
fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
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:132
edm::ConfigurationDescriptions
Definition:
ConfigurationDescriptions.h:28
Generated for CMSSW Reference Manual by
1.8.11