#include <VIDCutFlowResult.h>
|
| CutFlowResult (const std::string &name, const std::string &hash, const std::vector< std::string > &names, const std::vector< unsigned > &indices, const std::vector< double > &values, unsigned bitmap, unsigned mask) |
|
bool | getCutBit (const unsigned idx) const |
|
double | getCutValue (const unsigned idx) const |
|
bool | getMaskBit (const unsigned idx) const |
|
Definition at line 27 of file VIDCutFlowResult.h.
vid::CutFlowResult::CutFlowResult |
( |
| ) |
|
|
inline |
vid::CutFlowResult::CutFlowResult |
( |
const std::string & |
name, |
|
|
const std::string & |
hash, |
|
|
const std::map< std::string, unsigned > & |
n2idx, |
|
|
const std::vector< double > & |
values, |
|
|
unsigned |
bitmap, |
|
|
unsigned |
mask = 0 |
|
) |
| |
vid::CutFlowResult::CutFlowResult |
( |
const std::string & |
name, |
|
|
const std::string & |
hash, |
|
|
const std::vector< std::string > & |
names, |
|
|
const std::vector< unsigned > & |
indices, |
|
|
const std::vector< double > & |
values, |
|
|
unsigned |
bitmap, |
|
|
unsigned |
mask |
|
) |
| |
|
inlineprivate |
Definition at line 83 of file VIDCutFlowResult.h.
std::vector< unsigned > indices_
std::vector< std::string > names_
const std::string names[nVars_]
std::vector< double > values_
const std::string& vid::CutFlowResult::cutFlowHash |
( |
| ) |
const |
|
inline |
const std::string& vid::CutFlowResult::cutFlowName |
( |
| ) |
const |
|
inline |
bool vid::CutFlowResult::cutFlowPassed |
( |
| ) |
const |
|
inline |
size_t vid::CutFlowResult::cutFlowSize |
( |
| ) |
const |
|
inline |
bool vid::CutFlowResult::getCutBit |
( |
const unsigned |
idx | ) |
const |
|
inlineprivate |
CutFlowResult vid::CutFlowResult::getCutFlowResultMasking |
( |
const unsigned |
idx | ) |
const |
CutFlowResult vid::CutFlowResult::getCutFlowResultMasking |
( |
const std::string & |
name | ) |
const |
Definition at line 117 of file VIDCutFlowResult.cc.
References bitmap_, CutFlowResult(), HLT_FULL_cff::distance, Exception, indices_, cuda_std::lower_bound(), mask_, mergeVDriftHistosByStation::name, name_, names_, and values_.
119 unsigned mask =
mask_;
121 if (found_name ==
names_.end() || *found_name !=
name) {
122 throw cms::Exception(
"UnknownName") <<
"Cut name: " <<
name <<
" is not known for this cutflow!";
125 bitmap = bitmap | mask;
std::vector< unsigned > indices_
std::vector< std::string > names_
std::vector< double > values_
__host__ __device__ constexpr RandomIt lower_bound(RandomIt first, RandomIt last, const T &value, Compare comp={})
CutFlowResult vid::CutFlowResult::getCutFlowResultMasking |
( |
const std::vector< unsigned > & |
idxs | ) |
const |
CutFlowResult vid::CutFlowResult::getCutFlowResultMasking |
( |
const std::vector< std::string > & |
names | ) |
const |
Definition at line 92 of file VIDCutFlowResult.cc.
References bitmap_, CutFlowResult(), HLT_FULL_cff::distance, Exception, indices_, cuda_std::lower_bound(), mask_, mergeVDriftHistosByStation::name, name_, names_, AlCaHLTBitMon_QueryRunRegistry::string, and values_.
94 unsigned mask =
mask_;
97 if (found_name ==
names_.end() || *found_name !=
name) {
98 throw cms::Exception(
"UnknownName") <<
"Cut name: " <<
name <<
" is not known for this cutflow!";
102 bitmap = bitmap | mask;
std::vector< unsigned > indices_
std::vector< std::string > names_
const std::string names[nVars_]
std::vector< double > values_
__host__ __device__ constexpr RandomIt lower_bound(RandomIt first, RandomIt last, const T &value, Compare comp={})
bool vid::CutFlowResult::getCutResultByIndex |
( |
const unsigned |
idx | ) |
const |
bool vid::CutFlowResult::getCutResultByName |
( |
const std::string & |
name | ) |
const |
double vid::CutFlowResult::getCutValue |
( |
const unsigned |
idx | ) |
const |
|
inlineprivate |
bool vid::CutFlowResult::getMaskBit |
( |
const unsigned |
idx | ) |
const |
|
inlineprivate |
const std::string & vid::CutFlowResult::getNameAtIndex |
( |
const unsigned |
idx | ) |
const |
double vid::CutFlowResult::getValueCutUpon |
( |
const unsigned |
idx | ) |
const |
double vid::CutFlowResult::getValueCutUpon |
( |
const std::string & |
name | ) |
const |
bool vid::CutFlowResult::isCutMasked |
( |
const unsigned |
idx | ) |
const |
bool vid::CutFlowResult::isCutMasked |
( |
const std::string & |
name | ) |
const |
unsigned vid::CutFlowResult::bitmap_ |
|
private |
std::string vid::CutFlowResult::hash_ |
|
private |
std::vector<unsigned> vid::CutFlowResult::indices_ |
|
private |
unsigned vid::CutFlowResult::mask_ |
|
private |
std::string vid::CutFlowResult::name_ |
|
private |
std::vector<std::string> vid::CutFlowResult::names_ |
|
private |
std::vector<double> vid::CutFlowResult::values_ |
|
private |