16 #include "boost/mpl/vector.hpp" 24 setWhatProduced(
this);
43 if(theMagField>=4.1 || theMagField<-0.1)
edm::LogWarning(
"UnexpectedMagneticFieldUsingDefaultPixel2DTemplate") <<
"Magnetic field is " << theMagField;
48 if(std::fabs(theMagField-dbobject->
sVector()[22])>0.1)
49 edm::LogWarning(
"UnexpectedMagneticFieldUsingNonIdealPixel2DTemplate") <<
"Magnetic field is " << theMagField <<
" Template Magnetic field is " << dbobject->
sVector()[22];
std::vector< float > sVector() const
~SiPixel2DTemplateDBObjectESProducer() override
const DepRecordT getRecord() const
virtual GlobalVector inTesla(const GlobalPoint &gp) const =0
Field value ad specified global point, in Tesla.
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
SiPixel2DTemplateDBObjectESProducer(const edm::ParameterSet &iConfig)
std::shared_ptr< const SiPixel2DTemplateDBObject > produce(const SiPixel2DTemplateDBObjectESProducerRcd &)
T const * product() const