AliPhysics  31210d0 (31210d0)
AliEmcalESDHybridTrackCuts.h
Go to the documentation of this file.
1 /************************************************************************************
2  * Copyright (C) 2017, Copyright Holders of the ALICE Collaboration *
3  * All rights reserved. *
4  * *
5  * Redistribution and use in source and binary forms, with or without *
6  * modification, are permitted provided that the following conditions are met: *
7  * * Redistributions of source code must retain the above copyright *
8  * notice, this list of conditions and the following disclaimer. *
9  * * Redistributions in binary form must reproduce the above copyright *
10  * notice, this list of conditions and the following disclaimer in the *
11  * documentation and/or other materials provided with the distribution. *
12  * * Neither the name of the <organization> nor the *
13  * names of its contributors may be used to endorse or promote products *
14  * derived from this software without specific prior written permission. *
15  * *
16  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND *
17  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED *
18  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE *
19  * DISCLAIMED. IN NO EVENT SHALL ALICE COLLABORATION BE LIABLE FOR ANY *
20  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES *
21  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; *
22  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND *
23  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT *
24  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS *
25  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *
26  ************************************************************************************/
27 #ifndef ALIEMCALESDHYBRIDTRACKCUTS_H
28 #define ALIEMCALESDHYBRIDTRACKCUTS_H
29 
30 #include "AliEmcalCutBase.h"
31 
32 class AliESDtrackCuts;
33 class AliESDtrack;
34 class AliVTrack;
35 
36 namespace PWG {
37 
38 namespace EMCAL {
39 
52 class AliEmcalESDHybridTrackCuts : public AliEmcalCutBase {
53 public:
54 
59  enum HybridDefinition_t {
60  kDef2010,
61  kDef2011,
62  kDef2018TRD
63  };
64 
68  AliEmcalESDHybridTrackCuts();
69 
76  AliEmcalESDHybridTrackCuts(const char *name, HybridDefinition_t def);
77 
81  virtual ~AliEmcalESDHybridTrackCuts();
82 
90  virtual AliEmcalTrackSelResultPtr IsSelected(TObject *o);
91 
97  void SetHybridDefinition(HybridDefinition_t def);
98 
104  void SetUseNoITSrefitTracks(bool doUse) { fSelectNonRefitTracks = doUse; }
105 
114  Int_t GetTPCTRDNumberOfClusters(const AliVTrack *const trk) const;
115 
121  Double_t GetPtDepCutTPCTRDNumberOfClusters(const AliVTrack *const trk) const;
122 
130  Bool_t IsActiveITSModule(const AliESDtrack *const trk, int layer) const;
131 
132 protected:
133 
140  void Init();
141 
150  void InitHybridTracks2010();
151 
161  void InitHybridTracks2011();
162 
171  void InitHybridTracks2018TRD();
172 
173 private:
174  bool fLocalInitialized;
175  bool fSelectNonRefitTracks;
176  HybridDefinition_t fHybridTrackDefinition;
177  AliESDtrackCuts *fHybridTrackCutsGlobal;
178  AliESDtrackCuts *fHybridTrackCutsConstrained;
179  AliESDtrackCuts *fHybridTrackCutsNoItsRefit;
180 
181  Bool_t fRequireTPCTRDClusters;
182  Int_t fMinClustersTPCTRD;
183  Double_t fPtDepParamClusterCut;
184 
186  ClassDef(AliEmcalESDHybridTrackCuts, 1);
188 };
189 
190 }
191 
192 }
193 
194 #endif
double Double_t
Definition: External.C:58
Namespace for EMCAL framework classes and task.
int Int_t
Definition: External.C:63
Namespace for PWG framework classes.
bool Bool_t
Definition: External.C:53