12 if (newNames.empty()) {
13 for (
unsigned int j = 0;
j < triggers.
size();
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.replace(vfound, name.size() - vfound,
"");
32 for (
unsigned int j = 0;
j < newNames.size();
j++) {
34 std::size_t vfound = name.rfind(
"_v");
35 if (vfound != std::string::npos && (name.compare(0, 3,
"HLT") == 0 || name.compare(0, 2,
"L1") == 0)) {
36 name.replace(vfound, name.size() - vfound,
"");
39 if (name.compare(0, 3,
"HLT") == 0 || name.compare(0, 4,
"Flag") == 0 || name.compare(0, 2,
"L1") == 0) {
40 for (
auto&
existing : m_triggerBranches) {
49 uint8_t backFillValue = 0;
52 nb.
branch = tree.Branch(brname.c_str(), &backFillValue, (brname +
"/O").c_str());
55 m_triggerBranches.push_back(nb);
67 if (pset->
existsAs<std::vector<std::string> >(
"@trigger_paths",
true)) {
71 if (triggerNames.
size() != triggerResults.
size()) {
72 throw cms::Exception(
"LogicError") <<
"edm::EventBase::triggerNames_ Encountered vector\n"
73 "of trigger names and a TriggerResults object with\n"
74 "different sizes. This should be impossible.\n"
75 "Please send information to reproduce this problem to\n"
76 "the edm developers.\n";
95 fillColumn<uint8_t>(pair, triggers);
100 auto const branches = tree.GetListOfBranches();
101 for (
int i = 0;
i < branches->GetEntries();
i++) {
104 <<
"Found a branch with name " <<
std::string(branches->At(
i)->GetName()) <<
" already present with title "
106 <<
" to the new branch.\n";
EventID const & id() const
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
std::string m_processName
const std::string names[nVars_]
const std::vector< std::string > & getTriggerNames() const
Obsolete.
unsigned int size() const
Get number of paths stored.
bool getMapped(key_type const &k, value_type &result) const
bool verifyBranchUniqueName(TTree &, std::string) const
static std::string const triggerResults
edm::TriggerNames triggerNames(const edm::TriggerResults triggerResults)
std::string const & triggerName(unsigned int index) const
BasicHandle getByToken(EDGetToken token, TypeID const &typeID) const
Log< level::Warning, false > LogWarning
void fill(const edm::EventForOutput &iEvent, TTree &tree)
const ParameterSetID & parameterSetID() const
Get stored parameter set id.
void updateTriggerNames(TTree &tree, const edm::TriggerNames &names, const edm::TriggerResults &ta)
std::vector< NamedBranchPtr > m_triggerBranches
static Registry * instance()