/*
$Log$
+Revision 1.2 1999/09/29 09:24:19 fca
+Introduction of the Copyright and cvs Log
+
*/
//////////////////////////////////////////////////////
/***********************************************************************/
-void AliGEODB::ProdProcess(char*) const
+const char* AliGEODB::ProdProcess() const
{
cout << " ProdProcess" << endl;
+ return 0;
}
/***********************************************************************/
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();
/*
$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
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
/*
$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
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
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;
/*
$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
}
//_____________________________________________________________________________
-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;
//
strncpy(proc,(char *)&fGctpol->namec1[mec - 101],4);
}
proc[4]='\0';
- return;
+ return proc;
}
}
}
strcpy(proc,"UNKN");
} else strcpy(proc,"NONE");
+ return proc;
}
//_____________________________________________________________________________
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;
/*
$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
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;}
/*
$Log$
+Revision 1.9 1999/09/29 09:24:31 fca
+Introduction of the Copyright and cvs Log
+
*/
#include "AliCallf77.h"
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;
}
// --- 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!