Skip to content

Commit fcc6aba

Browse files
committed
Add option to rescale IT fraction for OROCs
1 parent e9e0633 commit fcc6aba

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Detectors/TPC/calibration/macro/prepareITFiles.C

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
using namespace o2::tpc::cru_calib_helpers;
3232
using namespace o2::tpc;
3333

34-
void prepareCMFiles(const std::string_view itDataFile, std::string outputDir = "./")
34+
void prepareITFiles(const std::string_view itDataFile, std::string outputDir = "./", float orocFractionScale = 1.f)
3535
{
3636
const auto& mapper = Mapper::instance();
3737

@@ -102,6 +102,10 @@ void prepareCMFiles(const std::string_view itDataFile, std::string outputDir = "
102102
float fractionVal = rocFraction.getValue(ipad);
103103
float expLambdaVal = rocExpLambda.getValue(ipad);
104104

105+
if (roc.isOROC()) {
106+
fractionVal *= orocFractionScale;
107+
}
108+
105109
if ((fractionVal <= 0) || (fractionVal > 0.6)) {
106110
LOGP(error, "Too fraction value in ROC {:2}, CRU {:3}, fec in CRU: {:2}, SAMPA: {}, channel: {:2}: {:.4f}, setting value to roc mean {}", iroc, cruID, fecInPartition, sampa, sampaChannel, fractionVal, meanFraction);
107111
fractionVal = meanFraction;

0 commit comments

Comments
 (0)