|
ATLAS Offline Software
|
Go to the documentation of this file.
15 #include "GaudiKernel/IMessageSvc.h"
16 #include "GaudiKernel/GaudiException.h"
53 throw GaudiException(std::string(
"could not load pulseshape from file: ") +
fileName.Data(),
54 "TilePulseShape", StatusCode::FAILURE);
65 for(std::vector<double>::size_type
i = 0;
i != shapevec.size();
i++) {
100 y = 0.00196 * (1 -
exp(-
x / 20664.59) ) - 0.00217;
117 if(useSpline)
y = ySpline;
143 ATH_MSG_WARNING(
"Attempted pulse shape scaling before loading pulse shape");
152 else if(
x>0.)
x*=rightSF;
168 for(
int i=0;
i<
gr->GetN();
i++){
TGraph * getGraph(double t0=0., double ped=0., double amp=1.)
double eval(double x, bool useSpline=true, bool useUndershoot=false)
std::vector< ALFA_RawData_p1 > t0
TilePulseShape(IMessageSvc *msgSvc, const std::string &name)
TSpline * m_deformedSpline
msgSvc
Provide convenience handles for various services.
void loadPulseShape(const TString &fileName)
Class to provide easy MsgStream access and capabilities.
int scalePulse(double leftSF=1., double rightSF=1.)
virtual ~TilePulseShape()
#define ATH_MSG_WARNING(x)
void setPulseShape(const std::vector< double > &shapevec)