Project
Loading...
Searching...
No Matches
MatchCosmicsParams.h
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
13
14#ifndef ALICEO2_MATCHCOSMICS_PARAMS_H
15#define ALICEO2_MATCHCOSMICS_PARAMS_H
16
21#include <string>
22
23namespace o2
24{
25namespace globaltracking
26{
27
28struct MatchCosmicsParams : public o2::conf::ConfigurableParamHelper<MatchCosmicsParams> {
29 float dcaCutChi2[o2::dataformats::GlobalTrackID::NSources] = {}; // optional (>0) chi2 cut on track DCA to any of its compatible vertices
30 float systSigma2[o2::track::kNParams] = {0.01f, 0.01f, 1e-4f, 1e-4f, 0.f}; // extra error to be added at legs comparison
31 float crudeNSigma2Cut[o2::track::kNParams] = {49.f, 49.f, 49.f, 49.f, 49.f};
32 float crudeChi2Cut = 999.f;
33 float maxChi2Match = -1.f; // reject cosmics whose top/bottom refitted legs disagree by more than this chi2 (< 0: no cut)
34 float minPtOppositeSides = 0.f; // TPC-only legs on opposite TPC sides: reject cosmics with the pT of either leg or of the refitted cosmic below this (scaled with field; 0: no cut)
35 float timeToleranceMUS = 0.f;
36 float maxStep = 10.f;
37 float maxSnp = 0.99f;
38 float minSeedPt = 0.10f; // use only tracks above this pT (scaled with field)
39 int minSeedNClTPC = 0; // use only TPC-only seeds with at least this number of clusters (0: no cut)
40 float minSeedDCAxy = 0.f; // use only tracks with |DCA_xy| to the beam line >= this [cm] (0: no cut; rejects collision tracks in physics data)
41 float minSeedDCAxyNSigma = 0.f; // use only tracks with |DCA_xy| >= this * sigma(DCA_xy) (0: no cut; poorly measured collision tracks)
42 float minSeedDCAxyTOF = -1.f; // with tofFlightSelection: TPC-only legs failing the two cuts above but with |DCA_xy| >= this [cm] are used in TOF-confirmed pairs only (< 0: off; e.g. cosmics crossing the ITS inner barrel)
43 float minSeedDCAxyNSigmaTOF = 3.f; // the same for these legs in units of sigma(DCA_xy)
44 bool constrainTPCOnlyZ = false; // TPC-only legs: test z at a common time (same side, or a leg with known time), else require the time implied by z continuity in both brackets
45 bool vetoSameHalf = false; // reject pairs whose two legs lie on the same side of the closest approach (two pieces of one leg)
46 bool refitSameSideAtCommonTime = false; // TPC-only legs on the same side: compare them refitted at the centre of their brackets' overlap instead of at their own time0s
47 bool tofFlightSelection = false; // needs TOF clusters: accepted pairs of TPC-only legs pointing to a top / bottom TOF hit pair with the muon's flight time win the selection, refit at that time (if that fails, at their time without TOF)
48 float tofRoad = 5.f; // half-width [cm] in y and z of the road at the TOF around the outward continuation of a TPC-only leg
49 float tofFlightTolerance = 2.f; // max. deviation [ns] of the top / bottom TOF time difference from the flight time along the helix
50 float tofTimeError = 0.1f; // error [mus] of the TOF time of a confirmed cosmic, for its refit and time window (covers TPC vs TOF offsets)
51 float nSigmaTError = 4.f; // number of sigmas on track time error for matching (except for TPC which provides an interval)
52 float tpcExtraZError2 = 1.f; // extra error^2 on the TPC-only track Z coordinate
53 float fiducialRIP = 1.0f; // consider track having |Y@x=0|< this as passing DCA cut (if requested)
54 float fiducialZIP = 20.f; // consider track having |Z@x=0|< this as passing DCA cut (if requested)
55 bool allowTPCOnly = true;
56 bool discardPVContributors = true; // used only if the global option --use-pv-info is requested
57 o2::base::Propagator::MatCorrType matCorr = o2::base::Propagator::MatCorrType::USEMatCorrLUT;
58
60};
61
66std::string getMatchCosmicsPreset(const std::string& name);
67
68} // namespace globaltracking
69} // end namespace o2
70
71#endif
Global index for barrel track: provides provenance (detectors combination), index in respective array...
GLuint const GLchar * name
Definition glcorearb.h:781
std::string getMatchCosmicsPreset(const std::string &name)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
O2ParamDef(MatchCosmicsParams, "cosmicsMatch")
float crudeNSigma2Cut[o2::track::kNParams]
o2::base::Propagator::MatCorrType matCorr
float dcaCutChi2[o2::dataformats::GlobalTrackID::NSources]