CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends
SiPixelDisabledModules Class Reference

#include <SiPixelDisabledModules.h>

Public Types

typedef std::vector< disabledModuleTypedisabledModuleListType
 
typedef DetId disabledModuleType
 

Public Member Functions

void addDisabledModule (disabledModuleType module)
 
void addDisabledModule (const disabledModuleListType &idVector)
 
disabledModuleListType getDisabledModuleList ()
 
bool isModuleDisabled (disabledModuleType module)
 
bool removeDisabledModule (disabledModuleType module)
 
void setDisabledModuleList (const disabledModuleListType &disabledModules)
 
 SiPixelDisabledModules ()
 
 SiPixelDisabledModules (const disabledModuleListType &disabledModules)
 
virtual ~SiPixelDisabledModules ()
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

disabledModuleListType theDisabledModules
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

Definition at line 18 of file SiPixelDisabledModules.h.

Member Typedef Documentation

◆ disabledModuleListType

Definition at line 21 of file SiPixelDisabledModules.h.

◆ disabledModuleType

Definition at line 20 of file SiPixelDisabledModules.h.

Constructor & Destructor Documentation

◆ SiPixelDisabledModules() [1/2]

SiPixelDisabledModules::SiPixelDisabledModules ( )
inline

Definition at line 23 of file SiPixelDisabledModules.h.

23 { ; }

◆ SiPixelDisabledModules() [2/2]

SiPixelDisabledModules::SiPixelDisabledModules ( const disabledModuleListType disabledModules)
inline

Definition at line 26 of file SiPixelDisabledModules.h.

26 : theDisabledModules(disabledModules) { ; }
disabledModuleListType theDisabledModules

◆ ~SiPixelDisabledModules()

virtual SiPixelDisabledModules::~SiPixelDisabledModules ( )
inlinevirtual

Definition at line 28 of file SiPixelDisabledModules.h.

28 { ; }

Member Function Documentation

◆ addDisabledModule() [1/2]

void SiPixelDisabledModules::addDisabledModule ( disabledModuleType  module)
inline

Definition at line 37 of file SiPixelDisabledModules.h.

References callgraph::module, and theDisabledModules.

37 { theDisabledModules.push_back(module); }
disabledModuleListType theDisabledModules

◆ addDisabledModule() [2/2]

void SiPixelDisabledModules::addDisabledModule ( const disabledModuleListType idVector)

Definition at line 13 of file SiPixelDisabledModules.cc.

References theDisabledModules.

13  {
14  theDisabledModules.insert(theDisabledModules.end(), idVector.begin(), idVector.end());
15 
16 } // void SiPixelDisabledModules::addDisabledModule(disabledModuleListType idVector)
disabledModuleListType theDisabledModules

◆ getDisabledModuleList()

disabledModuleListType SiPixelDisabledModules::getDisabledModuleList ( )
inline

Definition at line 31 of file SiPixelDisabledModules.h.

References theDisabledModules.

31 { return theDisabledModules; }
disabledModuleListType theDisabledModules

◆ isModuleDisabled()

bool SiPixelDisabledModules::isModuleDisabled ( disabledModuleType  module)

Definition at line 32 of file SiPixelDisabledModules.cc.

References spr::find(), callgraph::module, and theDisabledModules.

32  {
33  disabledModuleListType::const_iterator iter = find(theDisabledModules.begin(), theDisabledModules.end(), module);
34 
35  return iter != theDisabledModules.end();
36 
37 } // bool SiPixelDisabledModules::isModuleDisabled(disabledModuleType module)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
disabledModuleListType theDisabledModules

◆ removeDisabledModule()

bool SiPixelDisabledModules::removeDisabledModule ( disabledModuleType  module)

Definition at line 20 of file SiPixelDisabledModules.cc.

References spr::find(), callgraph::module, and theDisabledModules.

20  {
21  disabledModuleListType::iterator iter = find(theDisabledModules.begin(), theDisabledModules.end(), module);
22  if (iter == theDisabledModules.end())
23  return false;
24 
25  theDisabledModules.erase(iter);
26  return true;
27 
28 } // bool SiPixelDisabledModules::removeDisabledModule(disabledModuleType module)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
disabledModuleListType theDisabledModules

◆ serialize()

template<class Archive >
void SiPixelDisabledModules::serialize ( Archive &  ar,
const unsigned int  version 
)
private

◆ setDisabledModuleList()

void SiPixelDisabledModules::setDisabledModuleList ( const disabledModuleListType disabledModules)
inline

Definition at line 34 of file SiPixelDisabledModules.h.

References theDisabledModules.

34 { theDisabledModules = disabledModules; }
disabledModuleListType theDisabledModules

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 53 of file SiPixelDisabledModules.h.

◆ cond::serialization::access

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 53 of file SiPixelDisabledModules.h.

Member Data Documentation

◆ theDisabledModules

disabledModuleListType SiPixelDisabledModules::theDisabledModules
private