ATLAS Offline Software
TrigTauClusterDetails.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRIGTAUCLUSTERDETAILS_H
6 #define TRIGTAUCLUSTERDETAILS_H
7 
8 /*******************************************************
9 
10 NAME: TrigTauClusterDetails.h
11 PACKAGE: Trigger/TrigEvent/TrigCaloEvent
12 AUTHOR: Denis M.P. Casado
13 
14 PURPOSE: Keep Details of TrigTauCluster
15 DATE: January 14th, 2009
16 
17 ******************************************************/
18 // includes section
19 #include <math.h>
20 // for printing out
21 #include <iostream>
22 #include "GaudiKernel/MsgStream.h"
23 #include "AthenaKernel/CLASS_DEF.h"
24 
26 const int NUMEMSAMP = 4;
28 const int NUMHADSAMP = 3;
29 
31 
32 public:
38  TrigTauClusterDetails ( const TrigTauClusterDetails* trigemcluster ) ;
39 
40  // Print out variables for Debug
42  void print ( void ) const;
44  void print ( MsgStream& log ) const;
45 
47  inline void setEMRadius ( int samp, float emradius )
48  { m_EMRadius[samp] = emradius; };
50  inline void setHADRadius ( int samp, float hadradius )
51  { m_HADRadius[samp] = hadradius; };
53  inline void setEMenergyWidth ( int samp, float stripwidth )
54  { m_EMenergyWidth[samp] = stripwidth; };
56  inline void setHADenergyWidth ( int samp, float stripwidth )
57  { m_HADenergyWidth[samp] = stripwidth; };
58 
60  inline void setEMenergyWide (int samp, float e )
61  { m_EMenergyWide[samp] = e ; };
63  inline void setEMenergyMedium (int samp, float e )
64  { m_EMenergyMedium[samp] = e ; };
66  inline void setEMenergyNarrow (int samp, float e )
67  { m_EMenergyNarrow[samp] = e ; };
69  inline void setHADenergyWide (int samp, float e )
70  { m_HADenergyWide[samp] = e ; };
72  inline void setHADenergyMedium (int samp, float e )
73  { m_HADenergyMedium[samp] = e ; };
75  inline void setHADenergyNarrow (int samp, float e )
76  { m_HADenergyNarrow[samp] = e ; };
77 
78  // get internal variables methods
80  inline float EMRadius (int samp ) const { return m_EMRadius[samp] ; };
82  inline float HADRadius (int samp ) const { return m_HADRadius[samp] ; };
84  inline float EMenergyWidth (int samp ) const
85  { return m_EMenergyWidth[samp] ; };
87  inline float HADenergyWidth (int samp ) const
88  { return m_HADenergyWidth[samp] ; };
89 
91  inline float EMenergyWide(int samp) const {return m_EMenergyWide[samp];};
93  inline float EMenergyMedium(int samp) const {return m_EMenergyMedium[samp];};
95  inline float EMenergyNarrow(int samp) const {return m_EMenergyNarrow[samp];};
96 
98  inline float HADenergyWide(int samp) const {return m_HADenergyWide[samp];};
100  inline float HADenergyMedium(int samp) const {return m_HADenergyMedium[samp];};
102  inline float HADenergyNarrow(int samp) const {return m_HADenergyNarrow[samp];};
103 
104 
105 // internal variables must be private
106 private:
115 
122 
129 
130 };
131 
133 std::string str( const TrigTauClusterDetails& tau );
134 
136 MsgStream& operator<< ( MsgStream& m, const TrigTauClusterDetails& tau );
137 
139 bool operator== ( const TrigTauClusterDetails& left, const TrigTauClusterDetails& right );
141 inline bool operator!= ( const TrigTauClusterDetails& left, const TrigTauClusterDetails& right ) {
142  return !( left == right );
143 }
144 
146 void diff( const TrigTauClusterDetails& left, const TrigTauClusterDetails& right,
147  std::map< std::string, double >& varChange );
148 
149 
150 // CLIDSvc is already loaded in base class
151 CLASS_DEF ( TrigTauClusterDetails, 56592609, 1)
152 
153 #endif
TrigTauClusterDetails::EMRadius
float EMRadius(int samp) const
get EM Radius per sampling
Definition: TrigTauClusterDetails.h:80
TrigTauClusterDetails::m_HADenergyWide
float m_HADenergyWide[NUMHADSAMP]
HAD Energy in the normalization region (0.3x0.3)
Definition: TrigTauClusterDetails.h:124
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
TrigTauClusterDetails::setEMenergyWide
void setEMenergyWide(int samp, float e)
set EM Energy in the mormalization region (0.3x0.3)
Definition: TrigTauClusterDetails.h:60
diff
void diff(const TrigTauClusterDetails &left, const TrigTauClusterDetails &right, std::map< std::string, double > &varChange)
Comparison with feedback.
Definition: TrigTauClusterDetails.cxx:160
operator!=
bool operator!=(const TrigTauClusterDetails &left, const TrigTauClusterDetails &right)
Operator comparing two TrigTauCluster objects for inequality.
Definition: TrigTauClusterDetails.h:141
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
TrigTauClusterDetails::setHADenergyNarrow
void setHADenergyNarrow(int samp, float e)
set HAD Energy in the narrow region (0.1x0.1)
Definition: TrigTauClusterDetails.h:75
TrigTauClusterDetails::HADenergyWide
float HADenergyWide(int samp) const
get HAD Energy in the normalization region (0.3x0.3)
Definition: TrigTauClusterDetails.h:98
TrigTauClusterDetails::EMenergyWide
float EMenergyWide(int samp) const
get EM Energy in the mormalization region (0.3x0.3)
Definition: TrigTauClusterDetails.h:91
TrigTauClusterDetails::EMenergyNarrow
float EMenergyNarrow(int samp) const
get EM Energy in the narrow region (0.1x0.1)
Definition: TrigTauClusterDetails.h:95
TrigTauClusterDetails::m_HADRadius
float m_HADRadius[NUMHADSAMP]
HAD Radius per sampling.
Definition: TrigTauClusterDetails.h:110
TrigTauClusterDetails::~TrigTauClusterDetails
~TrigTauClusterDetails()
Destructor
Definition: TrigTauClusterDetails.cxx:39
TrigTauClusterDetails::m_HADenergyMedium
float m_HADenergyMedium[NUMHADSAMP]
HAD Energy in the wide region (0.2x0.2)
Definition: TrigTauClusterDetails.h:126
TrigTauClusterDetails::m_EMRadius
float m_EMRadius[NUMEMSAMP]
EM Radius per sampling.
Definition: TrigTauClusterDetails.h:102
TrigTauClusterDetails::m_EMenergyWidth
float m_EMenergyWidth[NUMEMSAMP]
Width in EM samplings.
Definition: TrigTauClusterDetails.h:112
TrigTauClusterDetails::setHADenergyMedium
void setHADenergyMedium(int samp, float e)
set HAD Energy in the wide region (0.2x0.2)
Definition: TrigTauClusterDetails.h:72
TrigTauClusterDetails::setHADenergyWidth
void setHADenergyWidth(int samp, float stripwidth)
set Width in HAD samplings
Definition: TrigTauClusterDetails.h:56
TrigTauClusterDetails::m_HADenergyWidth
float m_HADenergyWidth[NUMHADSAMP]
Width in HAD samplings.
Definition: TrigTauClusterDetails.h:114
TrigTauClusterDetails::HADenergyMedium
float HADenergyMedium(int samp) const
get HAD Energy in the wide region (0.2x0.2)
Definition: TrigTauClusterDetails.h:100
operator==
bool operator==(const TrigTauClusterDetails &left, const TrigTauClusterDetails &right)
Operator comparing two TrigTauCluster objects for equality.
Definition: TrigTauClusterDetails.cxx:97
str
std::string str(const TrigTauClusterDetails &tau)
Helper function for printing the object.
Definition: TrigTauClusterDetails.cxx:121
NUMHADSAMP
const int NUMHADSAMP
Number of HAD Samples.
Definition: TrigTauClusterDetails.h:28
TrigTauClusterDetails::print
void print(void) const
Prints out cluster variables to std::cout
Definition: TrigTauClusterDetails.cxx:65
TrigTauClusterDetails::m_EMenergyNarrow
float m_EMenergyNarrow[NUMEMSAMP]
EM Energy in the narrow region (0.1x0.1)
Definition: TrigTauClusterDetails.h:121
TrigTauClusterDetails::setHADRadius
void setHADRadius(int samp, float hadradius)
set HAD Radius per sampling
Definition: TrigTauClusterDetails.h:50
TrigTauClusterDetails::m_EMenergyWide
float m_EMenergyWide[NUMEMSAMP]
EM Energy in the mormalization region (0.3x0.3)
Definition: TrigTauClusterDetails.h:117
TrigTauClusterDetails::HADenergyWidth
float HADenergyWidth(int samp) const
get Width in HAD samplings
Definition: TrigTauClusterDetails.h:87
TrigTauClusterDetails::HADRadius
float HADRadius(int samp) const
get HAD Radius per sampling
Definition: TrigTauClusterDetails.h:82
TrigTauClusterDetails::setEMenergyWidth
void setEMenergyWidth(int samp, float stripwidth)
set Width in EM samplings
Definition: TrigTauClusterDetails.h:53
TrigTauClusterDetails::setEMenergyNarrow
void setEMenergyNarrow(int samp, float e)
set EM Energy in the narrow region (0.1x0.1)
Definition: TrigTauClusterDetails.h:66
TrigTauClusterDetails::m_EMenergyMedium
float m_EMenergyMedium[NUMEMSAMP]
EM Energy in the wide region (0.2x0.2)
Definition: TrigTauClusterDetails.h:119
TrigTauClusterDetails::EMenergyWidth
float EMenergyWidth(int samp) const
get Width in EM samplings
Definition: TrigTauClusterDetails.h:84
NUMEMSAMP
const int NUMEMSAMP
Number of EM Samples.
Definition: TrigTauClusterDetails.h:26
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
TrigTauClusterDetails::TrigTauClusterDetails
TrigTauClusterDetails()
Constructor, please note the default values
Definition: TrigTauClusterDetails.cxx:18
TrigTauClusterDetails
Definition: TrigTauClusterDetails.h:30
TrigTauClusterDetails::setEMRadius
void setEMRadius(int samp, float emradius)
set EM Radius per sampling
Definition: TrigTauClusterDetails.h:47
TrigTauClusterDetails::HADenergyNarrow
float HADenergyNarrow(int samp) const
get HAD Energy in the narrow region (0.1x0.1)
Definition: TrigTauClusterDetails.h:102
TrigTauClusterDetails::setEMenergyMedium
void setEMenergyMedium(int samp, float e)
set EM Energy in the wide region (0.2x0.2)
Definition: TrigTauClusterDetails.h:63
TrigTauClusterDetails::EMenergyMedium
float EMenergyMedium(int samp) const
get EM Energy in the wide region (0.2x0.2)
Definition: TrigTauClusterDetails.h:93
CLASS_DEF.h
macros to associate a CLID to a type
operator<<
MsgStream & operator<<(MsgStream &m, const TrigTauClusterDetails &tau)
Helper operator for printing the object.
Definition: TrigTauClusterDetails.cxx:154
TrigTauClusterDetails::m_HADenergyNarrow
float m_HADenergyNarrow[NUMHADSAMP]
HAD Energy in the narrow region (0.1x0.1)
Definition: TrigTauClusterDetails.h:128
TrigTauClusterDetails::setHADenergyWide
void setHADenergyWide(int samp, float e)
set HAD Energy in the mormalization region (0.3x0.3)
Definition: TrigTauClusterDetails.h:69