Skip to content

Commit b9c599e

Browse files
authored
Merge pull request #4 from alibuild/alibot-cleanup-15466
Please consider the following formatting changes to #15466
2 parents 2b7dd19 + 4d831ad commit b9c599e

2 files changed

Lines changed: 13 additions & 16 deletions

File tree

Detectors/FIT/FT0/base/include/FT0Base/FT0DigParam.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ struct FT0DigParam : o2::conf::ConfigurableParamHelper<FT0DigParam> {
4343
float mNoiseVar = 0.1; // noise level
4444
float mNoisePeriod = 1 / 0.9; // GHz low frequency noise period;
4545
short mTime_trg_gate = 153; // #channels as in TCM as in Pilot beams ('OR gate' setting in TCM tab in ControlServer)
46-
short mTime_trg_vertex_gate = 100; // #channels as in TCM for VTX trigger
46+
short mTime_trg_vertex_gate = 100; // #channels as in TCM for VTX trigger
4747
float mAmpThresholdForReco = 5; // only channels with amplitude higher will participate in calibration and collision time: 0.3 MIP
4848
short mTimeThresholdForReco = 1000; // only channels with time below will participate in calibration and collision time
4949

5050
float mMV_2_Nchannels = 2.; // amplitude channel 7 mV ->14channels
5151
float mMV_2_NchannelsInverse = 0.5; // inverse amplitude channel 7 mV ->14channels (nowhere used)
5252

53-
float Cross_Talk_Frac = 0.10f; // Crosstalk between channels
53+
float Cross_Talk_Frac = 0.10f; // Crosstalk between channels
5454
float mAmpThresholdForCrossTalkDigit = 5.f; // Treshold for low crosstalk signals
5555

5656
O2ParamDef(FT0DigParam, "FT0DigParam");

Detectors/FIT/FT0/simulation/src/Digitizer.cxx

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -411,14 +411,12 @@ void Digitizer::storeBC(BCCache& bc,
411411
std::vector<int> chChain(params.mMCPs, 0);
412412
std::vector<bool> chValid(params.mMCPs, false);
413413

414-
static const std::array<std::array<int, 3>, 4> localNeighbours = {{
415-
{{1, 2, 3}},
416-
{{0, 3, 2}},
417-
{{0, 3, 1}},
418-
{{1, 2, 0}}
419-
}};
420-
421-
// std::set<int> disabledChannels = {40, 41, 42, 43, 88, 89, 90, 91, 56, 57, 58, 59, 60, 61, 62, 63, 72, 73, 74, 75, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 164, 165, 166, 167, 184, 185, 186, 187, 160, 161, 162, 163, 188, 189, 190, 191, 156, 157, 158, 159, 192, 193, 194, 195, 152, 153, 154, 155, 196, 197, 198, 199, 148, 149, 150, 151, 144, 145, 146, 147, 204, 205, 206, 207, 200, 201, 202, 203}; // przykładowe kanały
414+
static const std::array<std::array<int, 3>, 4> localNeighbours = {{{{1, 2, 3}},
415+
{{0, 3, 2}},
416+
{{0, 3, 1}},
417+
{{1, 2, 0}}}};
418+
419+
// std::set<int> disabledChannels = {40, 41, 42, 43, 88, 89, 90, 91, 56, 57, 58, 59, 60, 61, 62, 63, 72, 73, 74, 75, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 164, 165, 166, 167, 184, 185, 186, 187, 160, 161, 162, 163, 188, 189, 190, 191, 156, 157, 158, 159, 192, 193, 194, 195, 152, 153, 154, 155, 196, 197, 198, 199, 148, 149, 150, 151, 144, 145, 146, 147, 204, 205, 206, 207, 200, 201, 202, 203}; // przykładowe kanały
422420
for (Int_t ipmt = 0; ipmt < params.mMCPs; ++ipmt) {
423421
auto channel_begin = channel_end;
424422
channel_end = std::find_if(channel_begin, particles.end(),
@@ -451,9 +449,9 @@ void Digitizer::storeBC(BCCache& bc,
451449
if (amp > 4095.f) {
452450
amp = 4095.f;
453451
}
454-
// if (!disabledChannels.count(ipmt)) {
455-
// continue;
456-
// }
452+
// if (!disabledChannels.count(ipmt)) {
453+
// continue;
454+
// }
457455

458456
LOG(debug) << mEventID << " bc " << firstBCinDeque.bc << " orbit " << firstBCinDeque.orbit
459457
<< ", ipmt " << ipmt << ", smeared_time " << smeared_time
@@ -506,7 +504,6 @@ void Digitizer::storeBC(BCCache& bc,
506504
chTime[diag] = chTime[src];
507505
chChain[diag] = chChain[src];
508506
}
509-
510507
}
511508
}
512509

@@ -522,8 +519,8 @@ void Digitizer::storeBC(BCCache& bc,
522519
const bool hasPrimarySignal = (baseAmp[ipmt] > 0.f);
523520
const bool isCrossTalkOnly = (!hasPrimarySignal && amp > 0.f);
524521

525-
if (isCrossTalkOnly && amp < params.mAmpThresholdForCrossTalkDigit) {
526-
continue;
522+
if (isCrossTalkOnly && amp < params.mAmpThresholdForCrossTalkDigit) {
523+
continue;
527524
}
528525

529526
const int smeared_time = chTime[ipmt];

0 commit comments

Comments
 (0)