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) {
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");
108 desc.addUntracked<
bool>(
"printDebug",
true);
110 descriptions.
add(
"SiPixelFEDChannelContainerTestReader",
desc);
const TypeTag & type() const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const SiPixelBadFEDChannelsScenarioMap & getScenarioMap() const
SiPixelFEDChannelContainerTestReader(edm::ParameterSet const &p)
T const * product() const
~SiPixelFEDChannelContainerTestReader() override
#define DEFINE_FWK_MODULE(type)
Log< level::Info, false > LogInfo
void analyze(const edm::Event &e, const edm::EventSetup &c) override
void add(std::string const &label, ParameterSetDescription const &psetDescription)
const std::string formatedOutput_
heterocontainer::HCTypeTag TypeTag
std::unordered_map< std::string, SiPixelFEDChannelCollection > SiPixelBadFEDChannelsScenarioMap
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