ATLAS Offline Software
Loading...
Searching...
No Matches
TFCSExtrapolationState Class Reference

#include <TFCSExtrapolationState.h>

Inheritance diagram for TFCSExtrapolationState:
Collaboration diagram for TFCSExtrapolationState:

Public Types

enum  SUBPOS { SUBPOS_MID = 0 , SUBPOS_ENT = 1 , SUBPOS_EXT = 2 }

Public Member Functions

 TFCSExtrapolationState ()
void clear ()
void set_OK (int layer, int subpos, bool val=true)
void set_eta (int layer, int subpos, double val)
void set_phi (int layer, int subpos, double val)
void set_r (int layer, int subpos, double val)
void set_z (int layer, int subpos, double val)
void set_d (int layer, int subpos, double val)
void set_detaBorder (int layer, int subpos, double val)
void set_IDCaloBoundary_eta (double val)
void set_IDCaloBoundary_phi (double val)
void set_IDCaloBoundary_r (double val)
void set_IDCaloBoundary_z (double val)
bool OK (int layer, int subpos) const
double eta (int layer, int subpos) const
double phi (int layer, int subpos) const
double r (int layer, int subpos) const
double z (int layer, int subpos) const
double d (int layer, int subpos) const
double detaBorder (int layer, int subpos) const
double IDCaloBoundary_eta () const
double IDCaloBoundary_phi () const
double IDCaloBoundary_r () const
double IDCaloBoundary_z () const
double IDCaloBoundary_AngleEta () const
double IDCaloBoundary_Angle3D () const
void set_IDCaloBoundary_AngleEta (double val)
void set_IDCaloBoundary_Angle3D (double val)
void Print (Option_t *option="") const
bool msgLvl (const MSG::Level lvl) const
 Check whether the logging system is active at the provided verbosity level.
MsgStream & msg () const
 Return a stream for sending messages directly (no decoration)
MsgStream & msg (const MSG::Level lvl) const
 Return a decorated starting stream for sending messages.
MSG::Level level () const
 Retrieve output level.
virtual void setLevel (MSG::Level lvl)
 Update outputlevel.

Static Public Member Functions

static std::string startMsg (MSG::Level lvl, const std::string &file, int line)
 Make a message to decorate the start of logging.

Private Attributes

bool m_CaloOK [CaloCell_ID_FCS::MaxSample][3]
double m_etaCalo [CaloCell_ID_FCS::MaxSample][3]
double m_phiCalo [CaloCell_ID_FCS::MaxSample][3]
double m_rCalo [CaloCell_ID_FCS::MaxSample][3]
double m_zCalo [CaloCell_ID_FCS::MaxSample][3]
double m_dCalo [CaloCell_ID_FCS::MaxSample][3]
double m_distetaCaloBorder [CaloCell_ID_FCS::MaxSample][3]
double m_IDCaloBoundary_eta
double m_IDCaloBoundary_phi
double m_IDCaloBoundary_r
double m_IDCaloBoundary_z
double m_IDCaloBoundary_AngleEta
double m_IDCaloBoundary_Angle3D
std::string m_nm
 Message source name.

Static Private Attributes

static boost::thread_specific_ptr< MsgStream > m_msg_tls ATLAS_THREAD_SAFE
 Do not persistify!

Detailed Description

Definition at line 13 of file TFCSExtrapolationState.h.

Member Enumeration Documentation

◆ SUBPOS

Enumerator
SUBPOS_MID 
SUBPOS_ENT 
SUBPOS_EXT 

Definition at line 19 of file TFCSExtrapolationState.h.

19 {
20 SUBPOS_MID = 0,
21 SUBPOS_ENT = 1,
22 SUBPOS_EXT = 2
23 }; // MID=middle, ENT=entrance, EXT=exit of cal layer

Constructor & Destructor Documentation

◆ TFCSExtrapolationState()

TFCSExtrapolationState::TFCSExtrapolationState ( )

Definition at line 12 of file TFCSExtrapolationState.cxx.

Member Function Documentation

◆ clear()

void TFCSExtrapolationState::clear ( )

Definition at line 28 of file TFCSExtrapolationState.cxx.

