]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ALIFAST/AliFBrowsable.cxx
This commit was generated by cvs2svn to compensate for changes in r1018,
[u/mrichter/AliRoot.git] / ALIFAST / AliFBrowsable.cxx
diff --git a/ALIFAST/AliFBrowsable.cxx b/ALIFAST/AliFBrowsable.cxx
new file mode 100644 (file)
index 0000000..b29f043
--- /dev/null
@@ -0,0 +1,68 @@
+
+//////////////////////////////////////////////////////////////////////////
+//                                                                      //
+// AliFBrowsable                                                          //
+//                                                                      //
+// helper class to browse generated particles.                          //
+//                                                                      //
+//////////////////////////////////////////////////////////////////////////
+
+#include <TBrowser.h>
+#include <TParticle.h>
+#include <TClonesArray.h>
+#include "AliFast.h"
+#include "AliFBrowsable.h"
+#include "AliFBigBang.h"
+//#include "AliFMCMaker.h"
+
+ClassImp(AliFBrowsable)
+
+
+
+//_____________________________________________________________________________
+AliFBrowsable::AliFBrowsable() 
+{
+
+}
+
+//_____________________________________________________________________________
+void AliFBrowsable::Browse(TBrowser *b)
+{
+  /*
+  AliFMCMaker *mcarlo = gAliFast->MCMaker();
+  TClonesArray *particles = mcarlo->Fruits();
+  Int_t nparticles = particles->GetEntriesFast();
+  TParticle *refpart = (TParticle*)fRefObject;
+  TParticle *part;
+  AliFBrowsable *brow;
+  char name[64];
+  Int_t iparent;
+
+  for (Int_t i=0;i<nparticles;i++) {
+     part = (TParticle*)particles->UncheckedAt(i);
+     iparent = part->GetMother(0);
+     if (!iparent) continue;
+     if (particles->UncheckedAt(iparent-1) != refpart) continue;
+     brow = fBigBang->GetBrowsable(i);
+     sprintf(name,"%s_%d",part->GetName(),i);
+     brow->SetName(name);
+     brow->SetRefObject(part);
+     b->Add(brow,name);
+  }
+  */
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+