test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 62 of file MixingModuleConfig.h.

Constructor & Destructor Documentation

MixingModuleConfig::MixingModuleConfig ( )

Definition at line 6 of file MixingModuleConfig.cc.

References configs_.

6  {
7  configs_.resize(4);
8 }
std::vector< MixingInputConfig > configs_
virtual MixingModuleConfig::~MixingModuleConfig ( )
inlinevirtual

Definition at line 65 of file MixingModuleConfig.h.

65 {};

Member Function Documentation

const int& MixingModuleConfig::bunchSpace ( ) const
inline

Definition at line 69 of file MixingModuleConfig.h.

References bs_.

Referenced by operator<<().

69 { return bs_;}
const MixingInputConfig& MixingModuleConfig::config ( unsigned int  i = 0) const
inline

Definition at line 67 of file MixingModuleConfig.h.

References configs_, and i.

Referenced by operator<<().

67 { return configs_[i];}
int i
Definition: DBlmapReader.cc:9
std::vector< MixingInputConfig > configs_
const int& MixingModuleConfig::maxBunch ( ) const
inline

Definition at line 71 of file MixingModuleConfig.h.

References maxb_.

71 { return maxb_;}
const int& MixingModuleConfig::minBunch ( ) const
inline

Definition at line 70 of file MixingModuleConfig.h.

References minb_.

70 { return minb_;}
void MixingModuleConfig::read ( edm::ParameterSet pset)

Definition at line 22 of file MixingModuleConfig.cc.

References bs_, configs_, edm::ParameterSet::getParameter(), maxb_, and minb_.

Referenced by Mixing2DB::endJob(), edmIntegrityCheck.PublishToFileSystem::get(), Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::goto(), and Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::setFilterBranches().

22  {
23 
24  bs_=pset.getParameter<int>("bunchspace");
25  minb_=(pset.getParameter<int>("minBunch")*25)/pset.getParameter<int>("bunchspace");
26  maxb_=(pset.getParameter<int>("maxBunch")*25)/pset.getParameter<int>("bunchspace");
27 
28  //FIXME. not covering all possible cases (not used anyways)
30  configs_[0].read(p0);
31 }
T getParameter(std::string const &) const
std::vector< MixingInputConfig > configs_
template<class Archive >
void MixingModuleConfig::serialize ( Archive &  ar,
const unsigned int  version 
)
private

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 82 of file MixingModuleConfig.h.

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

Definition at line 82 of file MixingModuleConfig.h.

Member Data Documentation

int MixingModuleConfig::bs_
private

Definition at line 80 of file MixingModuleConfig.h.

Referenced by bunchSpace(), and read().

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

Definition at line 76 of file MixingModuleConfig.h.

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

int MixingModuleConfig::maxb_
private

Definition at line 79 of file MixingModuleConfig.h.

Referenced by maxBunch(), and read().

int MixingModuleConfig::minb_
private

Definition at line 78 of file MixingModuleConfig.h.

Referenced by minBunch(), and read().