]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Check geometrical acceptance. (G. Martinez)
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 30 May 2002 14:59:12 +0000 (14:59 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 30 May 2002 14:59:12 +0000 (14:59 +0000)
EVGEN/AliGenParam.cxx

index 1812b835bdee605a8e470cfce65fce48e6047d5b..39f3d9bfe5256ed974e22494d59e44d54c0a7d20 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.37  2002/04/17 10:20:44  morsch
+Coding Rule violations corrected.
+
 Revision 1.36  2002/02/08 16:50:50  morsch
 Add name and title in constructor.
 
@@ -420,6 +423,11 @@ void AliGenParam::Generate()
 //
 // select decay particles
              Int_t np=fDecayer->ImportParticles(particles);
+
+             //  Selecting  GeometryAcceptance for particles fPdgCodeParticleforAcceptanceCut;
+             if (fGeometryAcceptance) 
+               if (!CheckAcceptanceGeometry(np,particles)) continue;
+             
              Int_t ncsel=0;
              Int_t* pFlag      = new Int_t[np];
              Int_t* pParent    = new Int_t[np];
@@ -520,6 +528,7 @@ void AliGenParam::Generate()
                          } else {
                              iparent = -1;
                          }
+                        
                          SetTrack(fTrackIt*trackIt[i], iparent, kf,
                                           pc, och, polar,
                                           0, kPDecay, nt, wgtch);