ATLAS Offline Software
Loading...
Searching...
No Matches
HI Namespace Reference

Namespaces

namespace  Sel
namespace  SubCalo
namespace  TowerBins

Classes

struct  AddEventShape
struct  ByEtaRange
struct  ByLayer
struct  ByLayers
struct  ByLayersN
struct  ByLayersP
struct  ByLayersWithEtaRange
class  HIEventFilterAlgRun3
class  HIEventSelectionTool
class  HIEventSelectionToolRun3
class  HIPileupTool
class  HIVertexSelectionTool
class  IHIEventSelectionTool
class  IHIEventSelectionToolRun3
class  IHIPileupTool
class  IHIVertexSelectionTool

Enumerations

enum  BinningScheme { TOWER = 100 , COMPACT = 562 }
enum class  IonDataType : uint8_t {
  PbPb2015 = 0 , PbPb2018 , PbPb2023 , PbPb2024_Shadowing ,
  PbPb2024_NoShadowing , OO2025 , NeNe2025 , PbPb2025 ,
  PbPb2026
}
enum class  PileupVariation : uint8_t { Nominal = 0 , Tight , Loose }
enum class  SelectionMask : unsigned int {
  NoEventError = bit(0) , PUFCalVsNTrackLoose = bit(1) , PUFCalVsNTrackNominal = bit(2) , PUFCalVsNTrackTight = bit(3) ,
  PUFCalVsNTrackAny , PUFCalVsZDCLoose = bit(4) , PUFCalVsZDCNominal = bit(5) , PUFCalVsZDCTight = bit(6) ,
  PUFCalVsZDCAny = PUFCalVsZDCLoose | PUFCalVsZDCNominal | PUFCalVsZDCTight , PUOOSingleVertexNominal = bit(7) , PBDefault = NoEventError | PUFCalVsNTrackLoose | PUFCalVsZDCLoose , OODefault = NoEventError | PUOOSingleVertexNominal | PUFCalVsNTrackLoose
}

Functions

void fillSummary (const xAOD::HIEventShapeContainer *in, xAOD::HIEventShape *out, const std::function< bool(const xAOD::HIEventShape *)> &incFunction, const std::function< void(xAOD::HIEventShape *, const xAOD::HIEventShape *)> &addFunction)
void fillSummary (const xAOD::HIEventShapeContainer *in, xAOD::HIEventShape *out, const std::function< bool(const xAOD::HIEventShape *)> &incFunction)
void fillSummary (const xAOD::HIEventShapeContainer *in, xAOD::HIEventShape *out, const std::set< unsigned int > &indices, const std::function< void(xAOD::HIEventShape *, const xAOD::HIEventShape *)> &addFunction)
float getModulation (const xAOD::HIEventShape *es, const std::vector< unsigned int > &harmonics, float phi)
int setHarmonics (std::vector< unsigned int > &in)
std::string toString (IonDataType)
std::string toString (PileupVariation)
constexpr unsigned int bit (int n)
std::string toString (SelectionMask)

Variables

constexpr AddEventShape AddES =AddEventShape()

Enumeration Type Documentation

◆ BinningScheme

Enumerator
TOWER 
COMPACT 

Definition at line 16 of file HIEventDefs.h.

16{ TOWER = 100, COMPACT = 562 };
@ COMPACT
Definition HIEventDefs.h:16
@ TOWER
Definition HIEventDefs.h:16

◆ IonDataType

enum class HI::IonDataType : uint8_t
strong
Enumerator
PbPb2015 
PbPb2018 
PbPb2023 
PbPb2024_Shadowing 
PbPb2024_NoShadowing 
OO2025 
NeNe2025 
PbPb2025 
PbPb2026 

Definition at line 16 of file IHIEventSelectionToolRun3.h.

◆ PileupVariation

enum class HI::PileupVariation : uint8_t
strong
Enumerator
Nominal 
Tight 
Loose 

Definition at line 30 of file IHIEventSelectionToolRun3.h.

◆ SelectionMask

enum class HI::SelectionMask : unsigned int
strong
Enumerator
NoEventError 
PUFCalVsNTrackLoose 
PUFCalVsNTrackNominal 
PUFCalVsNTrackTight 
PUFCalVsNTrackAny 
PUFCalVsZDCLoose 
PUFCalVsZDCNominal 
PUFCalVsZDCTight 
PUFCalVsZDCAny 
PUOOSingleVertexNominal 
PBDefault 
OODefault 

Definition at line 39 of file IHIEventSelectionToolRun3.h.

39 : unsigned int {
40 NoEventError = bit(0),
51 // default cuts for PB
53 // default cuts for OO
55};
constexpr unsigned int bit(int n)

