Project
Loading...
Searching...
No Matches
TrackCuts.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
16
17#ifndef AliceO2_TPC_TRACKCUTS_H
18#define AliceO2_TPC_TRACKCUTS_H
19
20#include "Rtypes.h"
21
22namespace o2
23{
24namespace tpc
25{
26
27class TrackTPC;
28
35
37{
38 public:
39 TrackCuts() = default;
40 TrackCuts(float PMin, float PMax, float NClusMin, float dEdxMin = 0, float dEdxMax = 1e10);
41
42 bool goodTrack(o2::tpc::TrackTPC const& track);
43
44 void setPMin(float PMin) { mPMin = PMin; }
45 void setPMax(float PMax) { mPMax = PMax; }
46 void setNClusMin(float NClusMin) { mNClusMin = NClusMin; }
47 void setdEdxMin(float dEdxMin) { mdEdxMin = dEdxMin; }
48 void setdEdxMax(float dEdxMax) { mdEdxMax = dEdxMax; }
50 void setCutLooper(bool cut) { mCutLooper = cut; }
51
52 private:
53 float mPMin{0};
54 float mPMax{1e10};
55 float mNClusMin{0};
56 float mdEdxMin{0};
57 float mdEdxMax{1e10};
58 bool mCutLooper{false};
59
60 ClassDefNV(TrackCuts, 1)
61};
62} // namespace tpc
63} // namespace o2
64
65#endif
track cut class
Definition TrackCuts.h:37
void setPMax(float PMax)
Definition TrackCuts.h:45
void setPMin(float PMin)
Definition TrackCuts.h:44
void setCutLooper(bool cut)
try to remove looper cutting on (abs(z_out) - abs(z_in)) < -10), not very precise
Definition TrackCuts.h:50
void setdEdxMax(float dEdxMax)
Definition TrackCuts.h:48
void setNClusMin(float NClusMin)
Definition TrackCuts.h:46
void setdEdxMin(float dEdxMin)
Definition TrackCuts.h:47
bool goodTrack(o2::tpc::TrackTPC const &track)
Definition TrackCuts.cxx:31
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...