AliPhysics  95775ff (95775ff)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliEmcalTrackSelection.h
Go to the documentation of this file.
1 #ifndef ALIEMCALTRACKSELECTION_H_
2 #define ALIEMCALTRACKSELECTION_H_
3 /* Copyright(c) 1998-2015, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
6 #include <TObject.h>
7 #include <TBits.h>
8 
9 class TClonesArray;
10 class TObjArray;
11 class AliVCuts;
12 class AliVEvent;
13 class AliVTrack;
14 
33 public:
39  };
40 
44  virtual ~AliEmcalTrackSelection();
45 
46  TObjArray *GetAcceptedTracks(const TClonesArray * const tracks);
47  TObjArray *GetAcceptedTracks(const AliVEvent *const event);
48  virtual bool IsTrackAccepted(AliVTrack * const trk) = 0;
49 
50  virtual void GenerateTrackCuts(ETrackFilterType_t type, const char* period = "") = 0;
51  void AddTrackCuts(AliVCuts *cuts);
52  void AddTrackCuts(TObjArray *cuts);
54  AliVCuts *GetTrackCuts(Int_t icut);
55 
56  const TBits& GetTrackBitmap() const { return fTrackBitmap; }
57  const TClonesArray* GetAcceptedTrackBitmaps() const { return fListOfTrackBitmaps; }
58 
61 
62 protected:
64  TClonesArray *fListOfTrackBitmaps;
65  TBits fTrackBitmap;
68 
70 
72 };
73 
74 #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
int Int_t
Definition: External.C:63
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.
bool Bool_t
Definition: External.C:53
virtual bool IsTrackAccepted(AliVTrack *const trk)=0