CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Typedefs | Functions
PhysicsTools::Calibration Namespace Reference

Classes

class  BitSet
 
class  Histogram
 
class  Histogram2D
 
class  Histogram3D
 
class  Interceptor
 
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

Definition at line 107 of file Histogram.h.

Definition at line 142 of file Histogram2D.h.

Definition at line 175 of file Histogram3D.h.

Definition at line 106 of file Histogram.h.

Definition at line 141 of file Histogram2D.h.

Definition at line 174 of file Histogram3D.h.

Function Documentation

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

constructs BitSet container from persistent representation

Definition at line 38 of file BitSet.cc.

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

Referenced by PhysicsTools::MVATrainer::connectProcessors().

39 {
40  PhysicsTools::BitSet::size_t size = bitSet.store.size();
41  size = (size - 1) * 8 + (bitSet.bitsInLast + 7) % 8 + 1;
42 
44  for(PhysicsTools::BitSet::size_t i = 0; i < size; i++)
45  result[i] = bitSet.store[i / 8] & (1 << (i % 8));
46 
47  return result;
48 }
int i
Definition: DBlmapReader.cc:9
tuple result
Definition: query.py:137
A compact container for storing single bits.
Definition: BitSet.h:30
std::size_t size_t
Definition: BitSet.h:32
tuple size
Write out results.
Calibration::BitSet PhysicsTools::Calibration::convert ( const PhysicsTools::BitSet bitSet)

convert BitSet container into persistent representation

Definition at line 50 of file BitSet.cc.

References PhysicsTools::Calibration::BitSet::bitsInLast, i, query::result, PhysicsTools::BitSet::size(), findQualityFiles::size, and PhysicsTools::Calibration::BitSet::store.

51 {
53  PhysicsTools::BitSet::size_t bytes = (size + 7) / 8;
54 
55  Calibration::BitSet result;
56  result.store.resize(bytes);
57  result.bitsInLast = (size + 7) % 8 + 1;
58 
59  for(PhysicsTools::BitSet::size_t i = 0; i < size; i++)
60  result.store[i / 8] |= bitSet[i] ? (1 << (i % 8)) : 0;
61 
62  return result;
63 }
int i
Definition: DBlmapReader.cc:9
tuple result
Definition: query.py:137
size_t size() const
returns the number of all bits in the container
Definition: BitSet.h:174
std::size_t size_t
Definition: BitSet.h:32
tuple size
Write out results.
static MVAComputer::CacheId PhysicsTools::Calibration::getNextMVAComputerCacheId ( )
static

Definition at line 59 of file MVAComputer.cc.

References mutex.

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

60 {
61  static boost::mutex mutex;
62  static MVAComputer::CacheId nextCacheId = 0;
63 
64  boost::mutex::scoped_lock scoped_lock(mutex);
65  return ++nextCacheId;
66 }
static boost::mutex mutex
Definition: LHEProxy.cc:11
static MVAComputerContainer::CacheId PhysicsTools::Calibration::getNextMVAComputerContainerCacheId ( )
static

Definition at line 157 of file MVAComputer.cc.

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

158 {
159  static MVAComputerContainer::CacheId nextCacheId = 0;
160  return ++nextCacheId;
161 }