2 // Computator for single daughters.
3 // Implements a simple loop on tracks from one of the entry lists
4 // filled by the task AliRsnInputHandler, adding a check on their
5 // definition specified in the daughter def.
10 #include "AliRsnEvent.h"
12 #include "AliRsnLoopEvent.h"
14 ClassImp(AliRsnLoopEvent)
16 //_____________________________________________________________________________
17 AliRsnLoopEvent::AliRsnLoopEvent(const char *name) :
21 // Default constructor
25 //_____________________________________________________________________________
26 AliRsnLoopEvent::AliRsnLoopEvent(const AliRsnLoopEvent& copy) :
34 //_____________________________________________________________________________
35 AliRsnLoopEvent& AliRsnLoopEvent::operator=(const AliRsnLoopEvent& copy)
38 // Assignment operator
41 AliRsnLoop::operator=(copy);
46 //_____________________________________________________________________________
47 AliRsnLoopEvent::~AliRsnLoopEvent()
54 //_____________________________________________________________________________
55 void AliRsnLoopEvent::Print(Option_t* /*option*/) const
58 // Prints info about pair
64 //_____________________________________________________________________________
65 Bool_t AliRsnLoopEvent::Init(const char *prefix, TList *list)
68 // Initialization function.
69 // Loops on all functions and eventual the ntuple, to initialize output objects.
72 return AliRsnLoop::Init(Form("%s_%s", prefix, GetName()), list);
75 //_____________________________________________________________________________
76 Int_t AliRsnLoopEvent::DoLoop
77 (AliRsnEvent *evMain, AliRsnDaughterSelector *, AliRsnEvent *, AliRsnDaughterSelector *)
81 // Computes what is needed from passed events.
82 // Returns the number of pairs successfully processed.
85 TObjArrayIter next(&fOutputs);
86 AliRsnListOutput *out = 0x0;
89 if (!OkEvent(evMain)) return 0;
91 while ( (out = (AliRsnListOutput*)next()) ) {