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 (const disabledModuleListType &idVector)
 
void addDisabledModule (disabledModuleType module)
 
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) { ; }

◆ ~SiPixelDisabledModules()

virtual SiPixelDisabledModules::~SiPixelDisabledModules ( )
inlinevirtual

Definition at line 28 of file SiPixelDisabledModules.h.

28 { ; }

Member Function Documentation

◆ addDisabledModule() [1/2]

void SiPixelDisabledModules::addDisabledModule ( const disabledModuleListType idVector)

Definition at line 13 of file SiPixelDisabledModules.cc.

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

References theDisabledModules.

◆ addDisabledModule() [2/2]

void SiPixelDisabledModules::addDisabledModule ( disabledModuleType  module)
inline

Definition at line 37 of file SiPixelDisabledModules.h.

37 { theDisabledModules.push_back(module); }

References theDisabledModules.

◆ getDisabledModuleList()

disabledModuleListType SiPixelDisabledModules::getDisabledModuleList ( )
inline

Definition at line 31 of file SiPixelDisabledModules.h.

31 { return theDisabledModules; }

References theDisabledModules.

◆ isModuleDisabled()

bool SiPixelDisabledModules::isModuleDisabled ( disabledModuleType  module)

Definition at line 32 of file SiPixelDisabledModules.cc.

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)

References spr::find(), and theDisabledModules.

◆ removeDisabledModule()

bool SiPixelDisabledModules::removeDisabledModule ( disabledModuleType  module)

Definition at line 20 of file SiPixelDisabledModules.cc.

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)

References spr::find(), and 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.

34 { theDisabledModules = disabledModules; }

References 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
SiPixelDisabledModules::theDisabledModules
disabledModuleListType theDisabledModules
Definition: SiPixelDisabledModules.h:51
spr::find
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19