27 #ifndef ALIEMCALTRACKSELRESULTPTR_H 28 #define ALIEMCALTRACKSELRESULTPTR_H 212 TObject *
GetData()
const {
return fUserStorage ? fUserStorage->GetData() :
nullptr; }
280 #if !defined(__CINT__) && !defined(__MAKECINT__) 296 #if !defined(__CINT__) && !defined (__MAKECINT__) 342 AliVTrack * operator*()
const;
349 AliVTrack * operator->()
const;
355 operator bool()
const {
return fSelectionResult; }
362 void PrintStream(std::ostream &stream)
const;
368 void SetTrack(AliVTrack *track) { fTrack = track; }
456 bool RunAllTests()
const;
468 bool TestOperatorBool()
const;
478 bool TestCopyConstructor()
const;
488 bool TestOperatorAssign()
const;
500 bool TestUserInfo()
const;
TestAliEmcalTrackSelResultPtr()
Constructor.
Bool_t fSelectionResult
Result of the track selection (true - selected, false - rejected)
virtual ~TestAliEmcalTrackSelResultPtr()
Destructor.
TObject * fData
User data.
AliEmcalTrackSelResultUserStorage * fUserStorage
Underlying user storage for reference counting.
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)
Namespace for EMCAL framework classes and task.
Helper class handling the lifetime of the user object handled by AliEmcalTrackSelResultUserPtr.
virtual ~AliEmcalTrackSelResultPtr()
Destructor.
Unit test for class AliEmcalTrackSelResultPtr.
TObject * GetData() const
Get the user data handled by the storage.
bool operator<(const AliAnalysisTaskDmesonJets::AliHFJetDefinition &lhs, const AliAnalysisTaskDmesonJets::AliHFJetDefinition &rhs)
TH1 * Compare(TH1 *def, TH1 *oth)
Namespace for PWG framework classes.
void Release()
Release user pointer from the storage.
AliVTrack * GetTrack() const
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.
std::ostream & operator<<(std::ostream &stream, const AliEmcalTrackSelResultPtr &ref)
AliEmcalTrackSelResultUserPtr fUserInfo
Selection flag (optional)
AliEmcalTrackSelResultUserStorage & operator=(const AliEmcalTrackSelResultUserStorage &)
void test(int runnumber=195345)
bool operator==(const AliAnalysisTaskDmesonJets::AliHFJetDefinition &lhs, const AliAnalysisTaskDmesonJets::AliHFJetDefinition &rhs)
Bool_t GetSelectionResult() const
Handler for user objects attached to the track selection result ptr.
AliVTrack * fTrack
Pointer to selected track.