Skip to content

Commit fef0348

Browse files
clang-format
1 parent da9e451 commit fef0348

3 files changed

Lines changed: 15 additions & 15 deletions

File tree

‎Detectors/Upgrades/ALICE3/IOTOF/macros/CheckTimeResolutionIOTOF.C‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -437,9 +437,9 @@ void CheckTimeResolutionIOTOF(std::string digifile = "tf3digits.root", std::stri
437437
}
438438

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

444444
const float dxPixUm = (xH - xD) * cm2um;
445445
const float dzPixUm = (zH - zD) * cm2um;

‎Detectors/Upgrades/ALICE3/IOTOF/simulation/include/IOTOFSimulation/DPLDigitizerParam.h‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,19 @@ struct DPLDigitizerParam : public o2::conf::ConfigurableParamHelper<DPLDigitizer
2626
bool continuous = true; ///< flag for continuous simulation
2727
float noisePerPixel = DEFNoisePerPixel(); ///< ALPIDE Noise per channel
2828

29-
double timeOffset = 0.; ///< time offset (in seconds!) to calculate ROFrame from hit time
30-
float timeResolution = 0.020f; ///< time resolution sigma in ns (20 ps default)
31-
float tdcBin = 0.010f; ///< TDC time bin (10 ps default)
32-
float efficiency = 0.98f; ///< detection efficiency
33-
29+
double timeOffset = 0.; ///< time offset (in seconds!) to calculate ROFrame from hit time
30+
float timeResolution = 0.020f; ///< time resolution sigma in ns (20 ps default)
31+
float tdcBin = 0.010f; ///< TDC time bin (10 ps default)
32+
float efficiency = 0.98f; ///< detection efficiency
33+
3434
// Optional map paths. Prefix with "ccdb://" to fetch from CCDB, otherwise the path is opened with TFile::Open
3535
// (local file, alien://, root://, ...). An empty path disables the map.
36-
std::string efficiencyMapPath{}; ///< optional efficiency map path.
37-
///< e.g. ccdb://Users/g/glucia/tmp/ALICE3/IOTOF/pixelEfficiency
38-
///< or alien:///alice/cern.ch/user/g/glucia/ALICE3/IOTOF/pixelEfficiency/PixelEfficiencyMap_TH2.root
39-
std::string resolutionMapPath{}; ///< optional resolution map path.
40-
///< e.g. alien:///alice/cern.ch/user/g/glucia/ALICE3/IOTOF/pixelEfficiency/PixelResolutionMap_TH2.root
41-
std::string timeOfArrivalMapPath{}; ///< optional time of arrival map path.
36+
std::string efficiencyMapPath{}; ///< optional efficiency map path.
37+
///< e.g. ccdb://Users/g/glucia/tmp/ALICE3/IOTOF/pixelEfficiency
38+
///< or alien:///alice/cern.ch/user/g/glucia/ALICE3/IOTOF/pixelEfficiency/PixelEfficiencyMap_TH2.root
39+
std::string resolutionMapPath{}; ///< optional resolution map path.
40+
///< e.g. alien:///alice/cern.ch/user/g/glucia/ALICE3/IOTOF/pixelEfficiency/PixelResolutionMap_TH2.root
41+
std::string timeOfArrivalMapPath{}; ///< optional time of arrival map path.
4242

4343
int chargeThreshold = 100; ///< charge threshold in Nelectrons
4444
int minChargeToAccount = 7; ///< minimum charge contribution to account

‎Detectors/Upgrades/ALICE3/IOTOF/simulation/src/Digitizer.cxx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ double Digitizer::smearTime(double time, const float x, const float y) const
343343
{
344344
// Apply Gaussian smearing to simulate detector time resolution
345345
const auto& digitizerParams = o2::iotof::DPLDigitizerParam::Instance();
346-
346+
347347
float resolution = digitizerParams.timeResolution;
348348
if (mScaledResolutionMap) {
349349
int bin = mScaledResolutionMap->FindBin(x * o2::iotof::Digitizer::cm2um, y * o2::iotof::Digitizer::cm2um);

0 commit comments

Comments
 (0)