CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
AlgoMuonBase Class Referenceabstract

#include <AlgoMuonBase.h>

Inheritance diagram for AlgoMuonBase:
AlgoMuon

Public Member Functions

 AlgoMuonBase ()
 
 AlgoMuonBase (const ProcConfigurationBase *config)
 
virtual int getEtaHw () const =0
 
boost::dynamic_bitset getFiredLayerBits () const
 
virtual unsigned int getFiredLayerCnt () const
 
virtual unsigned int getFiredLayerCnt (int bx) const
 
virtual double getPdfSum () const =0
 
virtual const StubResultgetStubResult (unsigned int iLayer) const =0
 
virtual const StubResultsgetStubResults () const =0
 
virtual bool isLayerFired (unsigned int iLayer, unsigned int bx) const
 
virtual bool isValid () const =0
 
virtual ~AlgoMuonBase ()
 

Protected Attributes

std::vector
< boost::dynamic_bitset<> > 
firedLayerBitsInBx
 bits representing fired logicLayers (including bending layers), More...
 

Detailed Description

Definition at line 16 of file AlgoMuonBase.h.

Constructor & Destructor Documentation

AlgoMuonBase::AlgoMuonBase ( )
inline

Definition at line 18 of file AlgoMuonBase.h.

18 {};
AlgoMuonBase::AlgoMuonBase ( const ProcConfigurationBase config)

Definition at line 10 of file AlgoMuonBase.cc.

11  : firedLayerBitsInBx(config->getBxToProcess(), boost::dynamic_bitset<>(config->nLayers())) {}
virtual unsigned int getBxToProcess() const
std::vector< boost::dynamic_bitset<> > firedLayerBitsInBx
bits representing fired logicLayers (including bending layers),
Definition: AlgoMuonBase.h:56
virtual unsigned int nLayers() const =0
AlgoMuonBase::~AlgoMuonBase ( )
virtual

Definition at line 13 of file AlgoMuonBase.cc.

13 {}

Member Function Documentation

virtual int AlgoMuonBase::getEtaHw ( ) const
pure virtual

Implemented in AlgoMuon.

boost::dynamic_bitset AlgoMuonBase::getFiredLayerBits ( ) const
inline

Definition at line 37 of file AlgoMuonBase.h.

References firedLayerBitsInBx, and findQualityFiles::size.

38  { //TODO make it virtual, and change the return type in in the AlgoMuon to dynamic_bitset<>
39  boost::dynamic_bitset<> firedLayerBitsSum(firedLayerBitsInBx[0].size());
40  for (auto& firedLayerBits : firedLayerBitsInBx) {
41  firedLayerBitsSum |= firedLayerBits;
42  }
43  return firedLayerBitsSum;
44  }
std::vector< boost::dynamic_bitset<> > firedLayerBitsInBx
bits representing fired logicLayers (including bending layers),
Definition: AlgoMuonBase.h:56
tuple size
Write out results.
virtual unsigned int AlgoMuonBase::getFiredLayerCnt ( ) const
inlinevirtual

Reimplemented in AlgoMuon.

Definition at line 27 of file AlgoMuonBase.h.

References submitPVResolutionJobs::count, and firedLayerBitsInBx.

27  {
28  unsigned int count = 0;
29  for (auto& firedLayerBits : firedLayerBitsInBx) {
30  count += firedLayerBits.count();
31  }
32  return count;
33  }
std::vector< boost::dynamic_bitset<> > firedLayerBitsInBx
bits representing fired logicLayers (including bending layers),
Definition: AlgoMuonBase.h:56
virtual unsigned int AlgoMuonBase::getFiredLayerCnt ( int  bx) const
inlinevirtual

Definition at line 35 of file AlgoMuonBase.h.

References firedLayerBitsInBx.

35 { return firedLayerBitsInBx.at(bx).count(); }
std::vector< boost::dynamic_bitset<> > firedLayerBitsInBx
bits representing fired logicLayers (including bending layers),
Definition: AlgoMuonBase.h:56
virtual double AlgoMuonBase::getPdfSum ( ) const
pure virtual

Implemented in AlgoMuon.

virtual const StubResult& AlgoMuonBase::getStubResult ( unsigned int  iLayer) const
pure virtual

Implemented in AlgoMuon.

virtual const StubResults& AlgoMuonBase::getStubResults ( ) const
pure virtual

Implemented in AlgoMuon.

virtual bool AlgoMuonBase::isLayerFired ( unsigned int  iLayer,
unsigned int  bx 
) const
inlinevirtual

Definition at line 46 of file AlgoMuonBase.h.

References firedLayerBitsInBx.

46 { return firedLayerBitsInBx.at(bx)[iLayer]; }
std::vector< boost::dynamic_bitset<> > firedLayerBitsInBx
bits representing fired logicLayers (including bending layers),
Definition: AlgoMuonBase.h:56
virtual bool AlgoMuonBase::isValid ( ) const
pure virtual

Member Data Documentation

std::vector<boost::dynamic_bitset<> > AlgoMuonBase::firedLayerBitsInBx
protected

bits representing fired logicLayers (including bending layers),

Definition at line 56 of file AlgoMuonBase.h.

Referenced by getFiredLayerBits(), getFiredLayerCnt(), and isLayerFired().