![]() |
AliPhysics
ec7afe5 (ec7afe5)
|
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... | |
ULong_t | fFlag |
Selection flag (optional) More... | |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const AliEmcalTrackSelResultPtr &ref) |
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 41 of file AliEmcalTrackSelResultPtr.h.
AliEmcalTrackSelResultPtr::AliEmcalTrackSelResultPtr | ( | ) |
Dummy constructor, nothing to do Default values:
Definition at line 23 of file AliEmcalTrackSelResultPtr.cxx.
AliEmcalTrackSelResultPtr::AliEmcalTrackSelResultPtr | ( | AliVTrack * | trk, |
Bool_t | selectionStatus, | ||
ULong_t | flag = 0 |
||
) |
Constructor, fully initializing the result with a track pointer,
[in] | trk | Pointer to the original track |
[in] | selectionStatus | Status of the selection (true - selected, false - rejected) |
[in] | flag | Flag for a track category (optional, default: 0) |
Definition at line 32 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 41 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 50 of file AliEmcalTrackSelResultPtr.cxx.
|
inlinevirtual |
Destructor, nothing to do
Definition at line 92 of file AliEmcalTrackSelResultPtr.h.
Definition at line 95 of file AliEmcalTrackSelResultPtr.cxx.
|
inline |
Get the flag assigned to the track selection status
Definition at line 183 of file AliEmcalTrackSelResultPtr.h.
|
inline |
Get the track selection status
Definition at line 189 of file AliEmcalTrackSelResultPtr.h.
|
inline |
Access to underlying track
Definition at line 177 of file AliEmcalTrackSelResultPtr.h.
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 89 of file AliEmcalTrackSelResultPtr.cxx.
|
inline |
Boolean conversion operator. Access to the selection status
Definition at line 138 of file AliEmcalTrackSelResultPtr.h.
AliVTrack * AliEmcalTrackSelResultPtr::operator* | ( | ) | const |
Pointer operator, returning pointer to underlying track
Definition at line 103 of file AliEmcalTrackSelResultPtr.cxx.
AliVTrack * AliEmcalTrackSelResultPtr::operator-> | ( | ) | const |
Member access operator, returning pointer to the underlying track
Definition at line 107 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 85 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 59 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 69 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 81 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 111 of file AliEmcalTrackSelResultPtr.cxx.
Referenced by operator<<().
|
inline |
Set the track category flag
flag | Flag assigned to the track |
Definition at line 171 of file AliEmcalTrackSelResultPtr.h.
|
inline |
Set the track selection status
[in] | selectionResult | True if the track is selected, false otherwise; |
Definition at line 165 of file AliEmcalTrackSelResultPtr.h.
|
inline |
track |
Definition at line 159 of file AliEmcalTrackSelResultPtr.h.
|
friend |
Streaming operator, print content of the track selection result to the stream
stream | Stream for the printing |
ref | Object to be streamed |
Definition at line 117 of file AliEmcalTrackSelResultPtr.cxx.
|
protected |
Selection flag (optional)
Definition at line 194 of file AliEmcalTrackSelResultPtr.h.
Referenced by GetFlag(), operator=(), PrintStream(), and SetFlag().
|
protected |
Result of the track selection (true - selected, false - rejected)
Definition at line 193 of file AliEmcalTrackSelResultPtr.h.
Referenced by GetSelectionResult(), operator bool(), operator=(), PrintStream(), and SetSelectionResult().
|
protected |
Pointer to selected track.
Definition at line 192 of file AliEmcalTrackSelResultPtr.h.
Referenced by GetTrack(), operator*(), operator->(), operator<(), operator=(), operator==(), PrintStream(), and SetTrack().