CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
< disabledModuleType
disabledModuleListType
 
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

Definition at line 22 of file SiPixelDisabledModules.h.

Definition at line 21 of file SiPixelDisabledModules.h.

Constructor & Destructor Documentation

SiPixelDisabledModules::SiPixelDisabledModules ( )
inline

Definition at line 24 of file SiPixelDisabledModules.h.

24 {;}
SiPixelDisabledModules::SiPixelDisabledModules ( const disabledModuleListType disabledModules)
inline

Definition at line 27 of file SiPixelDisabledModules.h.

27 : theDisabledModules(disabledModules) {;}
disabledModuleListType theDisabledModules
virtual SiPixelDisabledModules::~SiPixelDisabledModules ( )
inlinevirtual

Definition at line 29 of file SiPixelDisabledModules.h.

29 {;}

Member Function Documentation

void SiPixelDisabledModules::addDisabledModule ( disabledModuleType  module)
inline

Definition at line 40 of file SiPixelDisabledModules.h.

References theDisabledModules.

41  { theDisabledModules.push_back(module); }
Definition: vlib.h:208
disabledModuleListType theDisabledModules
void SiPixelDisabledModules::addDisabledModule ( const disabledModuleListType idVector)

Definition at line 13 of file SiPixelDisabledModules.cc.

References theDisabledModules.

13  {
15  idVector.begin(),
16  idVector.end());
17 
18 } // void SiPixelDisabledModules::addDisabledModule(disabledModuleListType idVector)
disabledModuleListType theDisabledModules
disabledModuleListType SiPixelDisabledModules::getDisabledModuleList ( )
inline

Definition at line 32 of file SiPixelDisabledModules.h.

References theDisabledModules.

33  { return theDisabledModules; }
disabledModuleListType theDisabledModules
bool SiPixelDisabledModules::isModuleDisabled ( disabledModuleType  module)

Definition at line 38 of file SiPixelDisabledModules.cc.

References spr::find(), python.rootplot.argparse::module, and theDisabledModules.

38  {
39  disabledModuleListType::const_iterator iter = find(theDisabledModules.begin(),
40  theDisabledModules.end(),
41  module);
42 
43  return iter != theDisabledModules.end();
44 
45 } // 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:7
disabledModuleListType theDisabledModules
bool SiPixelDisabledModules::removeDisabledModule ( disabledModuleType  module)

Definition at line 23 of file SiPixelDisabledModules.cc.

References spr::find(), python.rootplot.argparse::module, and theDisabledModules.

23  {
24  disabledModuleListType::iterator iter = find(theDisabledModules.begin(),
25  theDisabledModules.end(),
26  module);
27  if (iter == theDisabledModules.end())
28  return false;
29 
30  theDisabledModules.erase(iter);
31  return true;
32 
33 } // 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:7
disabledModuleListType theDisabledModules
template<class Archive >
void SiPixelDisabledModules::serialize ( Archive &  ar,
const unsigned int  version 
)
private
void SiPixelDisabledModules::setDisabledModuleList ( const disabledModuleListType disabledModules)
inline

Definition at line 36 of file SiPixelDisabledModules.h.

References theDisabledModules.

37  { theDisabledModules = disabledModules; }
disabledModuleListType theDisabledModules

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 58 of file SiPixelDisabledModules.h.

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

Definition at line 58 of file SiPixelDisabledModules.h.

Member Data Documentation

disabledModuleListType SiPixelDisabledModules::theDisabledModules
private