|
ATLAS Offline Software
|
Go to the documentation of this file.
7 #ifndef TRIGGLOBALEFFICIENCYCORRECTION_IMPORTDATA_H
8 #define TRIGGLOBALEFFICIENCYCORRECTION_IMPORTDATA_H 1
96 std::array<std::size_t, 4>
leg;
100 std::size_t
name = 0,
101 std::size_t leg0 = 0,
102 std::size_t leg1 = 0,
103 std::size_t leg2 = 0,
104 std::size_t leg3 = 0) :
114 bool importThresholds(
const std::map<std::string, std::string>& overridenThresholds = {});
116 bool importMapKeys(
const std::string&
tag, std::map<std::size_t,std::map<std::size_t,int> >& keysPerLeg);
118 bool importAll(
const std::map<std::string, std::string>& overridenThresholds = {});
123 std::map<std::string,std::string>& legsPerKey,
133 std::vector<TrigDef>
parseTriggerString(
const std::string& triggerString,
bool& success);
155 t.erase(std::remove_if(
t.begin(),
t.end(),
156 [](
char c){ return std::isspace(c); }),
t.end());
bool importMapKeys(const std::string &tag, std::map< std::size_t, std::map< std::size_t, int > > &keysPerLeg)
const std::map< std::string, std::pair< unsigned, unsigned > > & getDataPeriods() const
std::map< std::string, std::pair< unsigned, unsigned > > m_dataPeriods
bool adaptTriggerListForTriggerMatching(std::vector< ImportData::TrigDef > &triggers)
const std::map< std::size_t, TrigDef > & getTriggerDefs() const
bool getPeriodBoundaries(const std::string &period, std::pair< unsigned, unsigned > &boundaries)
the template specializations below must be enclosed in this namespace
const std::vector< Hierarchy > & getHierarchyMeta() const
const std::map< std::size_t, float > & getTriggerThresholds() const
const std::map< std::size_t, std::string > & getDictionary() const
std::vector< TrigDef > parseTriggerString(const std::string &triggerString, bool &success)
std::vector< std::size_t > m_hierarchyData
bool importThresholds(const std::map< std::string, std::string > &overridenThresholds={})
std::array< std::size_t, 4 > leg
std::vector< Hierarchy > m_hierarchyMeta
xAOD::Type::ObjectType associatedLeptonFlavour(std::size_t leg, bool &success)
const std::vector< std::size_t > & getHierarchyData() const
std::hash< std::string > & m_hasher
void contents(std::vector< std::string > &keys, TDirectory *td, const std::string &directory, const std::string &pattern, const std::string &path)
std::map< std::size_t, float > m_triggerThresholds
TrigGlobalEfficiencyCorrectionTool * getParent()
std::map< std::size_t, TrigDef > m_triggerDefs
Class mimicking the AthMessaging class from the offline software.
bool suggestEgammaMapKeys(const std::map< std::string, std::string > &triggerCombination, const std::string &version, std::map< std::string, std::string > &legsPerKey, xAOD::Type::ObjectType type)
bool readDataFile(const char *filename, std::vector< std::string > &contents)
bool importAll(const std::map< std::string, std::string > &overridenThresholds={})
std::string removeWhitespaces(const std::string &s)
std::map< std::size_t, std::string > & m_dictionary
void setNonMixed3LType(TrigDef &def, TriggerType flavourFlag)
TrigGlobalEfficiencyCorrectionTool * m_parent
TrigDef(TriggerType type=TT_UNKNOWN, std::size_t name=0, std::size_t leg0=0, std::size_t leg1=0, std::size_t leg2=0, std::size_t leg3=0)