ATLAS Offline Software
Loading...
Searching...
No Matches
TrigChainNameHelpers.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRIGGER_ANALYSIS_ALGORITHMS__TRIG_CHAIN_NAME_HELPERS_H
6#define TRIGGER_ANALYSIS_ALGORITHMS__TRIG_CHAIN_NAME_HELPERS_H
7
8#include <algorithm>
9#include <string>
10
11namespace CP
12{
18 inline std::string sanitizeTriggerChainName (std::string chain)
19 {
20 std::replace (chain.begin(), chain.end(), '.', 'p');
21 std::replace (chain.begin(), chain.end(), '-', '_');
22 return chain;
23 }
24}
25
26#endif
Select isolated Photons, Electrons and Muons.
std::string sanitizeTriggerChainName(std::string chain)
convert a trigger chain name into a string usable in decoration/branch names (.