#include <SiPixelLorentzAngleDB.h>
Definition at line 23 of file SiPixelLorentzAngleDB.h.
SiPixelLorentzAngleDB::~SiPixelLorentzAngleDB |
( |
| ) |
|
|
virtual |
Implements edm::EDAnalyzer.
Definition at line 48 of file SiPixelLorentzAngleDB.cc.
References cond::service::PoolDBOutputService::appendSinceTime(), cond::service::PoolDBOutputService::beginOfTime(), bPixLorentzAnglePerTesla_, gather_cfg::cout, cond::service::PoolDBOutputService::createNewIOV(), cond::service::PoolDBOutputService::currentTime(), cond::rpcobgas::detid, cond::service::PoolDBOutputService::endOfTime(), cmsCodeRules.cppFunctionSkipper::exception, fPixLorentzAnglePerTesla_, edm::EventSetup::get(), edm::Service< T >::isAvailable(), cond::service::PoolDBOutputService::isNewTagRequest(), PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, SiPixelLorentzAngle::putLorentzAngle(), DetId::rawId(), recordName_, DetId::subdetId(), useFile_, and cms::Exception::what().
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
uint32_t rawId() const
get the raw id
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
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
float fPixLorentzAnglePerTesla_
float bPixLorentzAnglePerTesla_
void SiPixelLorentzAngleDB::beginJob |
( |
void |
| ) |
|
|
virtual |
void SiPixelLorentzAngleDB::endJob |
( |
void |
| ) |
|
|
virtual |
float SiPixelLorentzAngleDB::bPixLorentzAnglePerTesla_ |
|
private |
std::vector< std::pair<uint32_t, float> > SiPixelLorentzAngleDB::detid_la |
|
private |
std::string SiPixelLorentzAngleDB::fileName_ |
|
private |
float SiPixelLorentzAngleDB::fPixLorentzAnglePerTesla_ |
|
private |
double SiPixelLorentzAngleDB::magneticField_ |
|
private |
std::string SiPixelLorentzAngleDB::recordName_ |
|
private |
bool SiPixelLorentzAngleDB::useFile_ |
|
private |