12 if(newNames.empty()) {
13 for(
unsigned int j=0;j<triggers.
size();j++) {
22 for(
unsigned int j=0;j<newNames.size();j++) {
24 std::size_t vfound = name.rfind(
"_v");
25 if (vfound!=std::string::npos && (name.compare(0, 3,
"HLT") == 0 || name.compare(0, 2,
"L1") == 0)){
26 name.replace(vfound,name.size()-vfound,
"");
28 if(name==existing.name) existing.idx=j;
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) {
if(name==existing.name) found=
true;}
45 uint8_t backFillValue=0;
48 nb.
branch = tree.Branch(brname.c_str(), &backFillValue, (brname +
"/O").c_str());
51 m_triggerBranches.push_back(nb);
63 if (pset->
existsAs<std::vector<std::string> >(
"@trigger_paths",
true)) {
67 if (triggerNames.
size() != triggerResults.
size()) {
69 <<
"edm::EventBase::triggerNames_ Encountered vector\n" 70 "of trigger names and a TriggerResults object with\n" 71 "different sizes. This should be impossible.\n" 72 "Please send information to reproduce this problem to\n" 73 "the edm developers.\n";
97 auto const branches = tree.GetListOfBranches();
98 for (
int i = 0;
i < branches->GetEntries();
i++) {
101 <<
"Found a branch with name " <<
std::string(branches->At(
i)->GetName()) <<
" already present with title " 103 <<
" 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
BasicHandle getByToken(EDGetToken token, TypeID const &typeID) const
std::string m_processName
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
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
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()