CMS 3D CMS Logo

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

#include <MixingModuleConfig.h>

Public Member Functions

const int & bunchSpace () const
 
const MixingInputConfigconfig (unsigned int i=0) const
 
const int & maxBunch () const
 
const int & minBunch () const
 
 MixingModuleConfig ()
 
void read (edm::ParameterSet &pset)
 
virtual ~MixingModuleConfig ()
 

Private Member Functions

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

Private Attributes

int bs_
 
std::vector< MixingInputConfigconfigs_
 
int maxb_
 
int minb_
 

Friends

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

Detailed Description

Definition at line 71 of file MixingModuleConfig.h.

Constructor & Destructor Documentation

◆ MixingModuleConfig()

MixingModuleConfig::MixingModuleConfig ( )

Definition at line 6 of file MixingModuleConfig.cc.

6 { configs_.resize(4); }

References configs_.

◆ ~MixingModuleConfig()

virtual MixingModuleConfig::~MixingModuleConfig ( )
inlinevirtual

Definition at line 74 of file MixingModuleConfig.h.

74 {};

Member Function Documentation

◆ bunchSpace()

const int& MixingModuleConfig::bunchSpace ( ) const
inline

Definition at line 78 of file MixingModuleConfig.h.

78 { return bs_; }

References bs_.

◆ config()

const MixingInputConfig& MixingModuleConfig::config ( unsigned int  i = 0) const
inline

Definition at line 76 of file MixingModuleConfig.h.

76 { return configs_[i]; }

References configs_, and mps_fire::i.

Referenced by edm::PileUp::reload().

◆ maxBunch()

const int& MixingModuleConfig::maxBunch ( ) const
inline

Definition at line 80 of file MixingModuleConfig.h.

80 { return maxb_; }

References maxb_.

◆ minBunch()

const int& MixingModuleConfig::minBunch ( ) const
inline

Definition at line 79 of file MixingModuleConfig.h.

79 { return minb_; }

References minb_.

◆ read()

void MixingModuleConfig::read ( edm::ParameterSet pset)

Definition at line 20 of file MixingModuleConfig.cc.

20  {
21  bs_ = pset.getParameter<int>("bunchspace");
22  minb_ = (pset.getParameter<int>("minBunch") * 25) / pset.getParameter<int>("bunchspace");
23  maxb_ = (pset.getParameter<int>("maxBunch") * 25) / pset.getParameter<int>("bunchspace");
24 
25  //FIXME. not covering all possible cases (not used anyways)
26  edm::ParameterSet p0 = pset.getParameter<edm::ParameterSet>("input");
27  configs_[0].read(p0);
28 }

References bs_, configs_, maxb_, minb_, and muonDTDigis_cfi::pset.

Referenced by edmIntegrityCheck.PublishToFileSystem::get().

◆ serialize()

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

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 91 of file MixingModuleConfig.h.

◆ cond::serialization::access

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

Definition at line 91 of file MixingModuleConfig.h.

Member Data Documentation

◆ bs_

int MixingModuleConfig::bs_
private

Definition at line 89 of file MixingModuleConfig.h.

Referenced by bunchSpace(), and read().

◆ configs_

std::vector<MixingInputConfig> MixingModuleConfig::configs_
private

Definition at line 85 of file MixingModuleConfig.h.

Referenced by config(), MixingModuleConfig(), and read().

◆ maxb_

int MixingModuleConfig::maxb_
private

Definition at line 88 of file MixingModuleConfig.h.

Referenced by maxBunch(), and read().

◆ minb_

int MixingModuleConfig::minb_
private

Definition at line 87 of file MixingModuleConfig.h.

Referenced by minBunch(), and read().

MixingModuleConfig::minb_
int minb_
Definition: MixingModuleConfig.h:87
MixingModuleConfig::configs_
std::vector< MixingInputConfig > configs_
Definition: MixingModuleConfig.h:85
mps_fire.i
i
Definition: mps_fire.py:428
MixingModuleConfig::maxb_
int maxb_
Definition: MixingModuleConfig.h:88
MixingModuleConfig::bs_
int bs_
Definition: MixingModuleConfig.h:89
edm::ParameterSet
Definition: ParameterSet.h:47
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27