Function Documentation

◆ bit()

unsigned int HI::bit ( int n)
constexpr

Definition at line 34 of file IHIEventSelectionToolRun3.h.

34 {
35 return 1 << n;
36}

◆ fillSummary() [1/3]

void HI::fillSummary ( const xAOD::HIEventShapeContainer * in,
xAOD::HIEventShape * out,
const std::function< bool(const xAOD::HIEventShape *)> & incFunction )

Definition at line 71 of file HIEventShapeSummaryUtils.cxx.

73 {
74 for(const auto sItr : *in )
75 {
76 if(incFunction(sItr)) HI::AddES(out,sItr);
77 }
78 }
constexpr AddEventShape AddES

◆ fillSummary() [2/3]

void HI::fillSummary ( const xAOD::HIEventShapeContainer * in,
xAOD::HIEventShape * out,
const std::function< bool(const xAOD::HIEventShape *)> & incFunction,
const std::function< void(xAOD::HIEventShape *, const xAOD::HIEventShape *)> & addFunction )

Definition at line 53 of file HIEventShapeSummaryUtils.cxx.

56 {
57 for(const auto sItr : *in )
58 {
59 if(incFunction(sItr)) addFunction(out,sItr);
60 }
61 }

◆ fillSummary() [3/3]

void HI::fillSummary ( const xAOD::HIEventShapeContainer * in,
xAOD::HIEventShape * out,
const std::set< unsigned int > & indices,
const std::function< void(xAOD::HIEventShape *, const xAOD::HIEventShape *)> & addFunction )

Definition at line 63 of file HIEventShapeSummaryUtils.cxx.

66 {
67 for(const auto i : indices ) addFunction(out,in->at(i));
68 }
const T * at(size_type n) const
Access an element, as an rvalue.

◆ getModulation()

float HI::getModulation ( const xAOD::HIEventShape * es,
const std::vector< unsigned int > & harmonics,
float phi )

Definition at line 80 of file HIEventShapeSummaryUtils.cxx.

81 {
82 float mod=1;
83 for(const auto itr : harmonics)
84 {
86 mod+=sc.apply(es->etSin().at(itr-1),es->etCos().at(itr-1));
87 }
88 return mod;
89 }
Scalar phi() const
phi method
static Double_t sc
const std::vector< float > & etSin() const
sine (x) part of the harmonic modulation strength
const std::vector< float > & etCos() const
cosine (y) part of the harmonic modulation strength Following convention is used: index 0 is first ha...
Helper to simultaneously calculate sin and cos of the same angle.
Definition sincos.h:39

◆ setHarmonics()

int HI::setHarmonics ( std::vector< unsigned int > & in)

Definition at line 90 of file HIEventShapeSummaryUtils.cxx.

91 {
92 for(unsigned int i=0; i<in.size(); i++)
93 {
94 int harmonic=in[i]-1; //v_0=1 by construction
95 if(harmonic < 0) return i;
96 in[i]=harmonic;
97 }
98 return -1;
99 }

◆ toString() [1/3]

std::string HI::toString ( HI::IonDataType when)

Definition at line 6 of file HIEventSelectionToolRun3.cxx.

6 {
7#define ENUMDEF(_N) \
8 case HI::IonDataType::_N: \
9 return #_N;
10 switch (when) {
20 default:
21 return std::string("UNKNOWN HI DATA TAKING PERIOD ") +
22 std::to_string(static_cast<uint8_t>(when));
23 }
24#undef ENUMDEF
25}
#define ENUMDEF(_N)

◆ toString() [2/3]

std::string HI::toString ( HI::PileupVariation variation)

Definition at line 27 of file HIEventSelectionToolRun3.cxx.

27 {
28#define ENUMDEF(_N) \
29 case HI::PileupVariation::_N: \
30 return #_N;
31
32 switch (variation) {
36 default:
37 return std::string("UNKNOWN PU VARIATION ") +
38 std::to_string(static_cast<uint8_t>(variation));
39 }
40#undef ENUMDEF
41}

◆ toString() [3/3]

std::string HI::toString ( SelectionMask m)

Definition at line 43 of file HIEventSelectionToolRun3.cxx.

43 {
44#define ENUMDEF(_N) \
45 case HI::SelectionMask::_N: \
46 return #_N;
47
48 switch (m) {
57 default:
58 return std::string("UNKNOWN mask bit ") +
59 std::to_string(static_cast<unsigned int>(m));
60 }
61#undef ENUMDEF
62}

Variable Documentation

◆ AddES

AddEventShape HI::AddES =AddEventShape()
constexpr

Definition at line 42 of file HIEventShapeSummaryUtils.h.