RecoBTau
JetTagComputer
interface
GenericMVAComputerCache.h
Go to the documentation of this file.
1
#ifndef RecoBTau_JetTagComputer_GenericMVAComputerCache_h
2
#define RecoBTau_JetTagComputer_GenericMVAComputerCache_h
3
4
#include <string>
5
#include <vector>
6
#include <memory>
7
8
#include "
DataFormats/BTauReco/interface/BaseTagInfo.h
"
9
#include "
CondFormats/PhysicsToolsObjects/interface/MVAComputer.h
"
10
#include "
RecoBTau/JetTagComputer/interface/GenericMVAComputer.h
"
11
12
class
GenericMVAComputerCache
{
13
public
:
14
GenericMVAComputerCache
(
const
std::vector<std::string> &
labels
);
15
~GenericMVAComputerCache
();
16
17
bool
update
(
const
PhysicsTools::Calibration::MVAComputerContainer
*
calib
);
18
19
GenericMVAComputer
const
*
getComputer
(
int
index
)
const
;
20
21
bool
isEmpty
()
const
;
22
23
private
:
24
struct
IndividualComputer
{
25
IndividualComputer
();
26
IndividualComputer
(
const
IndividualComputer
&orig);
27
~IndividualComputer
();
28
29
std::string
label
;
30
std::unique_ptr<GenericMVAComputer>
computer
;
31
PhysicsTools::Calibration::MVAComputer::CacheId
cacheId
;
32
};
33
34
std::vector<IndividualComputer>
computers
;
35
PhysicsTools::Calibration::MVAComputerContainer::CacheId
cacheId
;
36
bool
initialized
;
37
bool
empty
;
38
std::string
errorUpdatingLabel
;
39
};
40
41
#endif // RecoBTau_JetTagComputer_GenericMVAComputerCache_h
SummaryClient_cfi.labels
labels
Definition:
SummaryClient_cfi.py:61
PhysicsTools::Calibration::MVAComputerContainer::CacheId
unsigned int CacheId
Definition:
MVAComputer.h:262
GenericMVAComputerCache::isEmpty
bool isEmpty() const
Definition:
GenericMVAComputerCache.cc:44
GenericMVAComputerCache::IndividualComputer::cacheId
PhysicsTools::Calibration::MVAComputer::CacheId cacheId
Definition:
GenericMVAComputerCache.h:31
GenericMVAComputerCache::IndividualComputer::~IndividualComputer
~IndividualComputer()
Definition:
GenericMVAComputerCache.cc:17
GenericMVAComputer
Definition:
GenericMVAComputer.h:13
GenericMVAComputerCache::errorUpdatingLabel
std::string errorUpdatingLabel
Definition:
GenericMVAComputerCache.h:38
GenericMVAComputerCache::update
bool update(const PhysicsTools::Calibration::MVAComputerContainer *calib)
Definition:
GenericMVAComputerCache.cc:53
GenericMVAComputerCache::empty
bool empty
Definition:
GenericMVAComputerCache.h:37
GenericMVAComputerCache::getComputer
const GenericMVAComputer * getComputer(int index) const
Definition:
GenericMVAComputerCache.cc:35
MVAComputer.h
calib
Definition:
CalibElectron.h:12
PhysicsTools::Calibration::MVAComputer::CacheId
unsigned int CacheId
Definition:
MVAComputer.h:233
GenericMVAComputerCache::IndividualComputer::computer
std::unique_ptr< GenericMVAComputer > computer
Definition:
GenericMVAComputerCache.h:30
GenericMVAComputerCache::IndividualComputer::IndividualComputer
IndividualComputer()
Definition:
GenericMVAComputerCache.cc:12
BaseTagInfo.h
GenericMVAComputerCache::~GenericMVAComputerCache
~GenericMVAComputerCache()
Definition:
GenericMVAComputerCache.cc:33
GenericMVAComputerCache::GenericMVAComputerCache
GenericMVAComputerCache(const std::vector< std::string > &labels)
Definition:
GenericMVAComputerCache.cc:19
GenericMVAComputerCache::IndividualComputer
Definition:
GenericMVAComputerCache.h:24
GenericMVAComputerCache::computers
std::vector< IndividualComputer > computers
Definition:
GenericMVAComputerCache.h:34
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
GenericMVAComputerCache
Definition:
GenericMVAComputerCache.h:12
PhysicsTools::Calibration::MVAComputerContainer
Definition:
MVAComputer.h:250
GenericMVAComputerCache::initialized
bool initialized
Definition:
GenericMVAComputerCache.h:36
AlignmentPI::index
index
Definition:
AlignmentPayloadInspectorHelper.h:46
GenericMVAComputer.h
GenericMVAComputerCache::cacheId
PhysicsTools::Calibration::MVAComputerContainer::CacheId cacheId
Definition:
GenericMVAComputerCache.h:35
GenericMVAComputerCache::IndividualComputer::label
std::string label
Definition:
GenericMVAComputerCache.h:29
Generated for CMSSW Reference Manual by
1.8.16