14 edm::LogInfo(
"SiStripApvGainBuilder") <<
"... creating dummy SiStripApvGain Data for Run " << run <<
"\n " << std::endl;
20 const std::map<uint32_t, SiStripDetInfoFileReader::DetInfo > DetInfos = reader.
getAllData();
23 for(std::map<uint32_t, SiStripDetInfoFileReader::DetInfo >::const_iterator it = DetInfos.begin(); it != DetInfos.end(); it++){
26 std::vector<float> theSiStripVector;
27 for(
unsigned short j=0;
j<it->second.nApvs;
j++){
28 float gain= (
j+1)*1000+ (CLHEP::RandFlat::shoot(1.)*100);
30 edm::LogInfo(
"SiStripApvGainBuilder") <<
"detid " << it->first <<
" \t"
31 <<
" apv " <<
j <<
" \t"
34 theSiStripVector.push_back(gain);
39 if ( ! obj->
put(it->first,range) )
40 edm::LogError(
"SiStripApvGainBuilder")<<
"[SiStripApvGainBuilder::analyze] detid already exists"<<std::endl;
54 edm::LogError(
"SiStripApvGainBuilder")<<
"Service is unavailable"<<std::endl;
bool put(const uint32_t &detID, Range input)
const std::map< uint32_t, DetInfo > & getAllData() const
void appendSinceTime(T *payloadObj, cond::Time_t sinceTime, const std::string &recordName, bool withlogging=false)
tuple obj
Example code starts here #.
bool isNewTagRequest(const std::string &recordName)
cond::Time_t beginOfTime() const
std::pair< ContainerIterator, ContainerIterator > Range
void createNewIOV(T *firstPayloadObj, cond::Time_t firstSinceTime, cond::Time_t firstTillTime, const std::string &recordName, bool withlogging=false)
cond::Time_t endOfTime() const
cond::Time_t currentTime() const
std::string fullPath() const