|
|
Go to the documentation of this file.
72 : outputType_(this->stringToEnum(
cfg.getUntrackedParameter<
std::
string>(
"outputType"))), firstRun_(0), lastRun_(0) {
99 if (outputTypeStr ==
"text")
101 if (outputTypeStr ==
"twiki")
103 if (outputTypeStr ==
"python")
107 throw cms::Exception(
"BadConfig") <<
"AlCaRecoTriggerBitsRcdRead: "
108 <<
"outputType '" << outputTypeStr <<
"' not known,"
109 <<
" use 'text', 'twiki' or 'python'\n";
142 typedef std::map<std::string, std::string> TriggerMap;
147 std::ostringstream
output;
150 output <<
" triggerLists = cms.VPSet(\n";
157 <<
"| *TriggerBits list key* | *HLT paths* |\n";
164 for (TriggerMap::const_iterator
i = triggerMap.begin();
i != triggerMap.end(); ++
i) {
170 output <<
" cms.PSet(listName = cms.string('" <<
i->first <<
"'),\n"
171 <<
" hltPaths = cms.vstring(";
174 output <<
"trigger list key: '" <<
i->first <<
"'\npaths:\n";
177 output <<
"| '" <<
i->first <<
"' | ";
181 const std::vector<std::string>
paths = triggerBits.
decompose(
i->second);
182 for (
unsigned int iPath = 0; iPath <
paths.size(); ++iPath) {
212 output <<
"\n ) # closing of VPSet triggerLists\n";
bool check(const edm::EventSetup &iSetup)
AlCaRecoTriggerBitsRcdRead(const edm::ParameterSet &cfg)
void analyze(const edm::Event &evt, const edm::EventSetup &evtSetup) override
edm::RunNumber_t firstRun_
~AlCaRecoTriggerBitsRcdRead() override
edm::RunNumber_t lastRun_
Log< level::Info, false > LogInfo
void printMap(edm::RunNumber_t firstRun, edm::RunNumber_t lastRun, const AlCaRecoTriggerBits &triggerMap) const
AlCaRecoTriggerBits lastTriggerBits_
#define DEFINE_FWK_MODULE(type)
std::vector< std::string > decompose(const std::string &concatPaths) const
Decompose one value of map from concatenated string.
void beginRun(const edm::Run &run, const edm::EventSetup &evtSetup) override
std::unique_ptr< std::ofstream > output_
Log< level::Error, false > LogError
const OutputType outputType_
OutputType stringToEnum(const std::string &outputType) const
std::map< std::string, std::string > m_alcarecoToTrig
edm::ESWatcher< AlCaRecoTriggerBitsRcd > watcher_