|
| SiPixelGenErrorDBObjectReader (const edm::ParameterSet &) |
|
| ~SiPixelGenErrorDBObjectReader () override |
|
| EDAnalyzer ()=default |
|
| EDAnalyzer (const EDAnalyzer &)=delete |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () final |
|
SerialTaskQueue * | globalRunsQueue () final |
|
const EDAnalyzer & | operator= (const EDAnalyzer &)=delete |
|
bool | wantsGlobalLuminosityBlocks () const final |
|
bool | wantsGlobalRuns () const final |
|
bool | wantsInputProcessBlocks () const final |
|
bool | wantsProcessBlocks () const final |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
bool | wantsStreamLuminosityBlocks () const |
|
bool | wantsStreamRuns () const |
|
| ~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 |
|
ESProxyIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
std::vector< ESProxyIndex > 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 |
|
bool | registeredToConsumeMany (TypeID const &, 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::ESRecordsToProxyIndices 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 ProductType , BranchType B = InEvent> |
void | consumesMany () |
|
void | consumesMany (const TypeToGet &id) |
|
template<BranchType B> |
void | consumesMany (const TypeToGet &id) |
|
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 SiPixelGenErrorDBObjectReader.cc.
References funct::abs(), dqmiodatasetharvest::db, change_name::diff, relativeConstraints::error, SiPixelGenErrorDBObject::fail(), genErrToken_, edm::EventSetup::getData(), SiPixelGenErrorDBObject::getGenErrorIDs(), mps_fire::i, recoMuon::in, runGCPTkAlMap::in_file, SiPixelGenErrorDBObject::index(), SiPixelGenError::lorxwidth(), SiPixelGenError::lorywidth(), SiPixelGenErrorDBObject::maxIndex(), SiPixelGenErrorDBObject::numOfTempl(), SiPixelGenError::pushfile(), mps_update::status, AlCaHLTBitMon_QueryRunRegistry::string, SiPixelGenErrorDBObject::sVector(), groupFilesInBlocks::temp, theDetailedGenErrorDBErrorOutput, theFullGenErrorDBOutput, theGenErrorCalibrationLocation, and SiPixelGenErrorDBObject::version().
59 edm::LogPrint(
"SiPixelGenErrorDBObjectReader") <<
"\nLoading ... " << std::endl;
66 <<
" DBObject version " << dbobject.
version() <<
" index " << dbobject.
index() <<
" max " << dbobject.
maxIndex()
67 <<
" fail " << dbobject.
fail() <<
" numOfTeml " << dbobject.
numOfTempl() << std::endl;
70 edm::LogPrint(
"SiPixelGenErrorDBObjectReader") <<
"Map info" << std::endl;
71 std::vector<short> tempMapId;
72 std::map<unsigned int, short> templMap = dbobject.
getGenErrorIDs();
73 for (std::map<unsigned int, short>::const_iterator it = templMap.begin(); it != templMap.end(); ++it) {
74 if (tempMapId.empty())
75 tempMapId.push_back(it->second);
76 for (
unsigned int i = 0;
i < tempMapId.size(); ++
i) {
77 if (tempMapId[
i] == it->second)
79 else if (
i == tempMapId.size() - 1) {
80 tempMapId.push_back(it->second);
85 edm::LogPrint(
"SiPixelGenErrorDBObjectReader") <<
"DetId: " << it->first <<
" GenErrorID: " << it->second <<
"\n";
88 edm::LogPrint(
"SiPixelGenErrorDBObjectReader") <<
"\nMap stores GenError Id(s): ";
89 for (
unsigned int vindex = 0; vindex < tempMapId.size(); ++vindex)
90 edm::LogPrint(
"SiPixelGenErrorDBObjectReader") << tempMapId[vindex] <<
" ";
97 <<
" no file for camparison defined, comparison will be skipped " << std::endl;
104 float tempnum = 0,
diff = 0;
106 bool givenErrorMsg =
false;
109 <<
"\nChecking GenError DB object version " << dbobject.
version() <<
" containing " << numOfTempl
110 <<
" calibration(s) at " << dbobject.
sVector()[
index + 22] <<
"T\n";
112 for (
int i = 0;
i < numOfTempl; ++
i) {
119 <<
"Calibration " <<
i + 1 <<
" of " << numOfTempl <<
", with GenError ID " << dbobject.
sVector()[
index]
120 <<
"\tand Version " << dbobject.
sVector()[
index + 1] <<
"\t-------- " << std::endl;
123 std::ostringstream tout;
125 << std::right << dbobject.
sVector()[
index] <<
".out" << std::ends;
131 <<
" open file " << tout.str() <<
" " <<
in_file.is_open() << std::endl;
147 edm::LogPrint(
"SiPixelGenErrorDBObjectReader") <<
"does NOT match\n";
150 givenErrorMsg =
true;
154 <<
"from file = " << tempnum <<
"\t from dbobject = " << dbobject.
sVector()[
index]
155 <<
"\tdiff = " <<
diff <<
"\t db index = " <<
index << std::endl;
164 edm::LogPrint(
"SiPixelGenErrorDBObjectReader") <<
"MATCHES\n";
167 <<
" ERROR: cannot open file, comparison will be stopped" << std::endl;
171 givenErrorMsg =
false;
177 <<
"\nThe were differences found between the files and the database.\n" 178 <<
"If you would like more detailed information please set\n" 179 <<
"wantDetailedOutput = True in the cfg file. If you would like a\n" 180 <<
"full output of the contents of the database file please set\n" 181 <<
"wantFullOutput = True. Make sure that you pipe the output to a\n" 182 <<
"log file. This could take a few minutes.\n\n";
187 std::vector<SiPixelGenErrorStore> thePixelGenError;
190 <<
" status = " <<
status <<
" size = " << thePixelGenError.size() << std::endl;
195 <<
" some values " << genError.lorxwidth() <<
" " << genError.lorywidth() <<
" " << std::endl;
199 edm::LogPrint(
"SiPixelGenErrorDBObjectReader") << dbobject << std::endl;
static bool pushfile(int filenum, std::vector< SiPixelGenErrorStore > &pixelTemp, std::string dir="")
edm::ESGetToken< SiPixelGenErrorDBObject, SiPixelGenErrorDBObjectRcd > genErrToken_
Abs< T >::type abs(const T &t)
bool getData(T &iHolder) const
Log< level::Warning, true > LogPrint
std::vector< float > sVector() const
bool theDetailedGenErrorDBErrorOutput
std::string theGenErrorCalibrationLocation
const std::map< unsigned int, short > & getGenErrorIDs() const
bool theFullGenErrorDBOutput