Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
PerfTools
EdmEvent
interface
EdmEventSize.h
Go to the documentation of this file.
1
#ifndef PerfTools_EdmEventSize_H
2
#define PerfTools_EdmEventSize_H
3
4
#include<string>
5
#include<vector>
6
#include<iosfwd>
7
8
namespace
perftools {
9
24
class
EdmEventSize
{
25
public
:
26
28
struct
Error
{
29
Error
(
std::string
const
& idescr,
int
icode) :
30
descr
(idescr),
code
(icode){}
31
std::string
descr
;
32
int
code
;
33
};
34
36
struct
BranchRecord
{
37
BranchRecord
() :
38
compr_size
(0.),
39
uncompr_size
(0.) {}
40
BranchRecord
(
std::string
const
& iname,
41
double
compr,
double
uncompr) :
42
fullName
(iname),
name
(iname),
43
compr_size
(compr),
uncompr_size
(uncompr){}
44
std::string
fullName
;
45
std::string
name
;
46
double
compr_size
;
47
double
uncompr_size
;
48
};
49
50
typedef
std::vector<BranchRecord>
Branches
;
51
53
EdmEventSize
();
55
explicit
EdmEventSize
(
std::string
const
&
fileName
,
std::string
const
& treeName=
"Events"
);
56
58
void
parseFile
(
std::string
const
&
fileName
,
std::string
const
& treeName=
"Events"
);
59
61
void
sortAlpha
();
62
64
void
formatNames
();
65
67
void
dump
(std::ostream & co,
bool
header=
true
)
const
;
68
70
void
produceHistos
(
std::string
const
&
plot
,
std::string
const
&
file
,
int
top
=0)
const
;
71
72
private
:
73
std::string
m_fileName
;
74
int
m_nEvents
;
75
Branches
m_branches
;
76
77
};
78
79
}
80
81
#endif // PerfTools_EdmEventSize_H
perftools::EdmEventSize::BranchRecord::uncompr_size
double uncompr_size
Definition:
EdmEventSize.h:47
mergeVDriftHistosByStation.file
tuple file
Definition:
mergeVDriftHistosByStation.py:54
perftools::EdmEventSize::Error::descr
std::string descr
Definition:
EdmEventSize.h:31
perftools::EdmEventSize::BranchRecord::compr_size
double compr_size
Definition:
EdmEventSize.h:46
perftools::EdmEventSize::Error::Error
Error(std::string const &idescr, int icode)
Definition:
EdmEventSize.h:29
perftools::EdmEventSize::dump
void dump(std::ostream &co, bool header=true) const
dump the ascii table on "co"
Definition:
EdmEventSize.cc:167
perftools::EdmEventSize::Error::code
int code
Definition:
EdmEventSize.h:32
perftools::EdmEventSize::BranchRecord::BranchRecord
BranchRecord(std::string const &iname, double compr, double uncompr)
Definition:
EdmEventSize.h:40
perftools::EdmEventSize::parseFile
void parseFile(std::string const &fileName, std::string const &treeName="Events")
read file, compute branch size, sort by size
Definition:
EdmEventSize.cc:81
perftools::EdmEventSize
Definition:
EdmEventSize.h:24
perftools::EdmEventSize::Error
generic exception
Definition:
EdmEventSize.h:28
convertXMLtoSQLite_cfg.fileName
tuple fileName
Definition:
convertXMLtoSQLite_cfg.py:12
perftools::EdmEventSize::m_fileName
std::string m_fileName
Definition:
EdmEventSize.h:73
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
perftools::EdmEventSize::m_nEvents
int m_nEvents
Definition:
EdmEventSize.h:74
perftools::EdmEventSize::EdmEventSize
EdmEventSize()
Constructor.
Definition:
EdmEventSize.cc:73
perftools::EdmEventSize::BranchRecord
the information for each branch
Definition:
EdmEventSize.h:36
perftools::EdmEventSize::BranchRecord::name
std::string name
Definition:
EdmEventSize.h:45
perftools::EdmEventSize::BranchRecord::fullName
std::string fullName
Definition:
EdmEventSize.h:44
fff_deleter.top
string top
Definition:
fff_deleter.py:272
plotResiduals.plot
def plot
Definition:
plotResiduals.py:5
perftools::EdmEventSize::BranchRecord::BranchRecord
BranchRecord()
Definition:
EdmEventSize.h:37
perftools::EdmEventSize::m_branches
Branches m_branches
Definition:
EdmEventSize.h:75
perftools::EdmEventSize::formatNames
void formatNames()
transform Branch names in "formatted" prodcut identifiers
Definition:
EdmEventSize.cc:152
perftools::EdmEventSize::sortAlpha
void sortAlpha()
sort by name
Definition:
EdmEventSize.cc:124
perftools::EdmEventSize::Branches
std::vector< BranchRecord > Branches
Definition:
EdmEventSize.h:50
perftools::EdmEventSize::produceHistos
void produceHistos(std::string const &plot, std::string const &file, int top=0) const
produce histograms and optionally write them in "file" or as "plot"
Definition:
EdmEventSize.cc:238
Generated for CMSSW Reference Manual by
1.8.5