28 {
29 for (int i = 0; i < CaloCell_ID_FCS::MaxSample; ++i) {
30 for (int j = 0; j < 3; ++j) {
31 m_CaloOK[i][j] = false;
32 m_etaCalo[i][j] = -999;
33 m_phiCalo[i][j] = -999;
34 m_rCalo[i][j] = 0;
35 m_zCalo[i][j] = 0;
36 m_dCalo[i][j] = 0;
37 m_distetaCaloBorder[i][j] = 0;
38 }
39 }
40
45
48}
double m_dCalo[CaloCell_ID_FCS::MaxSample][3]
double m_distetaCaloBorder[CaloCell_ID_FCS::MaxSample][3]
double m_rCalo[CaloCell_ID_FCS::MaxSample][3]
double m_phiCalo[CaloCell_ID_FCS::MaxSample][3]
double m_zCalo[CaloCell_ID_FCS::MaxSample][3]
bool m_CaloOK[CaloCell_ID_FCS::MaxSample][3]
double m_etaCalo[CaloCell_ID_FCS::MaxSample][3]

◆ d()

double TFCSExtrapolationState::d ( int layer,
int subpos ) const
inline

Definition at line 58 of file TFCSExtrapolationState.h.

58{ return m_dCalo[layer][subpos]; };
@ layer
Definition HitInfo.h:79

◆ detaBorder()

double TFCSExtrapolationState::detaBorder ( int layer,
int subpos ) const
inline

Definition at line 59 of file TFCSExtrapolationState.h.

59 {
60 return m_distetaCaloBorder[layer][subpos];
61 };

◆ eta()

double TFCSExtrapolationState::eta ( int layer,
int subpos ) const
inline

Definition at line 54 of file TFCSExtrapolationState.h.

54{ return m_etaCalo[layer][subpos]; };

◆ IDCaloBoundary_Angle3D()

double TFCSExtrapolationState::IDCaloBoundary_Angle3D ( ) const
inline

Definition at line 69 of file TFCSExtrapolationState.h.

69{ return m_IDCaloBoundary_Angle3D; };

◆ IDCaloBoundary_AngleEta()

double TFCSExtrapolationState::IDCaloBoundary_AngleEta ( ) const
inline

Definition at line 68 of file TFCSExtrapolationState.h.

◆ IDCaloBoundary_eta()

double TFCSExtrapolationState::IDCaloBoundary_eta ( ) const
inline

Definition at line 63 of file TFCSExtrapolationState.h.

63{ return m_IDCaloBoundary_eta; };

◆ IDCaloBoundary_phi()

double TFCSExtrapolationState::IDCaloBoundary_phi ( ) const
inline

Definition at line 64 of file TFCSExtrapolationState.h.

64{ return m_IDCaloBoundary_phi; };

◆ IDCaloBoundary_r()

double TFCSExtrapolationState::IDCaloBoundary_r ( ) const
inline

Definition at line 65 of file TFCSExtrapolationState.h.

65{ return m_IDCaloBoundary_r; };

◆ IDCaloBoundary_z()

double TFCSExtrapolationState::IDCaloBoundary_z ( ) const
inline

Definition at line 66 of file TFCSExtrapolationState.h.

66{ return m_IDCaloBoundary_z; };

◆ level()

MSG::Level ISF_FCS::MLogging::level ( ) const
inlineinherited

Retrieve output level.

Definition at line 201 of file MLogging.h.

201{ return msg().level(); }
MsgStream & msg() const
Return a stream for sending messages directly (no decoration)
Definition MLogging.h:231

◆ msg() [1/2]

MsgStream & ISF_FCS::MLogging::msg ( ) const
inlineinherited

Return a stream for sending messages directly (no decoration)

Definition at line 231 of file MLogging.h.

231 {
232 MsgStream *ms = m_msg_tls.get();
233 if (!ms) {
234 ms = new MsgStream(Athena::getMessageSvc(), m_nm);
235 m_msg_tls.reset(ms);
236 }
237 return *ms;
238}
std::string m_nm
Message source name.
Definition MLogging.h:211
IMessageSvc * getMessageSvc(bool quiet=false)

◆ msg() [2/2]

MsgStream & ISF_FCS::MLogging::msg ( const MSG::Level lvl) const
inlineinherited

Return a decorated starting stream for sending messages.

Definition at line 240 of file MLogging.h.

240 {
241 return msg() << lvl;
242}

◆ msgLvl()

bool ISF_FCS::MLogging::msgLvl ( const MSG::Level lvl) const
inlineinherited

Check whether the logging system is active at the provided verbosity level.

Definition at line 222 of file MLogging.h.

222 {
223 if (msg().level() <= lvl) {
224 msg() << lvl;
225 return true;
226 } else {
227 return false;
228 }
229}
MSG::Level level() const
Retrieve output level.
Definition MLogging.h:201

◆ OK()

bool TFCSExtrapolationState::OK ( int layer,
int subpos ) const
inline

Definition at line 53 of file TFCSExtrapolationState.h.

53{ return m_CaloOK[layer][subpos]; };

◆ phi()

double TFCSExtrapolationState::phi ( int layer,
int subpos ) const
inline

