2 // Computator for events.
3 // Fills the outputs once per event,
4 // using values computed on them,
5 // and inheriting the same definitions of outputs
6 // as in the mother AliRsnLoop class.
11 #include "AliRsnEvent.h"
13 #include "AliRsnLoopEvent.h"
15 ClassImp(AliRsnLoopEvent)
17 //_____________________________________________________________________________
18 AliRsnLoopEvent::AliRsnLoopEvent(const char *name) :
22 // Default constructor
26 //_____________________________________________________________________________
27 AliRsnLoopEvent::AliRsnLoopEvent(const AliRsnLoopEvent ©) :
35 //_____________________________________________________________________________
36 AliRsnLoopEvent &AliRsnLoopEvent::operator=(const AliRsnLoopEvent ©)
39 // Assignment operator
42 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()) ) {