CMS 3D CMS Logo

Public Member Functions | Private Attributes

MixingModuleConfig Class Reference

#include <MixingModuleConfig.h>

List of all members.

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 Attributes

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

Detailed Description

Definition at line 58 of file MixingModuleConfig.h.


Constructor & Destructor Documentation

MixingModuleConfig::MixingModuleConfig ( )

Definition at line 6 of file MixingModuleConfig.cc.

References configs_.

                                      {
  configs_.resize(4);
}
virtual MixingModuleConfig::~MixingModuleConfig ( ) [inline, virtual]

Definition at line 61 of file MixingModuleConfig.h.

{};

Member Function Documentation

const int& MixingModuleConfig::bunchSpace ( ) const [inline]

Definition at line 65 of file MixingModuleConfig.h.

References bs_.

Referenced by operator<<().

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

Definition at line 63 of file MixingModuleConfig.h.

References configs_, and i.

Referenced by operator<<().

{ return configs_[i];}
const int& MixingModuleConfig::maxBunch ( ) const [inline]

Definition at line 67 of file MixingModuleConfig.h.

References maxb_.

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

Definition at line 66 of file MixingModuleConfig.h.

References minb_.

{ 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().

                                                   {
  
  bs_=pset.getParameter<int>("bunchspace");
  minb_=(pset.getParameter<int>("minBunch")*25)/pset.getParameter<int>("bunchspace");
  maxb_=(pset.getParameter<int>("maxBunch")*25)/pset.getParameter<int>("bunchspace");

  //FIXME. not covering all possible cases (not used anyways)
  edm::ParameterSet p0=pset.getParameter<edm::ParameterSet>("input");
  configs_[0].read(p0);
}

Member Data Documentation

int MixingModuleConfig::bs_ [private]

Definition at line 76 of file MixingModuleConfig.h.

Referenced by bunchSpace(), and read().

Definition at line 72 of file MixingModuleConfig.h.

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

Definition at line 75 of file MixingModuleConfig.h.

Referenced by maxBunch(), and read().

Definition at line 74 of file MixingModuleConfig.h.

Referenced by minBunch(), and read().