Definition at line 55 of file TFCSExtrapolationState.h.

55{ return m_phiCalo[layer][subpos]; };

◆ Print()

void TFCSExtrapolationState::Print ( Option_t * option = "") const

Definition at line 14 of file TFCSExtrapolationState.cxx.

14 {
15 ATH_MSG_INFO("IDCalo: eta="
17 << " r=" << m_IDCaloBoundary_r << " z=" << m_IDCaloBoundary_z);
18 for (int i = 0; i < CaloCell_ID_FCS::MaxSample; ++i) {
19 if (m_CaloOK[i][SUBPOS_MID]) {
20 ATH_MSG_INFO(" layer " << i << " MID eta=" << m_etaCalo[i][SUBPOS_MID]
21 << " phi=" << m_phiCalo[i][SUBPOS_MID]
22 << " r=" << m_rCalo[i][SUBPOS_MID]
23 << " z=" << m_zCalo[i][SUBPOS_MID]);
24 }
25 }
26}
#define ATH_MSG_INFO(x)

◆ r()

double TFCSExtrapolationState::r ( int layer,
int subpos ) const
inline

Definition at line 56 of file TFCSExtrapolationState.h.

56{ return m_rCalo[layer][subpos]; };

◆ set_d()

void TFCSExtrapolationState::set_d ( int layer,
int subpos,
double val )
inline

Definition at line 41 of file TFCSExtrapolationState.h.

◆ set_detaBorder()

void TFCSExtrapolationState::set_detaBorder ( int layer,
int subpos,
double val )
inline

Definition at line 44 of file TFCSExtrapolationState.h.

44 {
45 m_distetaCaloBorder[layer][subpos] = val;
46 };

◆ set_eta()

void TFCSExtrapolationState::set_eta ( int layer,
int subpos,
double val )
inline

Definition at line 29 of file TFCSExtrapolationState.h.

29 {
30 m_etaCalo[layer][subpos] = val;
31 };

◆ set_IDCaloBoundary_Angle3D()

void TFCSExtrapolationState::set_IDCaloBoundary_Angle3D ( double val)
inline

Definition at line 74 of file TFCSExtrapolationState.h.

74 {
76 };

◆ set_IDCaloBoundary_AngleEta()

void TFCSExtrapolationState::set_IDCaloBoundary_AngleEta ( double val)
inline

Definition at line 71 of file TFCSExtrapolationState.h.

71 {
73 };

◆ set_IDCaloBoundary_eta()

void TFCSExtrapolationState::set_IDCaloBoundary_eta ( double val)
inline

Definition at line 48 of file TFCSExtrapolationState.h.

◆ set_IDCaloBoundary_phi()

void TFCSExtrapolationState::set_IDCaloBoundary_phi ( double val)
inline

Definition at line 49 of file TFCSExtrapolationState.h.

◆ set_IDCaloBoundary_r()

void TFCSExtrapolationState::set_IDCaloBoundary_r ( double val)
inline

Definition at line 50 of file TFCSExtrapolationState.h.

◆ set_IDCaloBoundary_z()

void TFCSExtrapolationState::set_IDCaloBoundary_z ( double val)
inline

Definition at line 51 of file TFCSExtrapolationState.h.

◆ set_OK()

void TFCSExtrapolationState::set_OK ( int layer,
int subpos,
bool val = true )
inline

Definition at line 25 of file TFCSExtrapolationState.h.

25 {
26 m_CaloOK[layer][subpos] = val;
27 };

◆ set_phi()

void TFCSExtrapolationState::set_phi ( int layer,
int subpos,
double val )
inline

Definition at line 32 of file TFCSExtrapolationState.h.

32 {
33 m_phiCalo[layer][subpos] = val;
34 };

◆ set_r()

void TFCSExtrapolationState::set_r ( int layer,
int subpos,
double val )
inline

Definition at line 35 of file TFCSExtrapolationState.h.

35 {
36 m_rCalo[layer][subpos] = val;
37 };

◆ set_z()

void TFCSExtrapolationState::set_z ( int layer,
int subpos,
double val )
inline

Definition at line 38 of file TFCSExtrapolationState.h.

38 {
39 m_zCalo[layer][subpos] = val;
40 };

◆ setLevel()

void ISF_FCS::MLogging::setLevel ( MSG::Level lvl)
virtualinherited

Update outputlevel.

Definition at line 105 of file MLogging.cxx.

105 {
106 lvl = (lvl >= MSG::NUM_LEVELS) ? MSG::ALWAYS
107 : (lvl < MSG::NIL) ? MSG::NIL
108 : lvl;
109 msg().setLevel(lvl);
110}

