3 |
|
|
4 |
|
#include <string> |
5 |
|
#include <iostream> |
6 |
+ |
#include <vector> |
7 |
|
|
8 |
|
#include "Rtypes.h" |
9 |
|
#include "TObject.h" |
16 |
|
|
17 |
|
public: |
18 |
|
|
19 |
< |
TRootRun() : |
20 |
< |
nHLTEvents_(0) |
19 |
> |
TRootRun() : |
20 |
> |
xsection_(-1.) |
21 |
> |
,description_("MVCM") |
22 |
> |
,nHLTEvents_(0) |
23 |
|
,nHLTWasRun_(0) |
24 |
|
,nHLTAccept_(0) |
25 |
|
,nHLTErrors_(0) |
30 |
|
{;} |
31 |
|
|
32 |
|
~TRootRun() {;} |
30 |
– |
|
31 |
– |
unsigned int nHLTPaths() const { return hltNames_.size(); } |
33 |
|
|
34 |
+ |
Double_t xsection() const { return xsection_; } |
35 |
+ |
std::string description() const { return description_; } |
36 |
+ |
|
37 |
+ |
unsigned int nHLTPaths() const { return hltNames_.size(); } |
38 |
|
unsigned int nHLTEvents() const { return nHLTEvents_; } |
39 |
|
unsigned int nHLTWasRun() const { return nHLTWasRun_; } |
40 |
|
unsigned int nHLTAccept() const { return nHLTAccept_; } |
50 |
|
unsigned int hltErrors(unsigned ipath) const { return (hltErrors_.size()>ipath ? hltErrors_.at(ipath) : 0 ); } |
51 |
|
std::string hltNames(unsigned ipath) const { return (hltNames_.size()>ipath ? hltNames_.at(ipath) : "noname" ); } |
52 |
|
|
53 |
+ |
void setXsection(Double_t xsection) { xsection_=xsection; } |
54 |
+ |
void setDescription(std::string description) { description_=description; } |
55 |
|
void setNHLTEvents(unsigned int nHLTEvents) { nHLTEvents_=nHLTEvents; } |
56 |
|
void setNHLTWasRun(unsigned int nHLTWasRun) { nHLTWasRun_=nHLTWasRun; } |
57 |
|
void setNHLTAccept(unsigned int nHLTAccept) { nHLTAccept_=nHLTAccept; } |
84 |
|
|
85 |
|
private: |
86 |
|
|
87 |
< |
unsigned int nHLTEvents_; // Nb of events |
88 |
< |
unsigned int nHLTWasRun_; // Nb of events where at least one HLT was run |
89 |
< |
unsigned int nHLTAccept_; // Nb of accepted events |
90 |
< |
unsigned int nHLTErrors_; // Nb of events where at least one HLT had error |
91 |
< |
|
92 |
< |
std::vector<unsigned int> hltWasRun_; // # where HLT[i] was run |
93 |
< |
std::vector<unsigned int> hltAccept_; // # of events accepted by HLT[i] |
94 |
< |
std::vector<unsigned int> hltErrors_; // # of events with error in HLT[i] |
95 |
< |
std::vector<std::string> hltNames_; // name of each HLT algorithm |
87 |
> |
Double_t xsection_; // dataset cross-section |
88 |
> |
std::string description_; // dataset description |
89 |
> |
|
90 |
> |
unsigned int nHLTEvents_; // Nb of events |
91 |
> |
unsigned int nHLTWasRun_; // Nb of events where at least one HLT was run |
92 |
> |
unsigned int nHLTAccept_; // Nb of accepted events |
93 |
> |
unsigned int nHLTErrors_; // Nb of events where at least one HLT had error |
94 |
> |
|
95 |
> |
std::vector<unsigned int> hltWasRun_; // # where HLT[i] was run |
96 |
> |
std::vector<unsigned int> hltAccept_; // # of events accepted by HLT[i] |
97 |
> |
std::vector<unsigned int> hltErrors_; // # of events with error in HLT[i] |
98 |
> |
std::vector<std::string> hltNames_; // name of each HLT algorithm |
99 |
|
|
100 |
< |
ClassDef (TRootRun,1); |
100 |
> |
ClassDef (TRootRun,2); |
101 |
|
}; |
102 |
|
|
103 |
|
#endif |