]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG2/RESONANCES/AliRsnMiniEvent.cxx
Classes for 'mini' subpackage for RSN analysis framework
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / AliRsnMiniEvent.cxx
CommitLineData
03d23846 1//
2// Mini-Event
3// Contains only the useful quantities computed on the event
4// which can be used for event mixing, or for direct output
5// when doing analysis w.r. to multiplicity or event plane, for example.
6//
7// Author: A. Pulvirenti
8//
9
10#include "AliRsnMiniParticle.h"
11#include "AliRsnMiniEvent.h"
12
13ClassImp(AliRsnMiniEvent)
14
15//__________________________________________________________________________________________________
16void AliRsnMiniEvent::AddParticle(AliRsnMiniParticle copy)
17{
18//
19// Add a new particle to the list and returns a pointer to it,
20// in order to allow to se its parameters.
21//
22
23 Int_t n = fParticles.GetEntries();
24 new (fParticles[n]) AliRsnMiniParticle(copy);
25}
26
27//__________________________________________________________________________________________________
28AliRsnMiniParticle* AliRsnMiniEvent::LeadingParticle()
29{
30//
31// Return the leading particle
32//
33
34 if (fLeading < 0) return 0x0;
35 if (fLeading >= fParticles.GetEntriesFast()) return 0x0;
36
37 return (AliRsnMiniParticle*)fParticles[fLeading];
38}