AliPhysics  ec7afe5 (ec7afe5)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliEmcalTrackSelResultPtr.h
Go to the documentation of this file.
1 #ifndef ALIEMCALTRACKSELRESULTPTR_H
2 #define ALIEMCALTRACKSELRESULTPTR_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 <iosfwd>
8 
9 class AliVTrack;
10 
42 public:
43 
52 
59  AliEmcalTrackSelResultPtr(AliVTrack *trk, Bool_t selectionStatus, ULong_t flag = 0);
60 
66 
72 
80 
88 
93 
100  Bool_t operator==(const AliEmcalTrackSelResultPtr &other) const;
101 
109  Bool_t operator<(const AliEmcalTrackSelResultPtr &other) const;
110 
117  virtual Bool_t IsEqual(const TObject *o) const;
118 
119  virtual Int_t Compare(const TObject *o) const;
120 
125  AliVTrack * operator*() const;
126 
132  AliVTrack * operator->() const;
133 
138  operator bool() const { return fSelectionResult; }
139 
147  friend std::ostream &operator<<(std::ostream &stream, const AliEmcalTrackSelResultPtr &ref);
148 
153  void PrintStream(std::ostream &stream) const;
154 
159  void SetTrack(AliVTrack *track) { fTrack = track; }
160 
165  void SetSelectionResult(Bool_t selectionResult) { fSelectionResult = selectionResult; }
166 
171  void SetFlag(ULong_t flag) { fFlag = flag; }
172 
177  AliVTrack *GetTrack() const { return fTrack; }
178 
183  ULong_t GetFlag() const { return fFlag; }
184 
190 
191 protected:
192  AliVTrack *fTrack;
195 
197  ClassDef(AliEmcalTrackSelResultPtr, 1);
199 };
200 
208 std::ostream &operator<<(std::ostream &stream, const AliEmcalTrackSelResultPtr &ref);
209 
210 #endif /* ALIEMCALTRACKSELRESULTPTR_H */
Structure containing the result of a given track selection step.
Bool_t fSelectionResult
Result of the track selection (true - selected, false - rejected)
virtual Int_t Compare(const TObject *o) const
AliVTrack * fTrack
Pointer to selected track.
void SetSelectionResult(Bool_t selectionResult)
friend std::ostream & operator<<(std::ostream &stream, const AliEmcalTrackSelResultPtr &ref)
virtual Bool_t IsEqual(const TObject *o) const
int Int_t
Definition: External.C:63
Bool_t operator<(const AliEmcalTrackSelResultPtr &other) const
std::ostream & operator<<(std::ostream &stream, const AliEmcalTrackSelResultPtr &ref)
unsigned long ULong_t
Definition: External.C:38
ULong_t fFlag
Selection flag (optional)
void PrintStream(std::ostream &stream) const
Bool_t operator==(const AliEmcalTrackSelResultPtr &other) const
AliEmcalTrackSelResultPtr & operator=(const AliEmcalTrackSelResultPtr &ref)
bool Bool_t
Definition: External.C:53