#include <TriggerOutputBranches.h>
Definition at line 13 of file TriggerOutputBranches.h.
◆ TriggerOutputBranches()
◆ fill()
Definition at line 87 of file TriggerOutputBranches.cc.
References patZpeak::handle, iEvent, m_fills, m_lastRun, m_token, m_triggerBranches, names, triggerNames(), and updateTriggerNames().
98 fillColumn<uint8_t>(pair, triggers);
const std::string names[nVars_]
edm::TriggerNames triggerNames(const edm::TriggerResults triggerResults)
void updateTriggerNames(TTree &tree, const edm::TriggerNames &names, const edm::TriggerResults &ta)
std::vector< NamedBranchPtr > m_triggerBranches
◆ fillColumn()
◆ processName()
std::string TriggerOutputBranches::processName |
( |
| ) |
|
|
inline |
◆ triggerNames()
◆ updateTriggerNames()
Definition at line 8 of file TriggerOutputBranches.cc.
References TriggerOutputBranches::NamedBranchPtr::branch, dqmPostProcessing_online::existing, newFWLiteAna::found, edm::TriggerResults::getTriggerNames(), mps_fire::i, TriggerOutputBranches::NamedBranchPtr::idx, dqmiolumiharvest::j, m_fills, m_processName, m_triggerBranches, Skims_PA_cff::name, TriggerOutputBranches::NamedBranchPtr::name, names, edm::HLTGlobalStatus::size(), AlCaHLTBitMon_QueryRunRegistry::string, TriggerOutputBranches::NamedBranchPtr::title, and verifyBranchUniqueName().
Referenced by fill().
11 std::vector<std::string> newNames(triggers.getTriggerNames());
12 if (newNames.empty()) {
13 for (
unsigned int j = 0;
j < triggers.size();
j++) {
14 newNames.push_back(
names.triggerName(
j));
21 for (
unsigned int j = 0;
j < newNames.size();
j++) {
23 std::size_t vfound =
name.rfind(
"_v");
24 if (vfound != std::string::npos && (
name.compare(0, 3,
"HLT") == 0 ||
name.compare(0, 2,
"L1") == 0 ||
25 name.find(
"Scouting") != std::string::npos)) {
26 name.replace(vfound,
name.size() - vfound,
"");
33 for (
unsigned int j = 0;
j < newNames.size();
j++) {
35 std::size_t vfound =
name.rfind(
"_v");
36 if (vfound != std::string::npos && (
name.compare(0, 3,
"HLT") == 0 ||
name.compare(0, 2,
"L1") == 0 ||
37 name.find(
"Scouting") != std::string::npos)) {
38 name.replace(vfound,
name.size() - vfound,
"");
41 if (
name.compare(0, 3,
"HLT") == 0 ||
name.compare(0, 4,
"Flag") == 0 ||
name.compare(0, 2,
"L1") == 0 ||
42 name.find(
"Scouting") != std::string::npos) {
52 uint8_t backFillValue = 0;
55 nb.branch =
tree.Branch(brname.c_str(), &backFillValue, (brname +
"/O").c_str());
56 nb.branch->SetTitle(nb.title.c_str());
bool verifyBranchUniqueName(TTree &, std::string) const
std::string m_processName
const std::string names[nVars_]
std::vector< NamedBranchPtr > m_triggerBranches
◆ verifyBranchUniqueName()
bool TriggerOutputBranches::verifyBranchUniqueName |
( |
TTree & |
tree, |
|
|
std::string |
name |
|
) |
| const |
|
private |
◆ m_baseName
std::string TriggerOutputBranches::m_baseName |
|
private |
◆ m_counter
UInt_t TriggerOutputBranches::m_counter |
|
private |
◆ m_fills
unsigned long TriggerOutputBranches::m_fills |
|
private |
◆ m_lastRun
long TriggerOutputBranches::m_lastRun |
|
private |
◆ m_processName
std::string TriggerOutputBranches::m_processName |
|
private |
◆ m_token
◆ m_triggerBranches