Skip to content

Commit 6994351

Browse files
committed
[PWGDQ] updated global muon alignment task
Added check for RCT flags
1 parent 3fd0b0a commit 6994351

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

PWGDQ/Tasks/muonGlobalAlignment.cxx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ struct muonGlobalAlignment {
161161
Configurable<bool> fEnableMftDcaAnalysis{"cfgEnableMftDcaAnalysis", true, "Enable the analysis of DCA-based MFT alignment"};
162162
Configurable<bool> fEnableMftMchResidualsAnalysis{"cfgEnableMftMchResidualsAnalysis", true, "Enable the analysis of residuals between MFT tracks and MCH clusters"};
163163

164+
Configurable<bool> fRequireGoodRCT{"cfgRequireGoodRCT", true, "Require good detector flags in Run Condition Table"};
165+
164166
int mRunNumber{0}; // needed to detect if the run changed and trigger update of magnetic field
165167

166168
Service<o2::ccdb::BasicCCDBManager> ccdbManager;
@@ -203,6 +205,10 @@ struct muonGlobalAlignment {
203205
continue;
204206

205207
auto collision = collisions.rawIteratorAt(muonTrack.collisionId());
208+
209+
if (fRequireGoodRCT && !rctChecker(collision))
210+
continue;
211+
206212
uint64_t collisionIndex = collision.globalIndex();
207213

208214
auto bc = bcs.rawIteratorAt(collision.bcId());

0 commit comments

Comments
 (0)