![]() |
AliPhysics
7f1bdba (7f1bdba)
|
Structure containing the result of a given track selection step. More...
#include <AliEmcalTrackSelResultPtr.h>
Protected Attributes | |
AliVTrack * | fTrack |
Pointer to selected track. More... | |
Bool_t | fSelectionResult |
Result of the track selection (true - selected, false - rejected) More... | |
AliEmcalTrackSelResultUserPtr | fUserInfo |
Selection flag (optional) More... | |
Structure containing the result of a given track selection step.
Smart pointer containing selection results. In addition to the object itself a set of further information is stored.
Access to the original track is done via the operators * and ->. Using the operator-> provides direct access to public member functions of AliVTrack. As this, the following is valid C++ code:
This smart pointer does not take care about deleting the object as it does not own the content behind. Instead the user has to take care.
Definition at line 252 of file AliEmcalTrackSelResultPtr.h.
AliEmcalTrackSelResultPtr::AliEmcalTrackSelResultPtr | ( | ) |
Dummy constructor, nothing to do Default values:
Definition at line 42 of file AliEmcalTrackSelResultPtr.cxx.
AliEmcalTrackSelResultPtr::AliEmcalTrackSelResultPtr | ( | AliVTrack * | trk, |
Bool_t | selectionStatus, | ||
TObject * | userobject = nullptr |
||
) |
Constructor, fully initializing the result with a track pointer,
Taking
[in] | trk | Pointer to the original track |
[in] | selectionStatus | Status of the selection (true - selected, false - rejected) |
[in] | userobject | User information defined by the track selection (default: nullptr) |
Definition at line 51 of file AliEmcalTrackSelResultPtr.cxx.
AliEmcalTrackSelResultPtr::AliEmcalTrackSelResultPtr | ( | const AliEmcalTrackSelResultPtr & | ref | ) |
Copy constructor, copying infromation (for track pointer only the pointer itself)
[in] | ref | Reference for the copy |
Definition at line 60 of file AliEmcalTrackSelResultPtr.cxx.
AliEmcalTrackSelResultPtr::AliEmcalTrackSelResultPtr | ( | AliEmcalTrackSelResultPtr && | ref | ) |
Move constructor, implements move procedure for track selection results
[in] | ref | Pointer to be moved |
Definition at line 69 of file AliEmcalTrackSelResultPtr.cxx.
|
inlinevirtual |
Destructor.
Definition at line 309 of file AliEmcalTrackSelResultPtr.h.
Definition at line 115 of file AliEmcalTrackSelResultPtr.cxx.
|
inline |
Get the track selection status
Definition at line 398 of file AliEmcalTrackSelResultPtr.h.
Referenced by PWG::EMCAL::TestAliEmcalTrackSelResultPtr::AssertBool().
|
inline |
Access to underlying track
Definition at line 386 of file AliEmcalTrackSelResultPtr.h.
Referenced by AliTrackContainer::NextEvent().
|
inline |
Get the flag assigned to the track selection status
Definition at line 392 of file AliEmcalTrackSelResultPtr.h.
Referenced by PWG::EMCAL::TestAliEmcalTrackSelResultPtr::AssertPayload(), PWG::EMCAL::TestAliEmcalTrackSelectionAOD::FindHybridSelectionResult(), AliTrackContainer::GetHybridDefinition(), and PWG::EMCAL::TestAliEmcalTrackSelResultPtr::TestUserInfo().
ROOT comparison function, checking for equalness. Comparison is based on the address of the track pointer.
[in] | o | Object to be compared to |
Definition at line 109 of file AliEmcalTrackSelResultPtr.cxx.
|
inline |
Boolean conversion operator. Access to the selection status
Definition at line 355 of file AliEmcalTrackSelResultPtr.h.
AliVTrack * AliEmcalTrackSelResultPtr::operator* | ( | ) | const |
Pointer operator, returning pointer to underlying track
Definition at line 123 of file AliEmcalTrackSelResultPtr.cxx.
AliVTrack * AliEmcalTrackSelResultPtr::operator-> | ( | ) | const |
Member access operator, returning pointer to the underlying track
Definition at line 127 of file AliEmcalTrackSelResultPtr.cxx.
Bool_t AliEmcalTrackSelResultPtr::operator< | ( | const AliEmcalTrackSelResultPtr & | other | ) | const |
Comparison operator, checking whether this object is smaller than the reference object. Comparison is done based on the address of the track pointer.
[in] | other | Object to be compared to |
Definition at line 105 of file AliEmcalTrackSelResultPtr.cxx.
AliEmcalTrackSelResultPtr & AliEmcalTrackSelResultPtr::operator= | ( | const AliEmcalTrackSelResultPtr & | ref | ) |
Assignment operator, copies information from a reference into this object. As for the copy and move constructor only
[in] | ref | Reference for the assignment |
Definition at line 79 of file AliEmcalTrackSelResultPtr.cxx.
AliEmcalTrackSelResultPtr & AliEmcalTrackSelResultPtr::operator= | ( | AliEmcalTrackSelResultPtr && | ref | ) |
Move assignment operator, copies information from a reference into this object. As for the copy and move constructor only
[in] | ref | Reference for the assignment |
Definition at line 89 of file AliEmcalTrackSelResultPtr.cxx.
Bool_t AliEmcalTrackSelResultPtr::operator== | ( | const AliEmcalTrackSelResultPtr & | other | ) | const |
Comparison operator, checking for equalness. Comparison is based on the address of the track pointer.
[in] | other | Object to be compared to |
Definition at line 101 of file AliEmcalTrackSelResultPtr.cxx.
void AliEmcalTrackSelResultPtr::PrintStream | ( | std::ostream & | stream | ) | const |
Create a stream representation of the object and put it on then stream;
[in] | stream | Stream used to print the object |
Definition at line 131 of file AliEmcalTrackSelResultPtr.cxx.
Referenced by PWG::EMCAL::operator<<().
|
inline |
Set the track selection status
[in] | selectionResult | True if the track is selected, false otherwise; |
Definition at line 374 of file AliEmcalTrackSelResultPtr.h.
Referenced by AliEmcalTrackSelectionESD::IsTrackAccepted(), and AliEmcalTrackSelectionAOD::IsTrackAccepted().
|
inline |
Set the track object handled by the track selection.
track |
Definition at line 368 of file AliEmcalTrackSelResultPtr.h.
|
inline |
Set the track category flag
flag | Flag assigned to the track |
Definition at line 380 of file AliEmcalTrackSelResultPtr.h.
Referenced by PWG::EMCAL::AliEmcalAODHybridTrackCuts::IsSelected().
|
protected |
Result of the track selection (true - selected, false - rejected)
Definition at line 402 of file AliEmcalTrackSelResultPtr.h.
Referenced by operator=(), and PrintStream().
|
protected |
Pointer to selected track.
Definition at line 401 of file AliEmcalTrackSelResultPtr.h.
Referenced by operator*(), operator->(), operator<(), operator=(), operator==(), and PrintStream().
|
protected |
Selection flag (optional)
Definition at line 403 of file AliEmcalTrackSelResultPtr.h.
Referenced by AliEmcalTrackSelResultPtr(), operator=(), and PrintStream().