|
| SiPixelTemplateDBObjectReader (const edm::ParameterSet &) |
|
| ~SiPixelTemplateDBObjectReader () override=default |
|
| EDAnalyzer ()=default |
|
| EDAnalyzer (const EDAnalyzer &)=delete |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () final |
|
SerialTaskQueue * | globalRunsQueue () final |
|
const EDAnalyzer & | operator= (const EDAnalyzer &)=delete |
|
bool | wantsGlobalLuminosityBlocks () const noexcept final |
|
bool | wantsGlobalRuns () const noexcept final |
|
bool | wantsInputProcessBlocks () const noexcept final |
|
bool | wantsProcessBlocks () const noexcept final |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
bool | wantsStreamLuminosityBlocks () const noexcept |
|
bool | wantsStreamRuns () const noexcept |
|
| ~EDAnalyzerBase () override |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
void | convertCurrentProcessAlias (std::string const &processName) |
| Convert "@currentProcess" in InputTag process names to the actual current process name. More...
|
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
ESResolverIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
std::vector< ESResolverIndex > const & | esGetTokenIndicesVector (edm::Transition iTrans) const |
|
std::vector< ESRecordIndex > const & | esGetTokenRecordIndicesVector (edm::Transition iTrans) const |
|
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const *> const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
void | selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase) |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
void | updateLookup (eventsetup::ESRecordsToProductResolverIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
typedef EDAnalyzerBase | ModuleType |
|
typedef ProductLabels | Labels |
|
static const std::string & | baseType () |
|
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
|
static void | prevalidate (ConfigurationDescriptions &descriptions) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
template<BranchType B = InEvent> |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
|
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
|
ConsumesCollector | consumesCollector () |
| Use a ConsumesCollector to gather consumes information from helper functions. More...
|
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes () |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag const &tag) |
|
template<Transition Tr = Transition::Event> |
constexpr auto | esConsumes () |
|
template<Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag tag) |
|
template<Transition Tr = Transition::Event> |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
| Used with EventSetupRecord::doGet. More...
|
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
|
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
void | resetItemsToGetFrom (BranchType iType) |
|
Implements edm::one::EDAnalyzerBase.
Definition at line 58 of file SiPixelTemplateDBObjectReader.cc.
References funct::abs(), edm::ESWatcher< T >::check(), change_name::diff, relativeConstraints::error, geometryDiff::file, edm::EventSetup::getData(), edm::EventSetup::getHandle(), SiPixelTemplateDBObject::getTemplateIDs(), hasTriggeredWatcher, mps_fire::i, recoMuon::in, runGCPTkAlMap::in_file, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, volumeBasedMagneticField_160812_cfi::magfield, magneticFieldToken_, SiPixelTemplateDBObject::numOfTempl(), SiPixTemplDBObjWatcher_, SiPixelTemplateDBObject::sVector(), testGlobalTag, the1DTemplateESProdToken_, the1DTemplateToken_, theDetailedTemplateDBErrorOutput, theFullTemplateDBOutput, theTemplateCalibrationLocation, and SiPixelTemplateDBObject::version().
65 float theMagField =
magfield.product()->inTesla(center).mag();
67 edm::LogPrint(
"SiPixelTemplateDBObjectReader") <<
"\nTesting global tag at magfield = " << theMagField;
69 edm::LogPrint(
"SiPixelTemplateDBObjectReader") <<
"With record SiPixelTemplateDBObjectESProducerRcd";
74 edm::LogPrint(
"SiPixelTemplateDBObjectReader") <<
"\nLoading from file " << std::endl;
76 edm::LogPrint(
"SiPixelTemplateDBObjectReader") <<
"With record SiPixelTemplateDBObjectRcd";
83 std::vector<short> tempMapId;
86 edm::LogPrint(
"SiPixelTemplateDBObjectReader") <<
"Map info" << std::endl;
87 std::map<unsigned int, short> templMap = dbobject.
getTemplateIDs();
88 for (std::map<unsigned int, short>::const_iterator
it = templMap.begin();
it != templMap.end(); ++
it) {
89 if (tempMapId.empty())
90 tempMapId.push_back(
it->second);
91 for (
unsigned int i = 0;
i < tempMapId.size(); ++
i) {
92 if (tempMapId[
i] ==
it->second)
94 else if (
i == tempMapId.size() - 1) {
95 tempMapId.push_back(
it->second);
101 <<
"DetId: " <<
it->first <<
" TemplateID: " <<
it->second <<
"\n";
104 edm::LogPrint(
"SiPixelTemplateDBObjectReader") <<
"\nMap stores template Id(s): ";
105 for (
unsigned int vindex = 0; vindex < tempMapId.size(); ++vindex)
106 edm::LogPrint(
"SiPixelTemplateDBObjectReader") << tempMapId[vindex] <<
" ";
112 float tempnum = 0,
diff = 0;
114 bool error =
false, givenErrorMsg =
false;
117 <<
"\nChecking Template DB object version " << dbobject.
version() <<
" containing " << numOfTempl
118 <<
" calibration(s) at " << dbobject.
sVector()[
index + 22] <<
"T\n";
126 for (
int i = 0;
i < numOfTempl; ++
i) {
132 <<
"Calibration " <<
i + 1 <<
" of " << numOfTempl <<
", with Template ID " << dbobject.
sVector()[
index]
133 <<
"\tand Version " << dbobject.
sVector()[
index + 1] <<
"\t-------- ";
136 std::ostringstream tout;
138 << std::right << dbobject.
sVector()[
index] <<
".out" << std::ends;
160 edm::LogPrint(
"SiPixelTemplateDBObjectReader") <<
"does NOT match\n";
163 givenErrorMsg =
true;
167 <<
"from file = " << tempnum <<
"\t from dbobject = " << dbobject.
sVector()[
index]
168 <<
"\tdiff = " <<
diff <<
"\t db index = " <<
index << std::endl;
177 edm::LogPrint(
"SiPixelTemplateDBObjectReader") <<
"MATCHES\n";
180 givenErrorMsg =
false;
185 <<
"\nThe were differences found between the files and the database.\n" 186 <<
"If you would like more detailed information please set\n" 187 <<
"wantDetailedOutput = True in the cfg file. If you would like a\n" 188 <<
"full output of the contents of the database file please set\n" 189 <<
"wantFullOutput = True. Make sure that you pipe the output to a\n" 190 <<
"log file. This could take a few minutes.\n\n";
193 edm::LogPrint(
"SiPixelTemplateDBObjectReader") << dbobject << std::endl;
const edm::ESGetToken< SiPixelTemplateDBObject, SiPixelTemplateDBObjectRcd > the1DTemplateToken_
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
const bool theFullTemplateDBOutput
const std::string theTemplateCalibrationLocation
const edm::ESGetToken< SiPixelTemplateDBObject, SiPixelTemplateDBObjectESProducerRcd > the1DTemplateESProdToken_
const bool theDetailedTemplateDBErrorOutput
Abs< T >::type abs(const T &t)
edm::ESWatcher< SiPixelTemplateDBObjectRcd > SiPixTemplDBObjWatcher_
std::vector< float > const & sVector() const
Log< level::Warning, true > LogPrint
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
const std::map< unsigned int, short > & getTemplateIDs() const
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magneticFieldToken_
bool check(const edm::EventSetup &iSetup)