CMS 3D CMS Logo

Classes | Typedefs | Functions
PhysicsTools::Calibration Namespace Reference

Classes

class  BitSet
 
class  Histogram
 
class  Histogram2D
 
class  Histogram3D
 
class  Matrix
 
class  MVAComputer
 
class  MVAComputerContainer
 
class  ProcCategory
 
class  ProcClassed
 
class  ProcCount
 
class  ProcExternal
 
class  ProcForeach
 
class  ProcLikelihood
 
class  ProcLinear
 
class  ProcMatrix
 
class  ProcMLP
 
class  ProcMultiply
 
class  ProcNormalize
 
class  ProcOptional
 
class  ProcSort
 
class  ProcSplitter
 
struct  Range
 
class  Variable
 
class  VarProcessor
 
struct  VHistogramD2D
 

Typedefs

typedef Histogram< double > HistogramD
 
typedef Histogram2D< double > HistogramD2D
 
typedef Histogram3D< double > HistogramD3D
 
typedef Histogram< float > HistogramF
 
typedef Histogram2D< float > HistogramF2D
 
typedef Histogram3D< float > HistogramF3D
 

Functions

PhysicsTools::BitSet convert (const BitSet &bitSet)
 constructs BitSet container from persistent representation More...
 
BitSet convert (const PhysicsTools::BitSet &bitSet)
 convert BitSet container into persistent representation More...
 
static MVAComputer::CacheId getNextMVAComputerCacheId ()
 
static MVAComputerContainer::CacheId getNextMVAComputerContainerCacheId ()
 

Typedef Documentation

◆ HistogramD

Definition at line 117 of file Histogram.h.

◆ HistogramD2D

Definition at line 139 of file Histogram2D.h.

◆ HistogramD3D

Definition at line 184 of file Histogram3D.h.

◆ HistogramF

Definition at line 116 of file Histogram.h.

◆ HistogramF2D

Definition at line 138 of file Histogram2D.h.

◆ HistogramF3D

Definition at line 183 of file Histogram3D.h.

Function Documentation

◆ convert() [1/2]

BitSet PhysicsTools::Calibration::convert ( const BitSet bitSet)

constructs BitSet container from persistent representation

Definition at line 25 of file BitSet.cc.

25  {
26  PhysicsTools::BitSet::size_t size = bitSet.store.size();
27  size = (size - 1) * 8 + (bitSet.bitsInLast + 7) % 8 + 1;
28 
30  for (PhysicsTools::BitSet::size_t i = 0; i < size; i++)
31  result[i] = bitSet.store[i / 8] & (1 << (i % 8));
32 
33  return result;
34  }

References PhysicsTools::Calibration::BitSet::bitsInLast, mps_fire::i, mps_fire::result, findQualityFiles::size, and PhysicsTools::Calibration::BitSet::store.

◆ convert() [2/2]

Calibration::BitSet PhysicsTools::Calibration::convert ( const PhysicsTools::BitSet bitSet)

convert BitSet container into persistent representation

Definition at line 36 of file BitSet.cc.

36  {
38  PhysicsTools::BitSet::size_t bytes = (size + 7) / 8;
39 
40  Calibration::BitSet result;
41  result.store.resize(bytes);
42  result.bitsInLast = (size + 7) % 8 + 1;
43 
44  for (PhysicsTools::BitSet::size_t i = 0; i < size; i++)
45  result.store[i / 8] |= bitSet[i] ? (1 << (i % 8)) : 0;
46 
47  return result;
48  }

References mps_fire::i, mps_fire::result, PhysicsTools::BitSet::size(), and findQualityFiles::size.

◆ getNextMVAComputerCacheId()

static MVAComputer::CacheId PhysicsTools::Calibration::getNextMVAComputerCacheId ( )
static

Definition at line 104 of file MVAComputer.cc.

104  {
105  static std::atomic<MVAComputer::CacheId> nextCacheId{0};
106 
107  return ++nextCacheId;
108  }

Referenced by PhysicsTools::Calibration::MVAComputer::addProcessor().

◆ getNextMVAComputerContainerCacheId()

static MVAComputerContainer::CacheId PhysicsTools::Calibration::getNextMVAComputerContainerCacheId ( )
static

Definition at line 148 of file MVAComputer.cc.

148  {
149  static MVAComputerContainer::CacheId nextCacheId = 0;
150  return ++nextCacheId;
151  }

Referenced by PhysicsTools::Calibration::MVAComputerContainer::add().

mps_fire.i
i
Definition: mps_fire.py:428
PhysicsTools::BitSet::size
size_t size() const
returns the number of all bits in the container
Definition: BitSet.h:173
PhysicsTools::BitSet::size_t
std::size_t size_t
Definition: BitSet.h:31
PhysicsTools::BitSet
A compact container for storing single bits.
Definition: BitSet.h:29
mps_fire.result
result
Definition: mps_fire.py:311
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443