27 #ifndef ALIEMCALTRACKSELRESULTPTR_H
28 #define ALIEMCALTRACKSELRESULTPTR_H
277 #if !defined(__CINT__) && !defined(__MAKECINT__)
293 #if !defined(__CINT__) && !defined (__MAKECINT__)
TestAliEmcalTrackSelResultPtr()
Constructor.
Bool_t fSelectionResult
Result of the track selection (true - selected, false - rejected)
Bool_t operator<(const AliEmcalTrackSelResultPtr &other) const
bool TestOperatorBool() const
Test for operator bool.
virtual ~TestAliEmcalTrackSelResultPtr()
Destructor.
AliEmcalTrackSelResultPtr & operator=(const AliEmcalTrackSelResultPtr &ref)
TObject * fData
User data.
AliEmcalTrackSelResultUserStorage * fUserStorage
Underlying user storage for reference counting.
bool TestCopyConstructor() const
Test copy constructor with user information.
Structure containing the result of a given track selection step.
TObject * GetData() const
Get the object handled by the storage.
Int_t GetReferenceCount() const
Get the number of pointer instances connected to the storage.
void SetSelectionResult(Bool_t selectionResult)
Helper class handling the lifetime of the user object handled by AliEmcalTrackSelResultUserPtr.
virtual ~AliEmcalTrackSelResultUserPtr()
Destructor.
bool TestOperatorAssign() const
Tests assignment operatator with user info.
AliVTrack * operator->() const
virtual Bool_t IsEqual(const TObject *o) const
virtual Int_t Compare(const TObject *o) const
virtual ~AliEmcalTrackSelResultPtr()
Destructor.
Unit test for class AliEmcalTrackSelResultPtr.
AliEmcalTrackSelResultPtr()
TObject * GetData() const
Get the user data handled by the storage.
AliEmcalTrackSelResultUserPtr()
Dummy constructor.
AliVTrack * operator*() const
void Release()
Release user pointer from the storage.
AliVTrack * GetTrack() const
bool RunAllTests() const
Run test suite.
const TObject * GetUserInfo() const
virtual ~AliEmcalTrackSelResultUserStorage()
Destructor.
void SetTrack(AliVTrack *track)
Set the track object handled by the track selection.
void SetUserInfo(TObject *userinfo)
AliEmcalTrackSelResultUserStorage()
void Connect()
Connect new user pointer instance to the storage.
Int_t fReferenceCount
Reference counter.
bool TestUserInfo() const
Test handling of user storage.
std::ostream & operator<<(std::ostream &stream, const AliEmcalTrackSelResultPtr &ref)
Bool_t operator==(const AliEmcalTrackSelResultPtr &other) const
bool AssertBool(const AliEmcalTrackSelResultPtr &test, bool testvalue) const
AliEmcalTrackSelResultUserPtr fUserInfo
Selection flag (optional)
AliEmcalTrackSelResultUserStorage & operator=(const AliEmcalTrackSelResultUserStorage &)
void test(int runnumber=195345)
AliEmcalTrackSelResultUserPtr & operator=(const AliEmcalTrackSelResultUserPtr &ref)
Assignment operator.
bool AssertPayload(const AliEmcalTrackSelResultPtr &test, void *payload) const
Bool_t GetSelectionResult() const
Handler for user objects attached to the track selection result ptr.
AliVTrack * fTrack
Pointer to selected track.
void PrintStream(std::ostream &stream) const