5 #include <FairLogger.h>
6 #include <FairParSet.h>
8 #include <FairRuntimeDb.h>
24 fPar =
dynamic_cast<const AtDigiPar *
>(FairRun::Instance()->GetRuntimeDb()->getContainer(
"AtDigiPar"));
25 if (fPar ==
nullptr) {
26 LOG(error) <<
"Could not find the digipar file!";
32 LOG(debug) << driftDistance <<
" " << driftTB;
40 fPar =
dynamic_cast<const AtDigiPar *
>(FairRun::Instance()->GetRuntimeDb()->getContainer(
"AtDigiPar"));
41 if (fPar ==
nullptr) {
42 LOG(error) <<
"Could not find the digipar file!";
46 return driftTime / (fPar->
GetTBTime() / 1000.);
51 LOG(error) <<
"Hits that are points (sig_z = 0) are not supported yet!";
57 fPar =
dynamic_cast<const AtDigiPar *
>(FairRun::Instance()->GetRuntimeDb()->getContainer(
"AtDigiPar"));
59 if (fPar ==
nullptr) {
60 LOG(error) <<
"Could not find the digipar file!";
65 auto func = std::make_unique<TF1>(
"hitFunc",
"gaus", 0, fPar->
GetZPadPlane(), TF1::EAddToList::kNo);
67 func->SetParameter(0, ampl);
77 LOG(error) <<
"Hits that are points (sig_z = 0) are not supported yet!";
81 fPar =
dynamic_cast<const AtDigiPar *
>(FairRun::Instance()->GetRuntimeDb()->getContainer(
"AtDigiPar"));
84 auto func = std::make_unique<TF1>(
"hitFuncTB",
"gaus", 0, 512, TF1::EAddToList::kNo);
87 func->SetParameter(0, ampl);