34 printdebug_(p.getUntrackedParameter<bool>(
"printDebug",
true)),
35 formatedOutput_(p.getUntrackedParameter<std::
string>(
"outputFile",
"")) {
36 edm::LogInfo(
"SiPixelFEDChannelContainerTestReader") <<
"SiPixelFEDChannelContainerTestReader" << std::endl;
40 edm::LogInfo(
"SiPixelFEDChannelContainerTestReader") <<
"~SiPixelFEDChannelContainerTestReader " << std::endl;
45 <<
"### SiPixelFEDChannelContainerTestReader::analyze ###" << std::endl;
46 edm::LogInfo(
"SiPixelFEDChannelContainerTestReader") <<
" I AM IN RUN NUMBER " << e.
id().
run() << std::endl;
47 edm::LogInfo(
"SiPixelFEDChannelContainerTestReader") <<
" ---EVENT NUMBER " << e.
id().
event() << std::endl;
54 edm::LogInfo(
"SiPixelFEDChannelContainerTestReader") <<
"Record \"SiPixelStatusScenariosRcd"
55 <<
"\" does not exist " << std::endl;
60 edm::LogInfo(
"SiPixelFEDChannelContainerTestReader") <<
"got eshandle from context" << std::endl;
63 edm::LogInfo(
"SiPixelFEDChannelContainerTestReader") <<
"got SiPixelFEDChannelContainer* " << std::endl;
64 edm::LogInfo(
"SiPixelFEDChannelContainerTestReader") <<
"print pointer address : " << quality_map << std::endl;
65 edm::LogInfo(
"SiPixelFEDChannelContainerTestReader") <<
"Size " << quality_map->
size() << std::endl;
66 edm::LogInfo(
"SiPixelFEDChannelContainerTestReader") <<
"Content of myQuality_Map " << std::endl;
72 FILE* pFile =
nullptr;
76 fprintf(pFile,
"SiPixelFEDChannelContainer::printAll() \n");
78 " ========================================================================================================="
83 for (
auto it = m_qualities.begin(); it != m_qualities.end(); ++it) {
85 " ======================================================================================================="
87 fprintf(pFile,
"run : %s \n ", (it->first).c_str());
88 for (
const auto& thePixelFEDChannel : it->second) {
89 DetId detId = thePixelFEDChannel.first;
90 fprintf(pFile,
"DetId : %i \n", detId.
rawId());
91 for (
const auto&
entry : thePixelFEDChannel.second) {
94 "fed : %i | link : %2i | roc_first : %2i | roc_last: %2i \n",
107 desc.
setComment(
"Reads payloads of type SiPixelFEDChannelContainer");
110 descriptions.
add(
"SiPixelFEDChannelContainerTestReader", desc);
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
EventNumber_t event() const
const edm::EventSetup & c
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
#define DEFINE_FWK_MODULE(type)
SiPixelFEDChannelContainerTestReader(edm::ParameterSet const &p)
constexpr uint32_t rawId() const
get the raw id
void setComment(std::string const &value)
~SiPixelFEDChannelContainerTestReader() override
const SiPixelBadFEDChannelsScenarioMap & getScenarioMap() const
Log< level::Info, false > LogInfo
void analyze(const edm::Event &e, const edm::EventSetup &c) override
T const * product() const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
const std::string formatedOutput_
heterocontainer::HCTypeTag TypeTag
const TypeTag & type() const
std::unordered_map< std::string, SiPixelFEDChannelCollection > SiPixelBadFEDChannelsScenarioMap
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
const edm::ESGetToken< SiPixelFEDChannelContainer, SiPixelStatusScenariosRcd > siPixelBadFEDChToken_
static HCTypeTag findType(char const *iTypeName)
find a type based on the types name, if not found will return default HCTypeTag