Updated AliTrackReference class (S.Radomski)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 12 Feb 2003 10:39:08 +0000 (10:39 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 12 Feb 2003 10:39:08 +0000 (10:39 +0000)
ITS/AliITSvPPRasymm.cxx
ITS/AliITSvPPRasymmFMD.cxx
ITS/AliITSvSPD02.cxx

index 66a2ed8126c118aa084d4b5810ed6c6bc810290b..57f6bca4f493e0a817c3330ef4079b2af60a7644 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.62  2003/01/16 08:10:13  hristov
+Correcting usage of string arrays (valgrind)
+
 Revision 1.61  2002/11/21 23:05:27  alibrary
 Removing AliMC and AliMCProcess
 
@@ -29372,16 +29375,10 @@ void AliITSvPPRasymm::StepManager(){
     static Int_t stat0=0;
     if((id=gMC->CurrentVolID(copy) == fIDMother)&&
        (gMC->IsTrackEntering()||gMC->IsTrackExiting())){
-       gMC->TrackPosition(position); // Get Position
-       gMC->TrackMomentum(momentum); // Get Momentum
        copy = fTrackReferences->GetEntriesFast();
        TClonesArray &lTR = *fTrackReferences;
        // Fill TrackReference structure with this new TrackReference.
-       AliTrackReference *tr = new(lTR[copy]) AliTrackReference();
-       tr->SetTrack(gAlice->CurrentTrack());
-       tr->SetPosition(position.X(),position.Y(),position.Z());
-       tr->SetMomentum(momentum.Px(),momentum.Py(),momentum.Pz());
-       tr->SetLength(gMC->TrackLength());
+       new(lTR[copy]) AliTrackReference(gAlice->CurrentTrack(),gMC);
     } // if Outer ITS mother Volume
     if(!(this->IsActive())){
        return;
index 2c7e34787ac2b67b7fd0d7337494aa09a5e2c085..bd9ccb7e8f34ff0f10d81714c1f7bda6af14a39a 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.9  2002/11/21 23:05:28  alibrary
+Removing AliMC and AliMCProcess
+
 Revision 1.8  2002/11/14 15:09:58  nilsen
 Fixed problem of elements of a Mixture having zero concentration. This was
 done by reordering some of the elements such that those which may have
@@ -5219,16 +5222,10 @@ void AliITSvPPRasymmFMD::StepManager(){
     static Int_t stat0=0;
     if((id=gMC->CurrentVolID(copy) == fIDMother)&&
        (gMC->IsTrackEntering()||gMC->IsTrackExiting())){
-       gMC->TrackPosition(position); // Get Position
-       gMC->TrackMomentum(momentum); // Get Momentum
        copy = fTrackReferences->GetEntriesFast();
        TClonesArray &lTR = *fTrackReferences;
        // Fill TrackReference structure with this new TrackReference.
-       AliTrackReference *tr = new(lTR[copy]) AliTrackReference();
-       tr->SetTrack(gAlice->CurrentTrack());
-       tr->SetPosition(position.X(),position.Y(),position.Z());
-       tr->SetMomentum(momentum.Px(),momentum.Py(),momentum.Pz());
-       tr->SetLength(gMC->TrackLength());
+       new(lTR[copy]) AliTrackReference(gAlice->CurrentTrack(),gMC);
     } // if Outer ITS mother Volume
     if(!(this->IsActive())){
        return;
index 3486ba46b882154c191db848a40be23a254fd519..9ee2a57287c03867298b1ab8ab708f4cce234fb7 100644 (file)
 
 /*
 $Log$
+Revision 1.1  2002/12/05 20:07:25  nilsen
+Adding new SPD 2002 test-beam geometry, with Config file (setup for testing,
+50 pions in one event and not 50 events with one pion).
+
 */
 #include <Riostream.h>
 #include <stdio.h>
@@ -680,16 +684,10 @@ void AliITSvSPD02::StepManager(){
     static Int_t stat0=0;
     if((id=gMC->CurrentVolID(copy) == fIDMother)&&
        (gMC->IsTrackEntering()||gMC->IsTrackExiting())){
-       gMC->TrackPosition(position); // Get Position
-       gMC->TrackMomentum(momentum); // Get Momentum
        copy = fTrackReferences->GetEntriesFast();
        TClonesArray &lTR = *fTrackReferences;
        // Fill TrackReference structure with this new TrackReference.
-       AliTrackReference *tr = new(lTR[copy]) AliTrackReference();
-       tr->SetTrack(gAlice->CurrentTrack());
-       tr->SetPosition(position.X(),position.Y(),position.Z());
-       tr->SetMomentum(momentum.Px(),momentum.Py(),momentum.Pz());
-       tr->SetLength(gMC->TrackLength());
+       new(lTR[copy]) AliTrackReference(gAlice->CurrentTrack(),gMC);
     } // if Outer ITS mother Volume
     if(!(this->IsActive())){
        return;