11 if(newNames.empty()) {
12 for(
unsigned int j=0;j<triggers.
size();j++) {
20 for(
unsigned int j=0;j<newNames.size();j++) {
22 std::size_t vfound = name.rfind(
"_v");
23 if (vfound!=std::string::npos){
24 name.replace(vfound,name.size()-vfound,
"");
26 if(name==existing.name) existing.idx=j;
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) {
if(name==existing.name) found=
true;}
41 uint8_t backFillValue=0;
42 nb.
branch= tree.Branch(nb.
name.c_str(), &backFillValue, (name +
"/O").c_str());
45 m_triggerBranches.push_back(nb);
57 if (pset->
existsAs<std::vector<std::string> >(
"@trigger_paths",
true)) {
61 if (triggerNames.
size() != triggerResults.
size()) {
63 <<
"edm::EventBase::triggerNames_ Encountered vector\n" 64 "of trigger names and a TriggerResults object with\n" 65 "different sizes. This should be impossible.\n" 66 "Please send information to reproduce this problem to\n" 67 "the edm developers.\n";
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()