Skip to content
Merged
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 @@ -43,7 +43,7 @@ struct FT0DigParam : o2::conf::ConfigurableParamHelper<FT0DigParam> {
float mNoiseVar = 0.1; // noise level
float mNoisePeriod = 1 / 0.9; // GHz low frequency noise period;
static constexpr short mTime_trg_gate = 153; // #channels as in TCM as in Pilot beams
static constexpr float mAmpThresholdForReco = 14; // only channels with amplitude higher will participate in calibration and collision time
static constexpr float mAmpThresholdForReco = 5; // only channels with amplitude higher will participate in calibration and collision time: 0.3 MIP
static constexpr short mTimeThresholdForReco = 1000; // only channels with time below will participate in calibration and collision time

static constexpr float mMV_2_Nchannels = 2.2857143; // amplitude channel 7 mV ->16channels
Expand Down
8 changes: 4 additions & 4 deletions Detectors/FIT/FT0/simulation/src/Digitizer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -296,10 +296,10 @@ void Digitizer::storeBC(BCCache& bc,
is_C = n_hit_C > 0;
is_Central = summ_ampl_A + summ_ampl_C >= params.mtrg_central_trh;
is_SemiCentral = summ_ampl_A + summ_ampl_C >= params.mtrg_semicentral_trh;
uint32_t amplA = is_A ? summ_ampl_A * 0.125 : 0; // sum amplitude A side / 8 (hardware)
uint32_t amplC = is_C ? summ_ampl_C * 0.125 : 0; // sum amplitude C side / 8 (hardware)
int timeA = is_A ? mean_time_A / n_hit_A : 0; // average time A side
int timeC = is_C ? mean_time_C / n_hit_C : 0; // average time C side
uint32_t amplA = is_A ? summ_ampl_A * 0.125 : -5000; // sum amplitude A side / 8 (hardware)
uint32_t amplC = is_C ? summ_ampl_C * 0.125 : -5000; // sum amplitude C side / 8 (hardware)
int timeA = is_A ? mean_time_A / n_hit_A : -5000; // average time A side
int timeC = is_C ? mean_time_C / n_hit_C : -5000; // average time C side
vertex_time = (timeC - timeA) * 0.5;
isVertex = is_A && is_C && (vertex_time > -params.mTime_trg_gate && vertex_time < params.mTime_trg_gate);
LOG(debug) << " A " << is_A << " timeA " << timeA << " mean_time_A " << mean_time_A << " n_hit_A " << n_hit_A << " C " << is_C << " timeC " << timeC << " mean_time_C " << mean_time_C << " n_hit_C " << n_hit_C << " vertex_time " << vertex_time;
Expand Down
4 changes: 2 additions & 2 deletions Detectors/FIT/FT0/workflow/src/RecPointReaderSpec.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ RecPointReader::RecPointReader(bool useMC)
void RecPointReader::init(InitContext& ic)
{
mInputFileName = o2::utils::Str::concat_string(o2::utils::Str::rectifyDirectory(ic.options().get<std::string>("input-dir")),
ic.options().get<std::string>("ft0-recpoints-infile"));
ic.options().get<std::string>("infile"));
connectTree(mInputFileName);
}

Expand Down Expand Up @@ -91,7 +91,7 @@ DataProcessorSpec getRecPointReaderSpec(bool useMC)
outputSpec,
AlgorithmSpec{adaptFromTask<RecPointReader>()},
Options{
{"ft0-recpoints-infile", VariantType::String, "o2reco_ft0.root", {"Name of the input file"}},
{"infile", VariantType::String, "o2reco_ft0.root", {"Name of the input file"}},
{"input-dir", VariantType::String, "none", {"Input directory"}}}};
}

Expand Down