#include <TilePulseShape.h>
|
| | TilePulseShape (IMessageSvc *msgSvc, const std::string &name) |
| | TilePulseShape (IMessageSvc *msgSvc, const std::string &name, const TString &fileName) |
| | TilePulseShape (IMessageSvc *msgSvc, const std::string &name, const std::vector< double > &shapevec) |
| virtual | ~TilePulseShape () |
| void | loadPulseShape (const TString &fileName) |
| void | setPulseShape (const std::vector< double > &shapevec) |
| TGraph * | getGraph (double t0=0., double ped=0., double amp=1.) |
| double | eval (double x, bool useSpline=true, bool useUndershoot=false) |
| void | resetDeformation () |
| int | scalePulse (double leftSF=1., double rightSF=1.) |
| bool | msgLvl (const MSG::Level lvl) const |
| | Test the output level.
|
| MsgStream & | msg () const |
| | The standard message stream.
|
| MsgStream & | msg (const MSG::Level lvl) const |
| | The standard message stream.
|
| void | setLevel (MSG::Level lvl) |
| | Change the current logging level.
|
|
| void | initMessaging () const |
| | Initialize our message level and MessageSvc.
|
|
| TGraph * | m_pulseShape {nullptr} |
| TGraph * | m_deformedShape {nullptr} |
| TSpline * | m_deformedSpline {nullptr} |
| std::string | m_nm |
| | Message source name.
|
| boost::thread_specific_ptr< MsgStream > | m_msg_tls |
| | MsgStream instance (a std::cout like with print-out levels)
|
| std::atomic< IMessageSvc * > | m_imsg { nullptr } |
| | MessageSvc pointer.
|
| std::atomic< MSG::Level > | m_lvl { MSG::NIL } |
| | Current logging level.
|
| std::atomic_flag m_initialized | ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
| | Messaging initialized (initMessaging)
|
Definition at line 17 of file TilePulseShape.h.
◆ TilePulseShape() [1/3]
| TilePulseShape::TilePulseShape |
( |
IMessageSvc * | msgSvc, |
|
|
const std::string & | name ) |
◆ TilePulseShape() [2/3]
| TilePulseShape::TilePulseShape |
( |
IMessageSvc * | msgSvc, |
|
|
const std::string & | name, |
|
|
const TString & | fileName ) |
Definition at line 25 of file TilePulseShape.cxx.
27{
29}
void loadPulseShape(const TString &fileName)
◆ TilePulseShape() [3/3]
| TilePulseShape::TilePulseShape |
( |
IMessageSvc * | msgSvc, |
|
|
const std::string & | name, |
|
|
const std::vector< double > & | shapevec ) |
Definition at line 32 of file TilePulseShape.cxx.
34{
36}
void setPulseShape(const std::vector< double > &shapevec)
◆ ~TilePulseShape()
| TilePulseShape::~TilePulseShape |
( |
| ) |
|
|
virtual |
◆ eval()
| double TilePulseShape::eval |
( |
double | x, |
|
|
bool | useSpline = true, |
|
|
bool | useUndershoot = false ) |
Definition at line 75 of file TilePulseShape.cxx.
76{
77
78
81 return 0.;
82 }
83
84
85
86
90 if(idx<0){
91
92
95 }
96 else if(idx>=n-1){
97
98
99 if(useUndershoot){
100 y = 0.00196 * (1 -
exp(-
x / 20664.59) ) - 0.00217;
101 }
102 else{
104 ATH_MSG_DEBUG(
"Right out of bounds. Replacing y = " << (
m_deformedShape->GetY())[0] <<
" with y = 0. (idx = " << idx <<
", x = " <<
x <<
")");
105 }
106 }
107 else{
108
114
116
117 if(useSpline)
y = ySpline;
119 }
120
122}
◆ getGraph()
| TGraph * TilePulseShape::getGraph |
( |
double | t0 = 0., |
|
|
double | ped = 0., |
|
|
double | amp = 1. ) |
◆ initMessaging()
| void AthMessaging::initMessaging |
( |
| ) |
const |
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
40{
42
43 if (
m_lvl == MSG::NIL) {
47 }
48}
std::string m_nm
Message source name.
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
std::atomic< MSG::Level > m_lvl
Current logging level.
IMessageSvc * getMessageSvc(bool quiet=false)
◆ loadPulseShape()
| void TilePulseShape::loadPulseShape |
( |
const TString & | fileName | ) |
|
Definition at line 47 of file TilePulseShape.cxx.
48{
53 throw GaudiException(std::string(
"could not load pulseshape from file: ") +
fileName.Data(),
54 "TilePulseShape", StatusCode::FAILURE);
55 }
else ATH_MSG_INFO(
"Loaded pulseshape from file: " << fileName);
57}
◆ msg() [1/2]
| MsgStream & AthMessaging::msg |
( |
| ) |
const |
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 163 of file AthMessaging.h.
164{
166 if (!ms) {
170 }
171
174}
boost::thread_specific_ptr< MsgStream > m_msg_tls
MsgStream instance (a std::cout like with print-out levels)
void initMessaging() const
Initialize our message level and MessageSvc.
◆ msg() [2/2]
| MsgStream & AthMessaging::msg |
( |
const MSG::Level | lvl | ) |
const |
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 178 of file AthMessaging.h.
179{
return msg() << lvl; }
MsgStream & msg() const
The standard message stream.
◆ msgLvl()
| bool AthMessaging::msgLvl |
( |
const MSG::Level | lvl | ) |
const |
|
inlineinherited |
Test the output level.
- Parameters
-
| lvl | The message level to test against |
- Returns
- boolean Indicating if messages at given level will be printed
- Return values
-
| true | Messages at level "lvl" will be printed |
Definition at line 151 of file AthMessaging.h.
152{
155 return true;
156 } else {
157 return false;
158 }
159}
◆ resetDeformation()
| void TilePulseShape::resetDeformation |
( |
| ) |
|
◆ scalePulse()
| int TilePulseShape::scalePulse |
( |
double | leftSF = 1., |
|
|
double | rightSF = 1. ) |
Definition at line 138 of file TilePulseShape.cxx.
139{
140
143 ATH_MSG_WARNING(
"Attempted pulse shape scaling before loading pulse shape");
144 return 1;
145 } else {
147
152 else if(
x>0.)
x*=rightSF;
154 }
155
158 return 0;
159 }
160
161}
#define ATH_MSG_WARNING(x)
◆ setLevel()
| void AthMessaging::setLevel |
( |
MSG::Level | lvl | ) |
|
|
inherited |
◆ setPulseShape()
| void TilePulseShape::setPulseShape |
( |
const std::vector< double > & | shapevec | ) |
|
Definition at line 60 of file TilePulseShape.cxx.
61{
65 for(std::vector<double>::size_type i = 0;
i != shapevec.size();
i++) {
67 }
69}
◆ ATLAS_THREAD_SAFE
| std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
|
mutableprivateinherited |
◆ m_deformedShape
| TGraph* TilePulseShape::m_deformedShape {nullptr} |
|
private |
◆ m_deformedSpline
| TSpline* TilePulseShape::m_deformedSpline {nullptr} |
|
private |
◆ m_imsg
| std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr } |
|
mutableprivateinherited |
◆ m_lvl
| std::atomic<MSG::Level> AthMessaging::m_lvl { MSG::NIL } |
|
mutableprivateinherited |
◆ m_msg_tls
| boost::thread_specific_ptr<MsgStream> AthMessaging::m_msg_tls |
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
◆ m_nm
| std::string AthMessaging::m_nm |
|
privateinherited |
◆ m_pulseShape
| TGraph* TilePulseShape::m_pulseShape {nullptr} |
|
private |
The documentation for this class was generated from the following files: