16 #include "boost/mpl/vector.hpp" 24 setWhatProduced(
this);
44 if( theMagField>=-0.1 && theMagField<1.0 ) label =
"0T";
45 else if(theMagField>=1.0 && theMagField<2.5 ) label =
"2T";
46 else if(theMagField>=2.5 && theMagField<3.25) label =
"3T";
47 else if(theMagField>=3.25 && theMagField<3.65) label =
"35T";
48 else if(theMagField>=3.9 && theMagField<4.1 ) label =
"4T";
51 if(theMagField>=4.1 || theMagField<-0.1)
edm::LogWarning(
"UnexpectedMagneticFieldUsingDefaultPixelGenError") <<
"Magnetic field is " << theMagField;
56 if(std::fabs(theMagField-dbobject->
sVector()[22])>0.1)
57 edm::LogWarning(
"UnexpectedMagneticFieldUsingNonIdealPixelGenError") <<
"Magnetic field is " << theMagField <<
" GenError Magnetic field is " << dbobject->
sVector()[22];
std::shared_ptr< SiPixelGenErrorDBObject > produce(const SiPixelGenErrorDBObjectESProducerRcd &)
~SiPixelGenErrorDBObjectESProducer() override
const DepRecordT getRecord() const
std::vector< float > sVector() const
SiPixelGenErrorDBObjectESProducer(const edm::ParameterSet &iConfig)
virtual GlobalVector inTesla(const GlobalPoint &gp) const =0
Field value ad specified global point, in Tesla.
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
T const * product() const