]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSPIDv1.cxx
Coding convention
[u/mrichter/AliRoot.git] / PHOS / AliPHOSPIDv1.cxx
index c9adfaa2a3f929f8fb72721c0b3ffa5b76898a6f..8a0d43c0a9e50d15abadf2d7d484c3d0d75ca5c1 100644 (file)
@@ -38,7 +38,8 @@
 ClassImp( AliPHOSPIDv1) 
 
 //____________________________________________________________________________
-void  AliPHOSPIDv1::MakeParticles(TrackSegmentsList * trsl, RecParticlesList * rpl)
+void  AliPHOSPIDv1::MakeParticles(AliPHOSTrackSegment::TrackSegmentsList * trsl, 
+                                 AliPHOSRecParticle::RecParticlesList * rpl)
 {
   // Makes a RecParticle out of a TrackSegment
 
@@ -47,9 +48,9 @@ void  AliPHOSPIDv1::MakeParticles(TrackSegmentsList * trsl, RecParticlesList * r
   Int_t index = 0 ; 
   AliPHOSRecParticle * rp ; 
   Int_t type ; 
-  Int_t shower_profile;  // 0 narrow and 1 wide
-  Int_t cpv_detector;  // 1 hit and 0 no hit
-  Int_t pc_detector;  // 1 hit and 0 no hit
+  Int_t showerprofile;  // 0 narrow and 1 wide
+  Int_t cpvdetector;  // 1 hit and 0 no hit
+  Int_t pcdetector;  // 1 hit and 0 no hit
 
   while ( (tracksegment = (AliPHOSTrackSegment *)next()) ) {
     new( (*rpl)[index] ) AliPHOSRecParticle(tracksegment) ;
@@ -60,18 +61,24 @@ void  AliPHOSPIDv1::MakeParticles(TrackSegmentsList * trsl, RecParticlesList * r
 
  // Looking at the lateral development of the shower
     if ( ( lambda[0] > fLambda1m && lambda[0] < fLambda1M ) && // shower profile cut
-        ( lambda[1] > fLambda2m && lambda[1] < fLambda2M ) )         shower_profile = 0 ;   // NARROW PROFILE   
-    else      shower_profile = 1 ;// WIDE PROFILE
+        ( lambda[1] > fLambda2m && lambda[1] < fLambda2M ) )         
+      showerprofile = 0 ;   // NARROW PROFILE   
+    else      
+      showerprofile = 1 ;// WIDE PROFILE
   
     // Looking at the photon conversion detector
-    if( tracksegment->GetPpsdLowRecPoint() == 0 )   pc_detector = 0;  // No hit
-    else      pc_detector = 1;  // hit
+    if( tracksegment->GetPpsdLowRecPoint() == 0 )   
+      pcdetector = 0 ;  // No hit
+    else      
+      pcdetector = 1 ;  // hit
   
     // Looking at the photon conversion detector
-    if( tracksegment->GetPpsdUpRecPoint() == 0 )         cpv_detector = 0;  // No hit
-    else      cpv_detector = 1;  // Hit
+    if( tracksegment->GetPpsdUpRecPoint() == 0 )
+      cpvdetector = 0 ;  // No hit
+    else  
+      cpvdetector = 1 ;  // Hit
      
-    type = shower_profile + 2*pc_detector + 4*cpv_detector;
+    type = showerprofile + 2 * pcdetector + 4 * cpvdetector ;
     rp->SetType(type) ; 
     index++ ; 
   }