56 edm::LogInfo(
"SiPixelLorentzAngle") <<
" There are "<<pDD->detUnits().size() <<
" detectors"<<std::endl;
58 for(TrackerGeometry::DetUnitContainer::const_iterator it = pDD->detUnits().begin(); it != pDD->detUnits().end(); it++){
60 if( dynamic_cast<PixelGeomDetUnit*>((*it))!=0){
68 edm::LogError(
"SiPixelLorentzAngleDB")<<
"[SiPixelLorentzAngleDB::analyze] detid already exists"<<std::endl;
70 cout <<
"method for reading file not implemented yet" << endl;
78 edm::LogError(
"SiPixelLorentzAngleDB")<<
"[SiPixelLorentzAngleDB::analyze] detid already exists"<<std::endl;
80 edm::LogError(
"SiPixelLorentzAngleDB")<<
"[SiPixelLorentzAngleDB::analyze] detid is Pixel but neither bpix nor fpix"<<std::endl;
104 edm::LogError(
"SiPixelLorentzAngleDB")<<
"caught std::exception "<<er.what()<<std::endl;
106 edm::LogError(
"SiPixelLorentzAngleDB")<<
"Funny error"<<std::endl;
109 edm::LogError(
"SiPixelLorentzAngleDB")<<
"Service is unavailable"<<std::endl;
virtual char const * what() const
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
uint32_t rawId() const
get the raw id
virtual void analyze(const edm::Event &e, const edm::EventSetup &c)
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
SiPixelLorentzAngleDB(const edm::ParameterSet &conf)
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
bool putLorentzAngle(const uint32_t &, float &)
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
virtual ~SiPixelLorentzAngleDB()
float fPixLorentzAnglePerTesla_
float bPixLorentzAnglePerTesla_