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());
70 if (
pset->existsAs<std::vector<std::string> >(
"@trigger_paths",
true)) {
75 throw cms::Exception(
"LogicError") <<
"edm::EventBase::triggerNames_ Encountered vector\n" 76 "of trigger names and a TriggerResults object with\n" 77 "different sizes. This should be impossible.\n" 78 "Please send information to reproduce this problem to\n" 79 "the edm developers.\n";
98 fillColumn<uint8_t>(pair, triggers);
103 auto const branches =
tree.GetListOfBranches();
104 for (
int i = 0;
i < branches->GetEntries();
i++) {
107 <<
"Found a branch with name " <<
std::string(branches->At(
i)->GetName()) <<
" already present with title " 109 <<
" to the new branch.\n";
bool getMapped(key_type const &k, value_type &result) const
bool verifyBranchUniqueName(TTree &, std::string) const
std::string m_processName
const std::string names[nVars_]
unsigned int size() const
Get number of paths stored.
const std::vector< std::string > & getTriggerNames() const
Obsolete.
static std::string const triggerResults
edm::TriggerNames triggerNames(const edm::TriggerResults triggerResults)
Log< level::Warning, false > LogWarning
void fill(const edm::EventForOutput &iEvent, TTree &tree)
void updateTriggerNames(TTree &tree, const edm::TriggerNames &names, const edm::TriggerResults &ta)
std::vector< NamedBranchPtr > m_triggerBranches
static Registry * instance()