]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Have ProdProcess return const char*
authorfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 3 Nov 1999 13:17:09 +0000 (13:17 +0000)
committerfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 3 Nov 1999 13:17:09 +0000 (13:17 +0000)
GEODB/AliGEODB.cxx
GEODB/AliGEODB.h
MUON/AliMUON.cxx
RICH/AliRICH.cxx
STEER/AliMC.h
TGeant3/TGeant3.cxx
TGeant3/TGeant3.h
TGeant3/TGeant3Dummy.cxx
TGeant3/gucode.cxx

index be71e8b8cc281541feaa1c18fd4d7324b755900e..8720aa53e2cefb1e26bb08f2ac788ec7171bda8c 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.2  1999/09/29 09:24:19  fca
+Introduction of the Copyright and cvs Log
+
 */
 
 //////////////////////////////////////////////////////
@@ -270,9 +273,10 @@ Int_t   AliGEODB::NSecondaries() const
 
 /***********************************************************************/
 
-void    AliGEODB::ProdProcess(char*) const 
+const char* AliGEODB::ProdProcess() const 
 {
     cout << " ProdProcess" << endl;
+    return 0;
 }
 
 /***********************************************************************/
index e803739235bfd3502fda7c29d84e58f5bcb5a87b..2218573d2065b467bbe8893525e3164e39b487bf 100644 (file)
@@ -53,7 +53,7 @@ public:
   Bool_t TrackAlive() const;
   Int_t   NSecondaries() const;
   Int_t   CurrentEvent() const;
-  void    ProdProcess(char*) const;
+  const char*  ProdProcess() const;
   void    GetSecondary(Int_t, Int_t&, Float_t*, Float_t*);
   void   StopTrack();
   void   StopEvent();
index 4ed898caf3b1e65f5453bf3b04e7d71c971e30af..704e7f779228697ff14cf9938c0ae9638727e212 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.13  1999/10/26 06:04:48  fca
+Introduce TLorentzVector in AliMC::GetSecondary. Thanks to I.Hrivnacova
+
 Revision 1.12  1999/10/07 21:08:10  fca
 Corrections by G.Chabratova
 
@@ -633,10 +636,10 @@ void AliMUON::StepManager()
     Int_t nsec, ipart;
     TLorentzVector x, p;
     Float_t pt, th0, th2;
-    char proc[5];
+    char *proc;
     if(fAccCut) {
        if((nsec=gMC->NSecondaries())>0) {
-           gMC->ProdProcess(proc);
+           proc=gMC->ProdProcess();
            if((gMC->TrackPid()==443 || gMC->TrackPid()==553) && !strcmp(proc,"DCAY")) {
                //
                // Check angular acceptance
index c55f3efc15a33c5927b1c35a0c5498bf6c59fa2a..2470a33a0aaeccb0f761abb2fbdd18bdcbf5d756 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.13  1999/10/26 06:04:49  fca
+Introduce TLorentzVector in AliMC::GetSecondary. Thanks to I.Hrivnacova
+
 Revision 1.12  1999/09/29 09:24:29  fca
 Introduction of the Copyright and cvs Log
 
@@ -442,10 +445,10 @@ void AliRICH::StepManager()
     Int_t nsec, ipart;
     TLorentzVector x, p;
     Float_t pt, th0, th1;
-    char proc[5];
+    const char *proc;
     if(fAccCut) {
        if((nsec=gMC->NSecondaries())>0) {
-           gMC->ProdProcess(proc);
+           proc=gMC->ProdProcess();
            if((gMC->TrackPid()==113 || gMC->TrackPid()==114) && !strcmp(proc,"DCAY")) {
                
                // Check angular acceptance
index 42e6251784c18f8f848661fe3a7b27404fbf6891..7d16c2e418f35159df65d92e337387b44435a3d8 100644 (file)
@@ -56,7 +56,7 @@ public:
   virtual Bool_t  IsTrackAlive() const=0;
   virtual Int_t   NSecondaries() const=0;
   virtual Int_t   CurrentEvent() const=0;
-  virtual void    ProdProcess(char*) const=0;
+  virtual const char*   ProdProcess() const=0;
   virtual void    GetSecondary(Int_t, Int_t&, TLorentzVector&, TLorentzVector&)=0;
   virtual void    StopTrack() =0;
   virtual void    StopEvent() =0;
index bfb46d9cf21c46a8f36cb70a5942b0eafba5d557..3c65eeb033a119d463e1fdf246c708c5c26736e2 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.15  1999/10/26 06:04:50  fca
+Introduce TLorentzVector in AliMC::GetSecondary. Thanks to I.Hrivnacova
+
 Revision 1.14  1999/09/29 09:24:30  fca
 Introduction of the Copyright and cvs Log
 
@@ -1156,12 +1159,13 @@ Int_t   TGeant3::CurrentEvent() const
 }
 
 //_____________________________________________________________________________
-void    TGeant3::ProdProcess(char* proc) const
+const char* TGeant3::ProdProcess() const
 {
   //
   // Name of the process that has produced the secondary particles
   // in the current step
   //
+  static char proc[5];
   const Int_t ipmec[13] = { 5,6,7,8,9,10,11,12,21,23,25,105,108 };
   Int_t mec, km, im;
   //
@@ -1176,12 +1180,13 @@ void    TGeant3::ProdProcess(char* proc) const
            strncpy(proc,(char *)&fGctpol->namec1[mec - 101],4);
          }
          proc[4]='\0';
-         return;
+         return proc;
        }
       }
     }
     strcpy(proc,"UNKN");
   } else strcpy(proc,"NONE");
+  return proc;
 }
 
 //_____________________________________________________________________________
