15 #include <TObjArray.h> 16 #include <TClonesArray.h> 17 #include "AliESDtrackCuts.h" 23 #include "AliVTrack.h" 24 #include "AliVEvent.h" 36 fSelectionModeAny(kFALSE)
44 fSelectionModeAny(kFALSE)
56 TObject::operator=(ref);
76 AliInfoStream() <<
"Adding trackc cuts " << cuts->GetName() <<
" of type " << cuts->IsA()->GetName() << std::endl;
86 AliVCuts *mycuts = cuts;
94 AliInfoStream() <<
"Adding trackc cuts " << cuts->GetName() <<
" of type " << cuts->IsA()->GetName() << std::endl;
110 AliVCuts *vcuts =
dynamic_cast<AliVCuts *
>(
c);
114 AliErrorStream() <<
"Object not inheriting from AliVCuts - not added to track selection" << std::endl;
127 if(icut < fListOfCuts->GetEntries()){
145 for(
auto mytrack : *tracks) {
161 for(
int itrk = 0; itrk <
event->GetNumberOfTracks(); itrk++){
190 TObject::operator=(ref);
Interface for virtual track selection.
AliEmcalTrackSelection & operator=(const AliEmcalTrackSelection &ref)
Assingment operator.
TObject * GetObject()
Providing access to managed object.
PWG::EMCAL::AliEmcalCutBase * GetTrackCuts(Int_t icut)
Access to track cuts at a given position.
Wrapper class handling AliVCuts as AliEmcalCutBase.
Int_t GetNumberOfCutObjects() const
Get the number of cut objects assigned.
TObjArray * fListOfCuts
List of track cut objects.
Structure containing the result of a given track selection step.
TObject * fManagedObject
Pointer to object handled by the smart pointer.
AliEmcalManagedObject()
Dummy constructor.
Bool_t fOwner
Switch defining ownership over object.
AliEmcalManagedObject & operator=(const AliEmcalManagedObject &ref)
AliEmcalTrackSelection()
Default consturctor.
void AddTrackCuts(AliVCuts *cuts)
Add new track cuts to the list of cuts.
TObjArray * fListOfTracks
TObjArray with accepted tracks.
TObjArray * GetAcceptedTracks(const TClonesArray *const tracks)
Select tracks from a TClonesArray of input tracks.
virtual PWG::EMCAL::AliEmcalTrackSelResultPtr IsTrackAccepted(AliVTrack *const trk)=0
Interface for track selection code.
virtual ~AliEmcalTrackSelection()
Destructor.
Smart pointer implementation for objects inheriting from TObject.
Interface for a cut class returning selection status and user information.