|
| 1 | +# Muon Tracks QC |
| 2 | + |
| 3 | +## TracksTask |
| 4 | + |
| 5 | +The tracks task processes the forward muon tracks and produces a number of plots showing the kinematics and time distributions of the tracks. |
| 6 | +The type of tracks that are processed is controlled via the `GID` list in the task configuration. The following options can be selected: |
| 7 | +* `MCH`: all standalone MCH tracks are considered, independently of their matching with MFT and MID |
| 8 | +* `MFT-MCH`: tracks matched from MFT to MCH, independently of their matching with MID |
| 9 | +* `MCH-MID`: tracks matched from MCH to MID, independently of their matching with MFT |
| 10 | +* `MFT-MCH-MID`: global forward tracks matched to all three detectors |
| 11 | + |
| 12 | +For each selection listed in the `GID` parameter, two sets of similar plots are produced, one for all the tracks, the second only considering the tracks that pass some standard cuts, namely: |
| 13 | +* `cutRAbsMin < RAbs < cutRAbsMax` |
| 14 | +* `cutEtaMin < eta < cutEtaMax` |
| 15 | +* `pT > cutPtMin` |
| 16 | +* `sigmaPDCA < nSigmaPDCA` |
| 17 | +* `chi2 < cutChi2Max` |
| 18 | + |
| 19 | +All the cuts are computed using the standalone MCH tracks parameters, regardless of the matching, in order to have a consistent selection for all track types. |
| 20 | + |
| 21 | +In addition to the single-track cuts listed above, a cut (`diMuonTimeCut`) on the time difference (in nanoseconds) between track pairs is applied when filling the di-muon invariant mass plot. |
| 22 | + |
| 23 | +For each selection, the following histograms are filled: |
| 24 | +* track kinematic parameters (pT, eta, phi) and their correlations |
| 25 | +* distribution of the BC ids associated to the tracks |
| 26 | +* tracks multiplicity per TF |
| 27 | +* track quality parameters (chi2, RAbs, P*DCA, matching chi2 and probablity) |
| 28 | +* 2-D distributions of the MCH track impact points at the MFT exit and MID entrance planes |
| 29 | + |
| 30 | +The plots are saved in sub-folders inside `GLO/MUONTracks`, one folder for each `GID`. An additional sub-folder is aslo created for the plots after selection cuts. |
| 31 | +In the example below, the folder structure would look like this: |
| 32 | + |
| 33 | +``` |
| 34 | +GLO/MUONTracks/MFT-MCH/ |
| 35 | +GLO/MUONTracks/MFT-MCH/WithCuts/ |
| 36 | +GLO/MUONTracks/MCH-MID/ |
| 37 | +GLO/MUONTracks/MCH-MID/WithCuts/ |
| 38 | +GLO/MUONTracks/MFT-MCH-MID/ |
| 39 | +GLO/MUONTracks/MFT-MCH-MID/WithCuts/ |
| 40 | +``` |
| 41 | + |
| 42 | +#### Configuration |
| 43 | +```json |
| 44 | +{ |
| 45 | + "qc": { |
| 46 | + "tasks": { |
| 47 | + "TaskMUONTracks": { |
| 48 | + "active": "true", |
| 49 | + "className": "o2::quality_control_modules::muon::TracksTask", |
| 50 | + "moduleName": "QcMUONCommon", |
| 51 | + "detectorName": "GLO", |
| 52 | + "taskName": "MUONTracks", |
| 53 | + "cycleDurationSeconds": "300", |
| 54 | + "maxNumberCycles": "-1", |
| 55 | + "dataSource": { |
| 56 | + "type": "direct", |
| 57 | + "query": "trackMCH:MCH/TRACKS;trackMCHROF:MCH/TRACKROFS;trackMCHTRACKCLUSTERS:MCH/TRACKCLUSTERS;mchtrackdigits:MCH/CLUSTERDIGITS;trackMFT:MFT/TRACKS;trackMFTROF:MFT/MFTTrackROF;trackMFTClIdx:MFT/TRACKCLSID;alpparMFT:MFT/ALPIDEPARAM;trackMID:MID/TRACKS;trackMIDROF:MID/TRACKROFS;trackMIDTRACKCLUSTERS:MID/TRACKCLUSTERS;trackClMIDROF:MID/TRCLUSROFS;matchMCHMID:GLO/MTC_MCHMID;fwdtracks:GLO/GLFWD" |
| 58 | + }, |
| 59 | + "taskParameters": { |
| 60 | + "maxTracksPerTF": "600", |
| 61 | + "cutRAbsMin": "17.6", |
| 62 | + "cutRAbsMax": "89.5", |
| 63 | + "cutEtaMin": "-4.0", |
| 64 | + "cutEtaMax": "-2.5", |
| 65 | + "cutPtMin": "0.5", |
| 66 | + "cutPtMin": "0.5", |
| 67 | + "nSigmaPDCA": "6", |
| 68 | + "cutChi2Max": "1000", |
| 69 | + "diMuonTimeCut": "100", |
| 70 | + "fullHistos": "0", |
| 71 | + "GID" : "MFT-MCH,MCH-MID,MFT-MCH-MID" |
| 72 | + }, |
| 73 | + "grpGeomRequest": { |
| 74 | + "geomRequest": "Aligned", |
| 75 | + "askGRPECS": "true", |
| 76 | + "askGRPLHCIF": "false", |
| 77 | + "askGRPMagField": "true", |
| 78 | + "askMatLUT": "false", |
| 79 | + "askTime": "false", |
| 80 | + "askOnceAllButField": "false", |
| 81 | + "needPropagatorD": "false" |
| 82 | + }, |
| 83 | + "location": "remote" |
| 84 | + } |
| 85 | + } |
| 86 | + } |
| 87 | +} |
| 88 | +``` |
| 89 | + |
| 90 | +## Tracks Post-processing |
| 91 | + |
| 92 | +The tracks post-processing task takes the plots produced by the tracks task and computes the matching efficiency from their ratios. |
| 93 | +Each data source in the task configuration specifies the path of the plots from matched tracks(numerator), the path of the reference plots from un-matched tracks (denominator), and the path where to store the matching efficiency plots (ratios). The data source also contains a `names` parameter with the list of plots to be compared. Each plot name can be followed by an optional number, separated by a semi-colon, that indicates the rebinning factor to be applied to the plots before computing the ratio. |
| 94 | + |
| 95 | +#### Configuration |
| 96 | + |
| 97 | +```json |
| 98 | +{ |
| 99 | + "qc": { |
| 100 | + "postprocessing": { |
| 101 | + "MUONTracks": { |
| 102 | + "active": "true", |
| 103 | + "className": "o2::quality_control_modules::muon::TracksPostProcessing", |
| 104 | + "moduleName": "QcMUONCommon", |
| 105 | + "detectorName": "GLO", |
| 106 | + "dataSources": [ |
| 107 | + { |
| 108 | + "plotsPath": "GLO/MO/MUONTracks/MCH-MID/WithCuts", |
| 109 | + "refsPath": "MCH/MO/Tracks/WithCuts", |
| 110 | + "outputPath": "MCH-MID/WithCuts/MatchEff", |
| 111 | + "names": [ "TrackPt:5", "TrackEta:5", "TrackPhi:10", "TrackEtaPt", "TrackPhiPt", "TrackPosAtMID" ] |
| 112 | + }, |
| 113 | + { |
| 114 | + "plotsPath": "GLO/MO/MUONTracks/MCH-MID/WithCuts", |
| 115 | + "refsPath": "MCH/MO/Tracks/WithCuts", |
| 116 | + "outputPath": "MCH-MID/WithCuts/MatchEff", |
| 117 | + "names": [ "TrackPt:5", "TrackEta:5", "TrackPhi:10", "TrackEtaPt", "TrackPhiPt", "TrackPosAtMID" ] |
| 118 | + }, |
| 119 | + { |
| 120 | + "plotsPath": "GLO/MO/MUONTracks/MFT-MCH-MID", |
| 121 | + "refsPath": "MCH/MO/Tracks", |
| 122 | + "outputPath": "MFT-MCH-MID/MatchEff-MCH", |
| 123 | + "names": [ "TrackPt:5", "TrackEta:5", "TrackPhi:10", "TrackEtaPt", "TrackPhiPt", "TrackPosAtMID", "TrackPosAtMFT" ] |
| 124 | + }, |
| 125 | + { |
| 126 | + "plotsPath": "GLO/MO/MUONTracks/MFT-MCH-MID", |
| 127 | + "refsPath": "GLO/MO/MUONTracks/MCH-MID", |
| 128 | + "outputPath": "MFT-MCH-MID/MatchEff-MCH-MID", |
| 129 | + "names": [ "TrackPt:5", "TrackEta:5", "TrackPhi:10", "TrackEtaPt", "TrackPhiPt", "TrackPosAtMID", "TrackPosAtMFT" ] |
| 130 | + }, |
| 131 | + { |
| 132 | + "plotsPath": "GLO/MO/MUONTracks/MFT-MCH-MID/WithCuts", |
| 133 | + "refsPath": "MCH/MO/Tracks/WithCuts", |
| 134 | + "outputPath": "MFT-MCH-MID/WithCuts/MatchEff-MCH", |
| 135 | + "names": [ "TrackPt:5", "TrackEta:5", "TrackPhi:10", "TrackEtaPt", "TrackPhiPt", "TrackPosAtMID", "TrackPosAtMFT" ] |
| 136 | + }, |
| 137 | + { |
| 138 | + "plotsPath": "GLO/MO/MUONTracks/MFT-MCH-MID/WithCuts", |
| 139 | + "refsPath": "GLO/MO/MUONTracks/MCH-MID/WithCuts", |
| 140 | + "outputPath": "MFT-MCH-MID/WithCuts/MatchEff-MCH-MID", |
| 141 | + "names": [ "TrackPt:5", "TrackEta:5", "TrackPhi:10", "TrackEtaPt", "TrackPhiPt", "TrackPosAtMID", "TrackPosAtMFT" ] |
| 142 | + } |
| 143 | + ], |
| 144 | + "initTrigger": [ |
| 145 | + "userorcontrol" |
| 146 | + ], |
| 147 | + "updateTrigger": [ |
| 148 | + "newobject:qcdb:GLO/MO/MUONTracks/MCH-MID/TrackPt" |
| 149 | + ], |
| 150 | + "stopTrigger": [ |
| 151 | + "userorcontrol" |
| 152 | + ] |
| 153 | + } |
| 154 | + } |
| 155 | + } |
| 156 | +} |
| 157 | +``` |
| 158 | + |
| 159 | +## Matching Efficiency Checker |
| 160 | + |
| 161 | +The matching efficiency checker takes the output of the tracks post-processing and verifies that the efficiency values in each plot are within configurable limits. The limits are defined separately for each histogram, or group of histograms, whose name matches a given string. |
| 162 | +For 1-D plots, the check can be additionally restricetd to one or more ranges in the x variable, in case some kinematical regions need to be excluded. |
| 163 | + |
| 164 | +For example, the following line corresponds to an acceptable range, for the plots named `TrackEta`, of `[0.3,1.0]` and only checked within the eta ranges `[-4.0,-3.5]` and `[-3.0,-2.5]`: |
| 165 | + |
| 166 | +``` |
| 167 | +"range:TrackEta": "0.3,1.0:-4.0,-3.5:-3.0,-2.5" |
| 168 | +``` |
| 169 | + |
| 170 | +If no limit is specified for a given plot, the corresponding values are not checked and the plot is only beautified. |
| 171 | + |
| 172 | +For 2-D plots, the beautification only consists in fixing the z-axis range to `[0.0,1.2]`. |
| 173 | +For 1-D plots, the acceptable range is also indicated with horizontal lines, and the plot is painted in red if the quality is judged to be bad. |
| 174 | + |
| 175 | +#### Configuration |
| 176 | + |
| 177 | +```json |
| 178 | +{ |
| 179 | + "qc": { |
| 180 | + "checks": { |
| 181 | + "MUONMatchCheck": { |
| 182 | + "active": "true", |
| 183 | + "className": "o2::quality_control_modules::muon::MatchingEfficiencyCheck", |
| 184 | + "moduleName": "QcMUONCommon", |
| 185 | + "detectorName": "GLO", |
| 186 | + "policy": "OnAll", |
| 187 | + "extendedCheckParameters": { |
| 188 | + "default": { |
| 189 | + "default": { |
| 190 | + "range:TrackEta": "0.3,1.0:-4.0,-3.5:-3.0,-2.5", |
| 191 | + "range:TrackPt": "0.4,1.0:0.5,2.0", |
| 192 | + "range:WithCuts": "0.4,1.0" |
| 193 | + } |
| 194 | + } |
| 195 | + }, |
| 196 | + "dataSource": [ |
| 197 | + { |
| 198 | + "type": "PostProcessing", |
| 199 | + "name": "MUONTracks", |
| 200 | + "MOs" : [ |
| 201 | + "MCH-MID/MatchEff/TrackPhi", |
| 202 | + "MCH-MID/MatchEff/TrackPt", |
| 203 | + "MCH-MID/MatchEff/TrackEta", |
| 204 | + "MCH-MID/WithCuts/MatchEff/TrackPhi", |
| 205 | + "MCH-MID/WithCuts/MatchEff/TrackPt", |
| 206 | + "MCH-MID/WithCuts/MatchEff/TrackEta", |
| 207 | + "MCH-MID/WithCuts/MatchEff/TrackPosAtMID" |
| 208 | + ] |
| 209 | + } |
| 210 | + ] |
| 211 | + } |
| 212 | + } |
| 213 | + } |
| 214 | +} |
| 215 | +``` |
0 commit comments