index 01a85d5fbde21f8463dee00d949a5d0f401c3b66..87ba5db8f2244c73290df104701b3f6b5647b00c 100644 (file)
@@ -577,10 +577,10 @@ public:
   Bool_t IsTrackDisappeared() const;
   Bool_t IsTrackStop() const;
   Bool_t IsTrackAlive() const;
-  Int_t   NSecondaries() const;
-  Int_t   CurrentEvent() const;
-  void    ProdProcess(char*) const;
-  void    GetSecondary(Int_t, Int_t&, TLorentzVector&, TLorentzVector&);
+  Int_t  NSecondaries() const;
+  Int_t  CurrentEvent() const;
+  const char*  ProdProcess() const;
+  void   GetSecondary(Int_t, Int_t&, TLorentzVector&, TLorentzVector&);
   void   StopTrack();
   void   StopEvent();
   Float_t MaxStep() const;
index 370fe22d31364ac3a145bbb3407e0841f68a6bf2..1f9e816e899104acced40f0dad9cf731b4560935 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.12  1999/11/02 17:05:06  fca
+Update GetSecondary arguments
+
 Revision 1.11  1999/09/29 09:24:31  fca
 Introduction of the Copyright and cvs Log
 
@@ -72,7 +75,7 @@ Bool_t  TGeant3::IsTrackOut() const {return 0;}
 Bool_t  TGeant3::IsTrackDisappeared() const {return 0;}
 Bool_t  TGeant3::IsTrackStop() const {return 0;}
 Int_t   TGeant3::NSecondaries() const {return 0;}
-void    TGeant3::ProdProcess(char*) const {}
+const char* TGeant3::ProdProcess() const {}
 void    TGeant3::GetSecondary(Int_t, Int_t&, 
                              TLorentzVector&, TLorentzVector&){}
 Float_t TGeant3::MaxStep() const {return 0;}
index 0e924e2162cbab6e5f58e7079f3af5c5277f5370..46e9869b1149ff6bbbe11be1531317f05ec3b274 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.9  1999/09/29 09:24:31  fca
+Introduction of the Copyright and cvs Log
+
 */
 
 #include "AliCallf77.h"
@@ -487,7 +490,7 @@ void gustep()
   Int_t ipp, jk, id, nt;
   Float_t polar[3]={0,0,0};
   Float_t mom[3];
-  char chproc[11];
+  const char *chproc;
   
   // --- Standard GEANT debug routine 
   TGeant3* geant3 = (TGeant3*) gMC;
@@ -501,7 +504,7 @@ void gustep()
   }
   // --- Add new created particles 
   if (gMC->NSecondaries() > 0) {
-    gMC->ProdProcess(chproc);
+    chproc=gMC->ProdProcess();
     for (jk = 0; jk < geant3->Gcking()->ngkine; ++jk) {
       ipp = Int_t (geant3->Gcking()->gkin[jk][4]+0.5);
       // --- Skip neutrinos!