◆ startMsg()

std::string ISF_FCS::MLogging::startMsg ( MSG::Level lvl,
const std::string & file,
int line )
staticinherited

Make a message to decorate the start of logging.

Print a message for the start of logging.

Definition at line 116 of file MLogging.cxx.

116 {
117 int col1_len = 20;
118 int col2_len = 5;
119 int col3_len = 10;
120 auto last_slash = file.find_last_of('/');
121 int path_len = last_slash == std::string::npos ? 0 : last_slash;
122 int trim_point = path_len;
123 int total_len = file.length();
124 if (total_len - path_len > col1_len)
125 trim_point = total_len - col1_len;
126 std::string trimmed_name = file.substr(trim_point);
127 const char *LevelNames[MSG::NUM_LEVELS] = {
128 "NIL", "VERBOSE", "DEBUG", "INFO", "WARNING", "ERROR", "FATAL", "ALWAYS"};
129 std::string level = LevelNames[lvl];
130 std::string level_string = std::string("(") + level + ") ";
131 std::stringstream output;
132 output << std::setw(col1_len) << std::right << trimmed_name << ":"
133 << std::setw(col2_len) << std::left << line << std::setw(col3_len)
134 << std::right << level_string;
135 return output.str();
136}
output
Definition merge.py:16
TFile * file

◆ z()

double TFCSExtrapolationState::z ( int layer,
int subpos ) const
inline

Definition at line 57 of file TFCSExtrapolationState.h.

57{ return m_zCalo[layer][subpos]; };

Member Data Documentation

◆ ATLAS_THREAD_SAFE

boost::thread_specific_ptr<MsgStream> m_msg_tls ISF_FCS::MLogging::ATLAS_THREAD_SAFE
inlinestaticprivateinherited

Do not persistify!

MsgStream instance (a std::cout like with print-out levels)

Definition at line 215 of file MLogging.h.

◆ m_CaloOK

bool TFCSExtrapolationState::m_CaloOK[CaloCell_ID_FCS::MaxSample][3]
private

Definition at line 81 of file TFCSExtrapolationState.h.

◆ m_dCalo

double TFCSExtrapolationState::m_dCalo[CaloCell_ID_FCS::MaxSample][3]
private

Definition at line 86 of file TFCSExtrapolationState.h.

◆ m_distetaCaloBorder

double TFCSExtrapolationState::m_distetaCaloBorder[CaloCell_ID_FCS::MaxSample][3]
private

Definition at line 87 of file TFCSExtrapolationState.h.

◆ m_etaCalo

double TFCSExtrapolationState::m_etaCalo[CaloCell_ID_FCS::MaxSample][3]
private

Definition at line 82 of file TFCSExtrapolationState.h.

◆ m_IDCaloBoundary_Angle3D

double TFCSExtrapolationState::m_IDCaloBoundary_Angle3D
private

Definition at line 95 of file TFCSExtrapolationState.h.

◆ m_IDCaloBoundary_AngleEta

double TFCSExtrapolationState::m_IDCaloBoundary_AngleEta
private

Definition at line 94 of file TFCSExtrapolationState.h.

◆ m_IDCaloBoundary_eta

double TFCSExtrapolationState::m_IDCaloBoundary_eta
private

Definition at line 89 of file TFCSExtrapolationState.h.

◆ m_IDCaloBoundary_phi

double TFCSExtrapolationState::m_IDCaloBoundary_phi
private

Definition at line 90 of file TFCSExtrapolationState.h.

◆ m_IDCaloBoundary_r

double TFCSExtrapolationState::m_IDCaloBoundary_r
private

Definition at line 91 of file TFCSExtrapolationState.h.

◆ m_IDCaloBoundary_z

double TFCSExtrapolationState::m_IDCaloBoundary_z
private

Definition at line 92 of file TFCSExtrapolationState.h.

◆ m_nm

std::string ISF_FCS::MLogging::m_nm
privateinherited

Message source name.

Definition at line 211 of file MLogging.h.

◆ m_phiCalo

double TFCSExtrapolationState::m_phiCalo[CaloCell_ID_FCS::MaxSample][3]
private

Definition at line 83 of file TFCSExtrapolationState.h.

◆ m_rCalo

double TFCSExtrapolationState::m_rCalo[CaloCell_ID_FCS::MaxSample][3]
private

Definition at line 84 of file TFCSExtrapolationState.h.

◆ m_zCalo

double TFCSExtrapolationState::m_zCalo[CaloCell_ID_FCS::MaxSample][3]
private

Definition at line 85 of file TFCSExtrapolationState.h.


The documentation for this class was generated from the following files: