This commit was generated by cvs2svn to compensate for changes in r1018,
[u/mrichter/AliRoot.git] / ALIFAST / AliFBrowsable.cxx
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
18 ClassImp(AliFBrowsable)
19
20
21
22 //_____________________________________________________________________________
23 AliFBrowsable::AliFBrowsable() 
24 {
25
26 }
27
28 //_____________________________________________________________________________
29 void AliFBrowsable::Browse(TBrowser *b)
30 {
31   /*
32   AliFMCMaker *mcarlo = gAliFast->MCMaker();
33   TClonesArray *particles = mcarlo->Fruits();
34   Int_t nparticles = particles->GetEntriesFast();
35   TParticle *refpart = (TParticle*)fRefObject;
36   TParticle *part;
37   AliFBrowsable *brow;
38   char name[64];
39   Int_t iparent;
40
41   for (Int_t i=0;i<nparticles;i++) {
42      part = (TParticle*)particles->UncheckedAt(i);
43      iparent = part->GetMother(0);
44      if (!iparent) continue;
45      if (particles->UncheckedAt(iparent-1) != refpart) continue;
46      brow = fBigBang->GetBrowsable(i);
47      sprintf(name,"%s_%d",part->GetName(),i);
48      brow->SetName(name);
49      brow->SetRefObject(part);
50      b->Add(brow,name);
51   }
52   */
53 }
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68