CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiStripBaseDelayGenerator.cc
Go to the documentation of this file.
3 #include <boost/cstdint.hpp>
6 
7 #include "CLHEP/Random/RandFlat.h"
8 #include "CLHEP/Random/RandGauss.h"
9 
12 {
13  edm::LogInfo("SiStripBaseDelayGenerator") << "[SiStripBaseDelayGenerator::SiStripBaseDelayGenerator]";
14 }
15 
17 {
18  edm::LogInfo("SiStripBaseDelayGenerator") << "[SiStripBaseDelayGenerator::~SiStripBaseDelayGenerator]";
19 }
20 
22 {
24 
25  // Read the full list of detIds
27  uint16_t coarseDelay = _pset.getParameter<uint32_t>("CoarseDelay");
28  uint16_t fineDelay = _pset.getParameter<uint32_t>("FineDelay");
30  const std::map<uint32_t, SiStripDetInfoFileReader::DetInfo > detInfos = reader.getAllData();
31  if( !detInfos.empty() ) {
32  std::map<uint32_t, SiStripDetInfoFileReader::DetInfo>::const_iterator it = detInfos.begin();
33  for( ; it != detInfos.end(); ++it ) {
34  obj->put(it->first, coarseDelay, fineDelay);
35  }
36  }
37  else {
38  edm::LogError("SiStripBaseDelayGenerator") << "Error: detInfo map is empty." << std::endl;
39  }
40  return obj;
41 }
T getParameter(std::string const &) const
bool put(const uint32_t detId, const uint16_t coarseDelay, const uint16_t fineDelay)
SiStripBaseDelayGenerator(const edm::ParameterSet &, const edm::ActivityRegistry &)
std::string fullPath() const
Definition: FileInPath.cc:171