AliPhysics  f2694b8 (f2694b8)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
AliEmcalTrackSelection.h
Go to the documentation of this file.
1 
12 #ifndef ALIEMCALTRACKSELECTION_H_
13 #define ALIEMCALTRACKSELECTION_H_
14 /* Copyright(c) 1998-2015, ALICE Experiment at CERN, All rights reserved. *
15  * See cxx source for full Copyright notice */
16 
17 #include <TObject.h>
18 #include <TBits.h>
19 
20 class TClonesArray;
21 class TObjArray;
22 class AliVCuts;
23 class AliVEvent;
24 class AliVTrack;
25 
37 class AliEmcalTrackSelection : public TObject {
38 public:
44  };
45 
49  virtual ~AliEmcalTrackSelection();
50 
51  TObjArray *GetAcceptedTracks(const TClonesArray * const tracks);
52  TObjArray *GetAcceptedTracks(const AliVEvent *const event);
53  virtual bool IsTrackAccepted(AliVTrack * const trk) = 0;
54 
55  virtual void GenerateTrackCuts(ETrackFilterType_t type, const char* period = "") = 0;
56  void AddTrackCuts(AliVCuts *cuts);
57  void AddTrackCuts(TObjArray *cuts);
58  Int_t GetNumberOfCutObjects() const;
59  AliVCuts *GetTrackCuts(Int_t icut);
60 
61  const TBits& GetTrackBitmap() const { return fTrackBitmap; }
62  const TClonesArray* GetAcceptedTrackBitmaps() const { return fListOfTrackBitmaps; }
63 
66 
67 protected:
68  TObjArray *fListOfTracks;
69  TClonesArray *fListOfTrackBitmaps;
70  TBits fTrackBitmap;
71  TObjArray *fListOfCuts;
73 
75 
77 };
78 
79 #endif /* ALIEMCALTRACKSELECTION_H_ */
Interface for virtual track selection.
virtual void GenerateTrackCuts(ETrackFilterType_t type, const char *period="")=0
AliEmcalTrackSelection & operator=(const AliEmcalTrackSelection &ref)
TObjArray * fListOfCuts
List of track cut objects.
const TClonesArray * GetAcceptedTrackBitmaps() const
TClonesArray * fListOfTrackBitmaps
TClonesArray with accepted tracks' bit maps.
const TBits & GetTrackBitmap() const
AliVCuts * GetTrackCuts(Int_t icut)
void AddTrackCuts(AliVCuts *cuts)
TObjArray * fListOfTracks
TObjArray with accepted tracks.
Bool_t fSelectionModeAny
Accept track if any of the cuts is fulfilled.
TObjArray * GetAcceptedTracks(const TClonesArray *const tracks)
TBits fTrackBitmap
Bitmap of last accepted/rejected track.
virtual bool IsTrackAccepted(AliVTrack *const trk)=0