|
|
Go to the documentation of this file.
70 : outputType_(this->stringToEnum(
cfg.getUntrackedParameter<
std::
string>(
"outputType"))), firstRun_(0), lastRun_(0) {
97 if (outputTypeStr ==
"text")
99 if (outputTypeStr ==
"twiki")
101 if (outputTypeStr ==
"python")
105 throw cms::Exception(
"BadConfig") <<
"AlCaRecoTriggerBitsRcdRead: "
106 <<
"outputType '" << outputTypeStr <<
"' not known,"
107 <<
" use 'text', 'twiki' or 'python'\n";
140 typedef std::map<std::string, std::string> TriggerMap;
145 std::ostringstream
output;
148 output <<
" triggerLists = cms.VPSet(\n";
155 <<
"| *TriggerBits list key* | *HLT paths* |\n";
162 for (TriggerMap::const_iterator
i = triggerMap.begin();
i != triggerMap.end(); ++
i) {
168 output <<
" cms.PSet(listName = cms.string('" <<
i->first <<
"'),\n"
169 <<
" hltPaths = cms.vstring(";
172 output <<
"trigger list key: '" <<
i->first <<
"'\npaths:\n";
175 output <<
"| '" <<
i->first <<
"' | ";
179 const std::vector<std::string>
paths = triggerBits.
decompose(
i->second);
180 for (
unsigned int iPath = 0; iPath <
paths.size(); ++iPath) {
210 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_
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_
const OutputType outputType_
OutputType stringToEnum(const std::string &outputType) const
std::map< std::string, std::string > m_alcarecoToTrig
edm::ESWatcher< AlCaRecoTriggerBitsRcd > watcher_