3 #include <boost/cstdint.hpp>
10 edm::LogInfo(
"SiStripThresholdGenerator") <<
"[SiStripThresholdGenerator::SiStripThresholdGenerator]";
15 edm::LogInfo(
"SiStripThresholdGenerator") <<
"[SiStripThresholdGenerator::~SiStripThresholdGenerator]";
30 const std::map<uint32_t, SiStripDetInfoFileReader::DetInfo > DetInfos =
reader.getAllData();
32 for(std::map<uint32_t, SiStripDetInfoFileReader::DetInfo >::const_iterator it = DetInfos.begin(); it != DetInfos.end(); it++){
37 obj->
setData(strip,lTh_,hTh_,cTh_,theSiStripVector);
38 LogDebug(
"SiStripThresholdFakeESSource::produce") <<
"detid: " << it->first <<
" \t"
39 <<
"firstStrip: " << strip <<
" \t" << theSiStripVector.back().getFirstStrip() <<
" \t"
40 <<
"lTh: " << lTh_ <<
" \t" << theSiStripVector.back().getLth() <<
" \t"
41 <<
"hTh: " << hTh_ <<
" \t" << theSiStripVector.back().getHth() <<
" \t"
42 <<
"FirstStrip_and_Hth: " << theSiStripVector.back().FirstStrip_and_Hth <<
" \t"
45 if ( ! obj->
put(it->first,theSiStripVector) )
46 edm::LogError(
"SiStripThresholdFakeESSource::produce ")<<
" detid already exists"<<std::endl;
51 LogDebug(
"SiStripThresholdFakeESSource::produce") <<
"printDebug\n" << ss.str() << std::endl;
bool put(const uint32_t &detID, const InputVector &vect)
T getParameter(std::string const &) const
std::vector< Data > Container
void printDebug(std::stringstream &ss) const
Prints all the thresholds for all DetIds.
void setData(const uint16_t &strip, const float &lTh, const float &hTh, Container &vthr)
SiStripThreshold * createObject()
std::string fullPath() const
~SiStripThresholdGenerator()
SiStripThresholdGenerator(const edm::ParameterSet &, const edm::ActivityRegistry &)