Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -437,9 +437,9 @@ void CheckTimeResolutionIOTOF(std::string digifile = "tf3digits.root", std::stri
}

// Times (ns)
const double tTrueNS = hit.GetTime() * sec2ns; /// true time relative to the collision
const double tDigNS = digit.getTime() - tCollNS; /// digit time relative to the collision
const float dtPs = (tDigNS - tTrueNS) * ns2ps; /// time residual
const double tTrueNS = hit.GetTime() * sec2ns; /// true time relative to the collision
const double tDigNS = digit.getTime() - tCollNS; /// digit time relative to the collision
const float dtPs = (tDigNS - tTrueNS) * ns2ps; /// time residual

const float dxPixUm = (xH - xD) * cm2um;
const float dzPixUm = (zH - zD) * cm2um;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ struct DPLDigitizerParam : public o2::conf::ConfigurableParamHelper<DPLDigitizer
float timeResolution = 0.020f; ///< time resolution sigma in ns (20 ps default)
float tdcBin = 0.010f; ///< TDC time bin (10 ps default)
float efficiency = 0.98f; ///< detection efficiency

// Optional map paths. Prefix with "ccdb://" to fetch from CCDB, otherwise the path is opened with TFile::Open
// (local file, alien://, root://, ...). An empty path disables the map.
std::string efficiencyMapPath{}; ///< optional efficiency map path.
///< e.g. ccdb://Users/g/glucia/tmp/ALICE3/IOTOF/pixelEfficiency
///< or alien:///alice/cern.ch/user/g/glucia/ALICE3/IOTOF/pixelEfficiency/PixelEfficiencyMap_TH2.root
std::string resolutionMapPath{}; ///< optional resolution map path.
///< e.g. alien:///alice/cern.ch/user/g/glucia/ALICE3/IOTOF/pixelEfficiency/PixelResolutionMap_TH2.root
std::string timeOfArrivalMapPath{}; ///< optional time of arrival map path.
std::string efficiencyMapPath{}; ///< optional efficiency map path.
///< e.g. ccdb://Users/g/glucia/tmp/ALICE3/IOTOF/pixelEfficiency
///< or alien:///alice/cern.ch/user/g/glucia/ALICE3/IOTOF/pixelEfficiency/PixelEfficiencyMap_TH2.root
std::string resolutionMapPath{}; ///< optional resolution map path.
///< e.g. alien:///alice/cern.ch/user/g/glucia/ALICE3/IOTOF/pixelEfficiency/PixelResolutionMap_TH2.root
std::string timeOfArrivalMapPath{}; ///< optional time of arrival map path.

int chargeThreshold = 100; ///< charge threshold in Nelectrons
int minChargeToAccount = 7; ///< minimum charge contribution to account
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ double Digitizer::smearTime(double time, const float x, const float y) const
{
// Apply Gaussian smearing to simulate detector time resolution
const auto& digitizerParams = o2::iotof::DPLDigitizerParam::Instance();

float resolution = digitizerParams.timeResolution;
if (mScaledResolutionMap) {
int bin = mScaledResolutionMap->FindBin(x * o2::iotof::Digitizer::cm2um, y * o2::iotof::Digitizer::cm2um);
Expand Down
Loading