ATLAS Offline Software
Loading...
Searching...
No Matches
cTauMultiplicity.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4// cTauMultiplicity.h
5// TopoCore
6
7#ifndef __TopoCore__cTauMultiplicity__
8#define __TopoCore__cTauMultiplicity__
9
10
14
15// Include xAOD headers here
16#ifndef TRIGCONF_STANDALONE
19#endif
20
21#include <vector>
22#include <map>
23
24class TH2;
25
26namespace TCS {
27
29 public:
30 cTauMultiplicity(const std::string & name);
31 virtual ~cTauMultiplicity() = default;
32
33 virtual StatusCode initialize() override;
34
35 virtual StatusCode processBitCorrect(const TCS::InputTOBArray& input, Count& count) override final;
36
37 virtual StatusCode process(const TCS::InputTOBArray& input, Count& count ) override final;
38
39 #ifndef TRIGCONF_STANDALONE
40 // Functions for HLT seeding
41 // Returns index of jtau matched to etau
42 static size_t cTauMatching(const xAOD::eFexTauRoI& eTau, const xAOD::jFexTauRoIContainer& jTauRoIs);
43 // Returns true when a matching is found
44 static bool cTauMatching(const xAOD::eFexTauRoI& eTau, const xAOD::jFexTauRoI& jTau);
45 // Check cTAU isolation
46 static bool checkIsolationWP(const xAOD::eFexTauRoI& eTau, const xAOD::jFexTauRoI& jTau, const TrigConf::L1Threshold_cTAU& thr);
47 // Check eTAU rCore/BDT and rHad WPs
48 static bool checkeTAUWP(const xAOD::eFexTauRoI& eTau, const TrigConf::L1Threshold_cTAU& thr);
49 #endif
50
51 private:
53 std::shared_ptr<TrigConf::L1ThrExtraInfo_cTAU> m_extraInfo;
54
55 bool checkIsolationWP(const TCS::cTauTOB* etauCand, const TCS::cTauTOB* jtauCand) const;
56 bool checkeTAUWP(const TCS::cTauTOB* etauCand) const;
57
58 // Matching function for L1Topo
59 bool cTauMatching(const TCS::cTauTOB* etauCand, const TCS::cTauTOB* jtauCand) const;
60
61 // cTau monitoring histograms
62 std::vector<std::string> m_histcTauEt;
63 std::vector<std::string> m_histcTauPhiEta;
64 std::vector<std::string> m_histcTauEtEta;
65 std::vector<std::string> m_histcTauIsoFraction;
66 std::vector<std::string> m_histcTauIsoMatchedPass;
67
69 };
70
71}
72
73#endif
const std::string & name() const
CountingAlg(const std::string &name)
Definition CountingAlg.h:28
virtual ~cTauMultiplicity()=default
static size_t cTauMatching(const xAOD::eFexTauRoI &eTau, const xAOD::jFexTauRoIContainer &jTauRoIs)
static bool checkeTAUWP(const xAOD::eFexTauRoI &eTau, const TrigConf::L1Threshold_cTAU &thr)
static bool checkIsolationWP(const xAOD::eFexTauRoI &eTau, const xAOD::jFexTauRoI &jTau, const TrigConf::L1Threshold_cTAU &thr)
std::vector< std::string > m_histcTauPhiEta
cTauMultiplicity(const std::string &name)
std::shared_ptr< TrigConf::L1ThrExtraInfo_cTAU > m_extraInfo
std::vector< std::string > m_histcTauEtEta
std::vector< std::string > m_histcTauEt
virtual StatusCode processBitCorrect(const TCS::InputTOBArray &input, Count &count) override final
std::vector< std::string > m_histcTauIsoMatchedPass
std::vector< std::string > m_histcTauIsoFraction
TrigConf::Selection::WP WP
const TrigConf::L1Threshold_cTAU * m_threshold
virtual StatusCode initialize() override
const std::string process
int count(std::string s, const std::string &regx)
count how many occurances of a regx are in a string
Definition hcg.cxx:146
jFexTauRoIContainer_v1 jFexTauRoIContainer
jFexTauRoI_v1 jFexTauRoI
Define the latest version of the jFexSRJetRoI class.
Definition jFexTauRoI.h:13
eFexTauRoI_v1 eFexTauRoI
Define the latest version of the eFexTauRoI class.
Definition eFexTauRoI.h:16