7 fp_(iConfig.getUntrackedParameter<edm::
FileInPath>(
"file",edm::
FileInPath(
"CalibTracker/SiStripCommon/data/SiStripDetInfo.dat"))),
8 printdebug_(iConfig.getUntrackedParameter<uint32_t>(
"printDebug",1)){}
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)
void appendSinceTime(T *payloadObj, cond::Time_t sinceTime, const std::string &recordName, bool withlogging=false)
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
virtual void analyze(const edm::Event &, const edm::EventSetup &)
cond::Time_t currentTime() const
std::string fullPath() const
SiStripApvGainBuilder(const edm::ParameterSet &iConfig)