11 if (newNames.empty()) {
12 for (
unsigned int j = 0;
j < triggers.
size();
j++) {
19 for (
unsigned int j = 0;
j < newNames.size();
j++) {
21 std::size_t vfound = name.rfind(
"_v");
22 if (vfound != std::string::npos) {
23 name.replace(vfound, name.size() - vfound,
"");
30 for (
unsigned int j = 0;
j < newNames.size();
j++) {
32 std::size_t vfound = name.rfind(
"_v");
33 if (vfound != std::string::npos) {
34 name.replace(vfound, name.size() - vfound,
"");
37 if (name.compare(0, 3,
"HLT") == 0 || name.compare(0, 4,
"Flag") == 0 || name.compare(0, 2,
"L1") == 0) {
38 for (
auto&
existing : m_triggerBranches) {
46 uint8_t backFillValue = 0;
47 nb.
branch = tree.Branch(nb.
name.c_str(), &backFillValue, (name +
"/O").c_str());
50 m_triggerBranches.push_back(nb);
62 if (pset->
existsAs<std::vector<std::string> >(
"@trigger_paths",
true)) {
66 if (triggerNames.
size() != triggerResults.
size()) {
67 throw cms::Exception(
"LogicError") <<
"edm::EventBase::triggerNames_ Encountered vector\n" 68 "of trigger names and a TriggerResults object with\n" 69 "different sizes. This should be impossible.\n" 70 "Please send information to reproduce this problem to\n" 71 "the edm developers.\n";
90 fillColumn<uint8_t>(pair, triggers);
EventID const & id() const
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
BasicHandle getByToken(EDGetToken token, TypeID const &typeID) const
Strings::size_type size() const
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
static std::string const triggerResults
edm::TriggerNames triggerNames(const edm::TriggerResults triggerResults)
std::string const & triggerName(unsigned int index) const
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()