]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ALIFAST/AliFBrowsable.cxx
Boost for assymmetric systems added.
[u/mrichter/AliRoot.git] / ALIFAST / AliFBrowsable.cxx
CommitLineData
65a39007 1
2//////////////////////////////////////////////////////////////////////////
3// //
4// AliFBrowsable //
5// //
6// helper class to browse generated particles. //
7// //
8//////////////////////////////////////////////////////////////////////////
9
10#include <TBrowser.h>
11#include <TParticle.h>
12#include <TClonesArray.h>
13#include "AliFast.h"
14#include "AliFBrowsable.h"
15#include "AliFBigBang.h"
16//#include "AliFMCMaker.h"
17
18ClassImp(AliFBrowsable)
19
20
21
22//_____________________________________________________________________________
23AliFBrowsable::AliFBrowsable()
24{
2685bf00 25 fRefObject = 0;
26 fBigBang = 0;
65a39007 27}
28
29//_____________________________________________________________________________
30void AliFBrowsable::Browse(TBrowser *b)
31{
32 /*
33 AliFMCMaker *mcarlo = gAliFast->MCMaker();
34 TClonesArray *particles = mcarlo->Fruits();
35 Int_t nparticles = particles->GetEntriesFast();
36 TParticle *refpart = (TParticle*)fRefObject;
37 TParticle *part;
38 AliFBrowsable *brow;
39 char name[64];
40 Int_t iparent;
41
42 for (Int_t i=0;i<nparticles;i++) {
43 part = (TParticle*)particles->UncheckedAt(i);
44 iparent = part->GetMother(0);
45 if (!iparent) continue;
46 if (particles->UncheckedAt(iparent-1) != refpart) continue;
47 brow = fBigBang->GetBrowsable(i);
48 sprintf(name,"%s_%d",part->GetName(),i);
49 brow->SetName(name);
50 brow->SetRefObject(part);
51 b->Add(brow,name);
52 }
53 */
54}
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69