]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
PrintParticles: Getting in synch with root.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 20 Jun 2003 13:14:22 +0000 (13:14 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 20 Jun 2003 13:14:22 +0000 (13:14 +0000)
PYTHIA6/AliPythia.cxx

index a380e9c54141553ae6b9c0b637453570d2faeec7..c07ce5dae449720ad8f99f5446b9b027034f406c 100644 (file)
@@ -445,17 +445,15 @@ void AliPythia::PrintParticles()
 { 
 // Print list of particl properties
     Int_t np = 0;
 { 
 // Print list of particl properties
     Int_t np = 0;
-    
+    char*   name = new char[16];    
     for (Int_t kf=0; kf<1000000; kf++) {
        for (Int_t c = 1;  c > -2; c-=2) {
     for (Int_t kf=0; kf<1000000; kf++) {
        for (Int_t c = 1;  c > -2; c-=2) {
-           
            Int_t kc = Pycomp(c*kf);
            if (kc) {
                Float_t mass  = GetPMAS(kc,1);
                Float_t width = GetPMAS(kc,2);  
                Float_t tau   = GetPMAS(kc,4);
            Int_t kc = Pycomp(c*kf);
            if (kc) {
                Float_t mass  = GetPMAS(kc,1);
                Float_t width = GetPMAS(kc,2);  
                Float_t tau   = GetPMAS(kc,4);
-               
-               char*   name = new char[8];
+
                Pyname(kf,name);
        
                np++;
                Pyname(kf,name);
        
                np++;