CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
edm::MixingCache::Config Struct Reference

#include <BMixingModule.h>

Public Member Functions

 Config (edm::ParameterSet const &pset, unsigned int maxNbSources)
 

Public Attributes

int bunchSpace_
 
std::vector< std::shared_ptr
< PileUpConfig > > 
inputConfigs_
 
int maxBunch_
 
int minBunch_
 
bool playback_
 
std::vector< std::string > sourceNames_
 

Detailed Description

Definition at line 29 of file BMixingModule.h.

Constructor & Destructor Documentation

edm::MixingCache::Config::Config ( edm::ParameterSet const &  pset,
unsigned int  maxNbSources 
)

Definition at line 193 of file BMixingModule.cc.

References inputConfigs_, maxBunch_, minBunch_, playback_, and sourceNames_.

193  :
194  bunchSpace_(pset.getParameter<int>("bunchspace")),
195  minBunch_((pset.getParameter<int>("minBunch")*25)/bunchSpace_),
196  maxBunch_((pset.getParameter<int>("maxBunch")*25)/bunchSpace_),
197  playback_(pset.getUntrackedParameter<bool>("playback",false))
198  {
199  if (playback_) {
200  //this could be explicitly checked
201  LogInfo("MixingModule") <<" ATTENTION:Mixing will be done in playback mode! \n"
202  <<" ATTENTION:Mixing Configuration must be the same as for the original mixing!";
203  }
204 
205  // Just for debugging print out.
206  sourceNames_.push_back("input");
207  sourceNames_.push_back("cosmics");
208  sourceNames_.push_back("beamhalo_plus");
209  sourceNames_.push_back("beamhalo_minus");
210 
211  for (size_t makeIdx = 0; makeIdx < maxNbSources; makeIdx++ ) {
212  inputConfigs_.push_back(maybeConfigPileUp(pset,sourceNames_[makeIdx],
214  }
215  }
std::vector< std::string > sourceNames_
Definition: BMixingModule.h:35
std::vector< std::shared_ptr< PileUpConfig > > inputConfigs_
Definition: BMixingModule.h:36

Member Data Documentation

int edm::MixingCache::Config::bunchSpace_

Definition at line 31 of file BMixingModule.h.

std::vector<std::shared_ptr<PileUpConfig> > edm::MixingCache::Config::inputConfigs_

Definition at line 36 of file BMixingModule.h.

Referenced by edm::BMixingModule::BMixingModule(), and Config().

int edm::MixingCache::Config::maxBunch_

Definition at line 33 of file BMixingModule.h.

Referenced by Config().

int edm::MixingCache::Config::minBunch_

Definition at line 32 of file BMixingModule.h.

Referenced by Config().

bool edm::MixingCache::Config::playback_

Definition at line 34 of file BMixingModule.h.

Referenced by Config().

std::vector<std::string> edm::MixingCache::Config::sourceNames_

Definition at line 35 of file BMixingModule.h.

Referenced by Config().