src
PhysicsTools
MVAComputer
interface
MVAComputerCache.h
Go to the documentation of this file.
1
#ifndef PhysicsTools_MVAComputer_MVAComputerCache_h
2
#define PhysicsTools_MVAComputer_MVAComputerCache_h
3
// -*- C++ -*-
4
//
5
// Package: MVAComputerCache
6
// Class : MVAComputerCache
7
//
8
9
//
10
// Author: Christophe Saout <christophe.saout@cern.ch>
11
// Created: Sat Feb 23 15:38 CEST 2007
12
//
13
14
#include <memory>
15
16
#include "
PhysicsTools/MVAComputer/interface/Calibration.h
"
17
#include "
PhysicsTools/MVAComputer/interface/MVAComputer.h
"
18
19
namespace
PhysicsTools
{
20
26
class
MVAComputerCache
{
27
public
:
28
MVAComputerCache
();
29
~MVAComputerCache
();
30
31
bool
update
(
const
Calibration::MVAComputer
*
computer
);
32
bool
update
(
const
Calibration::MVAComputerContainer
*container,
const
char
*
calib
);
33
34
operator
bool
()
const
{
return
computer
.get(); }
35
36
MVAComputer
&
operator*
() {
return
*
computer
; }
37
const
MVAComputer
&
operator*
()
const
{
return
*
computer
; }
38
39
MVAComputer
*
operator->
() {
return
computer
.get(); }
40
const
MVAComputer
*
operator->
()
const
{
return
computer
.get(); }
41
42
MVAComputer
*
get
() {
return
computer
.get(); }
43
const
MVAComputer
*
get
()
const
{
return
computer
.get(); }
44
45
std::unique_ptr<MVAComputer>
release
();
46
47
void
reset
() {
computer
.reset(); }
48
49
private
:
50
Calibration::MVAComputerContainer::CacheId
containerCacheId
;
51
Calibration::MVAComputer::CacheId
computerCacheId
;
52
std::unique_ptr<MVAComputer>
computer
;
53
};
54
55
}
// namespace PhysicsTools
56
57
#endif // PhysicsTools_MVAComputer_MVAComputerCache_h
PhysicsTools::MVAComputerCache::operator*
const MVAComputer & operator*() const
Definition:
MVAComputerCache.h:37
MVAComputer.h
PhysicsTools::MVAComputerCache::computerCacheId
Calibration::MVAComputer::CacheId computerCacheId
Definition:
MVAComputerCache.h:51
PhysicsTools::MVAComputerCache::operator->
const MVAComputer * operator->() const
Definition:
MVAComputerCache.h:40
PhysicsTools::MVAComputerCache::MVAComputerCache
MVAComputerCache()
Definition:
MVAComputerCache.cc:9
PhysicsTools::Calibration::MVAComputer::CacheId
unsigned int CacheId
Definition:
MVAComputer.h:234
PhysicsTools::MVAComputerCache::containerCacheId
Calibration::MVAComputerContainer::CacheId containerCacheId
Definition:
MVAComputerCache.h:50
PhysicsTools::MVAComputerCache::operator*
MVAComputer & operator*()
Definition:
MVAComputerCache.h:36
PhysicsTools::MVAComputerCache::release
std::unique_ptr< MVAComputer > release()
Definition:
MVAComputerCache.cc:53
PhysicsTools::Calibration::MVAComputerContainer::CacheId
unsigned int CacheId
Definition:
MVAComputer.h:263
PhysicsTools::Calibration::MVAComputer
Definition:
MVAComputer.h:221
calib
Definition:
CalibElectron.h:12
PhysicsTools::MVAComputer
Main interface class to the generic discriminator computer framework.
Definition:
MVAComputer.h:39
PhysicsTools
Definition:
Histogram.h:13
PhysicsTools::MVAComputerCache::operator->
MVAComputer * operator->()
Definition:
MVAComputerCache.h:39
PhysicsTools::MVAComputerCache::computer
std::unique_ptr< MVAComputer > computer
Definition:
MVAComputerCache.h:52
electrons_cff.bool
bool
Definition:
electrons_cff.py:315
PhysicsTools::MVAComputerCache::update
bool update(const Calibration::MVAComputer *computer)
Definition:
MVAComputerCache.cc:15
PhysicsTools::MVAComputerCache::~MVAComputerCache
~MVAComputerCache()
Definition:
MVAComputerCache.cc:13
Calibration.h
PhysicsTools::Calibration::MVAComputerContainer
Definition:
MVAComputer.h:251
PhysicsTools::MVAComputerCache
Creates and and MVAComputer from calibrations via EventSetup.
Definition:
MVAComputerCache.h:26
PhysicsTools::MVAComputerCache::reset
void reset()
Definition:
MVAComputerCache.h:47
Generated for CMSSW Reference Manual by
1.8.14