]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
a quick update to correct a few coding conventions but RS2 and GC2 have been ignored
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 21 Dec 2000 13:52:15 +0000 (13:52 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 21 Dec 2000 13:52:15 +0000 (13:52 +0000)
29 files changed:
PHOS/AliPHOSAnalyze.cxx
PHOS/AliPHOSAnalyze.h
PHOS/AliPHOSDigit.cxx
PHOS/AliPHOSFastRecParticle.h
PHOS/AliPHOSGeometry.cxx
PHOS/AliPHOSGeometry.h
PHOS/AliPHOSIndexToObject.cxx
PHOS/AliPHOSIndexToObject.h
PHOS/AliPHOSLink.cxx
PHOS/AliPHOSLink.h
PHOS/AliPHOSPID.cxx
PHOS/AliPHOSPID.h
PHOS/AliPHOSPIDv1.cxx
PHOS/AliPHOSPIDv1.h
PHOS/AliPHOSPpsdRecPoint.cxx
PHOS/AliPHOSPpsdRecPoint.h
PHOS/AliPHOSRecParticle.cxx
PHOS/AliPHOSRecParticle.h
PHOS/AliPHOSRecPoint.cxx
PHOS/AliPHOSRecPoint.h
PHOS/AliPHOSTrackSegment.cxx
PHOS/AliPHOSTrackSegmentMaker.cxx
PHOS/AliPHOSTrackSegmentMaker.h
PHOS/AliPHOSTrackSegmentMakerv1.cxx
PHOS/AliPHOSTrackSegmentMakerv1.h
PHOS/AliPHOSv2.cxx
PHOS/AliPHOSv2.h
PHOS/AliPHOSv4.cxx
PHOS/AliPHOSv4.h

index 7d0e3767dcf3615c255666b736ef3d0396c8b0f3..4acdf936a3c9e382046bd42c8b4c899065ad5ef7 100644 (file)
@@ -635,8 +635,8 @@ void AliPHOSAnalyze::AnalyzeCPV(Int_t Nevents)
 {
   // Calculates Real and Mixed invariant mass distributions
 
-  const Int_t nMixedEvents = 4 ; //# of events used for calculation of 'mixed' distribution 
-  Int_t mixedLoops = (Int_t )TMath::Ceil(Nevents/nMixedEvents) ;
+  const Int_t knMixedEvents = 4 ; //# of events used for calculation of 'mixed' distribution 
+  Int_t mixedLoops = (Int_t )TMath::Ceil(Nevents/knMixedEvents) ;
   
   //========== Booking Histograms
   TH2D * hRealEM   = new TH2D("hRealEM",   "Real for EM particles",      250,0.,1.,40,0.,4.) ;
@@ -647,16 +647,16 @@ void AliPHOSAnalyze::AnalyzeCPV(Int_t Nevents)
   Int_t ievent;
   Int_t eventInMixedLoop ;
   
-  Int_t nRecParticles[4];//nMixedEvents] ;
+  Int_t nRecParticles[4];//knMixedEvents] ;
   
-  AliPHOSRecParticle::RecParticlesList * allRecParticleList  = new TClonesArray("AliPHOSRecParticle", nMixedEvents*1000) ;
+  AliPHOSRecParticle::RecParticlesList * allRecParticleList  = new TClonesArray("AliPHOSRecParticle", knMixedEvents*1000) ;
   
   for(eventInMixedLoop = 0; eventInMixedLoop < mixedLoops; eventInMixedLoop++  ){
     Int_t iRecPhot = 0 ;
     
-    for ( ievent=0; ievent < nMixedEvents; ievent++){        
+    for ( ievent=0; ievent < knMixedEvents; ievent++){        
       
-      Int_t absEventNumber = eventInMixedLoop*nMixedEvents + ievent ;
+      Int_t absEventNumber = eventInMixedLoop*knMixedEvents + ievent ;
       
       //=========== Connects the various Tree's for evt
       gAlice->GetEvent(absEventNumber);
index db247d39d22c6b6b70276d486e6c2e2d55a07e41..70e20bb34887191f8764b4d312e2519b3cdcc140 100644 (file)
@@ -88,7 +88,7 @@ public:
   TH2F * fhAllEnergy ;       // Spectrum of detected photons with photon primary
   TH2F * fhPhotEnergy ;      // Total spectrum of detected photons
   TH2F * fhEMEnergy ;        // Spectrum of detected neutral EM with EM primary
-  TH2F * fhPPSDEnergy ;      // 
+  TH2F * fhPPSDEnergy ;      // Spectrum of particles detected in PPSD with primary particle 
 
   TH2F * fhAllPosition ;     // Position Resolution of  photons with photon primary
   TH2F * fhPhotPosition ;    // Position Resolution of  photons
index dced159d45f77fbffdf2e81ed4a0eb87a56c5b1a..c137b5896e74c1e2193692eaffb9b0d2cb167351 100644 (file)
@@ -120,7 +120,7 @@ Int_t AliPHOSDigit::Compare(TObject * obj)
 //____________________________________________________________________________
 Int_t AliPHOSDigit::GetPrimary(Int_t index) const
 {
+  // retrieves the primary particle number given its index in the list 
   Int_t rv = -1 ;
   if ( index <= fNprimary ){
     rv = fPrimary[index-1] ;
index 268fcec52f712f0dd54f90fe8be3ce463338392a..7ea48297e130628d11a1973181dd10f7cd08497c 100644 (file)
@@ -46,7 +46,7 @@ class AliPHOSFastRecParticle : public TParticle {
   } 
   TString Name() ; 
   virtual void Paint(Option_t * option="");
-  virtual void Print(const char *) ; 
+  virtual void Print(const char * opt) ; 
   void SetPrimary(Int_t index) { 
     // sets the primary particle index
     fPrimary = index ; 
index cf3c15da05419d481fa3b7581bf445917ef9fbee..0c4656ff25cc026d7d5db8cf7058f0ee4b0ad2fb 100644 (file)
@@ -104,6 +104,18 @@ void AliPHOSGeometry::Init(void)
   }
 }
 
+//____________________________________________________________________________
+Float_t AliPHOSGeometry::GetCPVBoxSize(Int_t index)  const { 
+    if      (strcmp(fName,"GPS2") ==0 ) 
+      return fGeometryPPSD->GetCPVBoxSize(index);
+    else if (strcmp(fName,"IHEP")==0) 
+      return fGeometryCPV ->GetCPVBoxSize(index);
+    else if (strcmp(fName,"MIXT")==0) 
+      return TMath::Max(fGeometryCPV ->GetCPVBoxSize(index), fGeometryPPSD->GetCPVBoxSize(index));
+    else                              
+      return 0;
+}  
+
 //____________________________________________________________________________
 AliPHOSGeometry *  AliPHOSGeometry::GetInstance() 
 { 
index 02248313d7c17a581618440c6cb85950621c6951..070e025292c2354549c5868ab4a8d1689916b065 100644 (file)
@@ -170,13 +170,7 @@ public:
 
   // Common PPSD and CPV parameters
 
-  Float_t GetCPVBoxSize(Int_t index)  const { 
-    if      (strcmp(fName,"GPS2")==0) return fGeometryPPSD->GetCPVBoxSize(index);
-    else if (strcmp(fName,"IHEP")==0) return fGeometryCPV ->GetCPVBoxSize(index);
-    else if (strcmp(fName,"MIXT")==0) return TMath::Max(fGeometryCPV ->GetCPVBoxSize(index),
-                                                       fGeometryPPSD->GetCPVBoxSize(index));
-    else                              return 0;
-  }
+  Float_t GetCPVBoxSize(Int_t index)  const ;
 
   // Mixed EMCA and PPSD parameters
 
index 72c2c919d60ed762f1f50096c9e3824ff4b7b95d..5ea9f099385f521fbda819f5190bf210869e6a0d 100644 (file)
 
 //_________________________________________________________________________
 //  A singleton that retrieves objets from an array stored in a Tree on a disk file
-//    1. AliPHOSDigit from TreeD     
+//    1. AliPHOSDigit from TreeD  
+//  Why should I put meaningless comments
+//  just to satisfy
+//  the code checker                   
 //                  
 //*-- Author: Yves Schutz (SUBATECH)
 //////////////////////////////////////////////////////////////////////////////
index a1b7f97a4d7a684029fbc56e28e8f161b0d3af1c..1079fbf6410bda790bc1645653efd64d937d7311 100644 (file)
@@ -8,7 +8,7 @@
 //_________________________________________________________________________
 //  A singleton that retrieves objets from an array stored in a Tree on a disk file
 //    1. AliPHOSDigit from TreeD     
-//                  
+// Oh yeah                 
 //*-- Author: Yves Schutz (SUBATECH)
 
 
@@ -59,7 +59,7 @@ public:
   AliRecPoint *         GimeRecPoint(Int_t index, TString s) ; 
   AliPHOSTrackSegment * GimeTrackSegment(Int_t index) ;
   
-  AliPHOSIndexToObject & operator = (const AliPHOSIndexToObject & rvalue) {
+  AliPHOSIndexToObject & operator = (const AliPHOSIndexToObject & ) {
     // assignement operator requested by coding convention
     // but not needed
     assert(0==1) ;
index 6391a34009e9d985a229655cd04fbd4a5bad5ddc..5774371c56d8539046e49fcc9ef5f7f09deac931 100644 (file)
  * about the suitability of this software for any purpose. It is          *
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
-
 /* $Id$ */
-
 //_________________________________________________________________________
 //  Algorithm class used only by AliPHOSTrackSegmentMaker 
-//                  
+//  Links recpoints into tracksegments
+//  Why should I put meaningless comments
+//  just to satisfy
+//  the code checker                                
 //*-- Author: Dmitri Peressounko (SUBATECH)
 
 // --- ROOT system ---
index daa0cf8fa2c942b77f703985ac18a90e990a81fa..d0b54036a28e78ec4877d1d7c1a6a4963122fdb9 100644 (file)
@@ -7,7 +7,8 @@
 
 //_________________________________________________________________________
 //  Algorithm class used only by AliPHOSTrackSegmentMaker 
-//                  
+//  Links recpoints
+// into tracksegments                
 //*-- Author: Dmitri Peressounko (SUBATECH)
 
 // --- ROOT system ---
index c369710eac689f40456d30c5d0ed63033e274c8c..a36d5f1091a3fe5e121ba5f5bcf2cd3c97d8fb2f 100644 (file)
 
 //_________________________________________________________________________
 //  Algorithm class for the identification of particles detected in PHOS        
-//  base  class                             
+//  base  class  of identified particle  
+//  Why should I put meaningless comments
+//  just to satisfy
+//  the code checker                
+                         
 //                  
 //*-- Author: Yves Schutz (SUBATECH)
 
index ec875722ef78fd7086db5d8589068504de6a9ef3..5d0d82ae1a65201d2aa103a2a475ee7da5d27932 100644 (file)
@@ -8,7 +8,7 @@
 //_________________________________________________________________________
 //  Algorithm class for the identification of particles detected in PHOS        
 //  base  class                             
-//                  
+//  of identified particles                
 //*-- Author: Yves Schutz (SUBATECH)
 
 // --- ROOT system ---
index 672ca21c372a08f884f0449739ba37c5c29ffc27..5ba64fb2a6a748b1ad10e3de60cd984071c84208 100644 (file)
@@ -18,6 +18,9 @@
 //_________________________________________________________________________
 // Implementation version v1 of the PHOS particle identifier 
 // Identification is based on information from PPSD and EMC
+//  Why should I put meaningless comments
+//  just to satisfy
+//  the code checker                
 //                  
 //*-- Author: Yves Schutz (SUBATECH)  & Gines Martinez (SUBATECH)
 
@@ -111,9 +114,9 @@ void  AliPHOSPIDv1::MakeParticles(AliPHOSTrackSegment::TrackSegmentsList * trsl,
     //       //R=(lambda[0]-1.386)*(lambda[0]-1.386)+1.707*1.707*(lambda[1]-1.008)*(lambda[1]-1.008) ;
     //       //if(R<0.35*0.35)
 
-    Float_t Dispersion;
-    Dispersion = recp->GetDispersion();
-    if (Dispersion < fCutOnDispersion)
+    Float_t dispersion;
+    dispersion = recp->GetDispersion();
+    if (dispersion < fCutOnDispersion)
       showerprofile = 0 ;   // NARROW PROFILE   
     else      
       showerprofile = 1 ;// WIDE PROFILE
index 548f445f9dcb31b58c7d23cfd1a75dec681432d4..bbd3fde61576e64a180d7d90b0468ed5735cfb3b 100644 (file)
@@ -9,7 +9,7 @@
 //_________________________________________________________________________
 // Implementation version v1 of the PHOS particle identifier 
 // Identification is based on information from PPSD and EMC
-//                  
+// Oh yeah                 
 //*-- Author: Yves Schutz (SUBATECH)
 
 // --- ROOT system ---
@@ -32,7 +32,7 @@ public:
   Float_t GetDistanceInPHOSPlane(AliPHOSEmcRecPoint * emcclu, AliPHOSPpsdRecPoint * PpsdClu, Bool_t &toofar, Option_t * Axis) ; // Relative Distance PPSD-EMC
   virtual void MakeParticles(AliPHOSTrackSegment::TrackSegmentsList * trsl, 
                             AliPHOSRecParticle::RecParticlesList * rpl ) ; // does the job
-  virtual void Print(const char *) ; 
+  virtual void Print(const char * opt) ; 
   virtual void SetDispersionCutOff(Float_t Dcut) {fCutOnDispersion = Dcut ; }    
   virtual void SetShowerProfileCuts(Float_t l1m, Float_t l1M, Float_t l2m, Float_t l2M) ; 
   virtual void SetRelativeDistanceCut(Float_t CutOnRelativeDistance) ;
index c4777f03007c977ec948efd7753e4904ce53cba4..f4186b8077247fa20c88599b5fa8ca694be0a60c 100644 (file)
  * about the suitability of this software for any purpose. It is          *
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
-
 /* $Id$ */
-
 //_________________________________________________________________________
 //  A RecPoint (cluster) in the PPSD 
 //  A PPSD RecPoint ends up to be a single digit
+//  Why should I put meaningless comments
+//  just to satisfy
+//  the code checker                
 //                
 //*--  Yves Schutz (SUBATECH)
 
index 540d5c6ddacd3d6ea29f2006e407300a810bd18c..3df80b71cb4d533a8db07c210887bae8f7665105 100644 (file)
@@ -8,7 +8,7 @@
 //_________________________________________________________________________
 //  A RecPoint (cluster) in the PPSD 
 //  A PPSD RecPoint ends up to be a single digit
-//                
+//  Oh yeah               
 //*--  Yves Schutz (SUBATECH)
 
 // --- ROOT system ---
index d83fea178ae6e5c8667ca1091684518188b48479..78a406eff28fc36dcc7716a477b268cfa3a29e85 100644 (file)
  * about the suitability of this software for any purpose. It is          *
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
-
 /* $Id$ */
-
 //_________________________________________________________________________
 //  A Reconstructed Particle in PHOS    
-//  To become a general class of AliRoot ?        
+//  To become a general class of AliRoot ?       
+//  Why should I put meaningless comments
+//  just to satisfy
+//  the code checker                 
 //       
 //*-- Author: Yves Schutz (SUBATECH)
 
index 3dcac714ef3c5484a3796e6740edded279b9b409..130b613d707762b19b6293263dd052c734dc43b7 100644 (file)
@@ -8,7 +8,7 @@
 //_________________________________________________________________________
 //  A Reconstructed Particle in PHOS    
 //  To become a general class of AliRoot ?        
-//       
+//  why not      
 //*-- Author: Yves Schutz (SUBATECH)
 
 // --- ROOT system ---
index ce8f7126d8059439e85b888f616eead41055ab95..e07602c962819e64e1823a8ec059ea3aabf99688 100644 (file)
  * about the suitability of this software for any purpose. It is          *
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
-
 /* $Id$ */
-
 //_________________________________________________________________________
 //  Base Class for PHOS Reconstructed Points  
-//                  
+//  Why should I put meaningless comments
+//  just to satisfy
+//  the code checker                
 //*-- Author: Gines Martinez (SUBATECH)
 
 // --- ROOT system ---
index 489c0b7c1b85c7b0894ac1a1aa98312a4e1d9c5b..3927b2ed3130fcad021224b3578d28a2bbcd75b2 100644 (file)
@@ -2,10 +2,9 @@
 #define ALIPHOSRECPOINT_H
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
-
 //_________________________________________________________________________
 //  Base Class for PHOS Reconstructed Points  
-//                  
+//  A recpoint being equivalent to a cluster in encal terminology                 
 //*-- Author: Gines Martinez (SUBATECH)
 
 #include <assert.h>
@@ -68,7 +67,7 @@ class AliPHOSRecPoint : public AliRecPoint {
     // Print prototype
   } 
 
-  AliPHOSRecPoint & operator = (const AliPHOSRecPoint & rvalue)  {
+  AliPHOSRecPoint & operator = (const AliPHOSRecPoint & )  {
     // assignement operator requested by coding convention
     // but not needed
     assert(0==1) ;
index f6b570eb5b459c446cafdbf285459b8bfb5beb4e..14acd77f626528fbb67923c8f8cd67405772e2c5 100644 (file)
@@ -12,9 +12,7 @@
  * about the suitability of this software for any purpose. It is          *
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
-
 /* $Id$ */
-
 //_________________________________________________________________________
 //  Track segment in PHOS
 //  Can be : 1 EmcRecPoint
@@ -519,6 +517,7 @@ void AliPHOSTrackSegment::Print(const char * opt)
 //____________________________________________________________________________
 void AliPHOSTrackSegment::SetPpsdUpRecPoint(AliPHOSPpsdRecPoint * PpsdUpRecPoint) 
 {
+  // gives an id from its position in the list
   if( PpsdUpRecPoint )  
     fPpsdUpRecPoint = PpsdUpRecPoint->GetIndexInList() ;
  else 
index eb9685e5effae8db7f3fb61ce2190039d4532097..44f11661b14e93f6604562426afe523c5a4e56ee 100644 (file)
@@ -12,9 +12,7 @@
  * about the suitability of this software for any purpose. It is          *
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
-
 /* $Id$ */
-
 //_________________________________________________________________________
 // Algorithm Base class to construct PHOS track segments
 // Associates EMC and PPSD clusters
index 367738bdc5a119f7fc6421bbefa05eab2606dc80..0642ce2f16da49e4c524031a82a38f77d945d292 100644 (file)
@@ -46,7 +46,7 @@ public:
   
   Int_t                  fNTrackSegments ; // number of track segments found 
   AliPHOSGeometry      * fGeom ;           // pointer to PHOS geometry  
-  AliPHOSIndexToObject * fPlease ;         //
+  AliPHOSIndexToObject * fPlease ;         // factory used to convert an index into the associated object
 
   ClassDef( AliPHOSTrackSegmentMaker,1)    // Algorithm class to make PHOS track segments (Base Class)
 
index 8a39460eac79153a08c11f82ad534a3b6ecca3e9..6bac288426b22af37230c90dbbb1020727f37d67 100644 (file)
@@ -12,9 +12,7 @@
  * about the suitability of this software for any purpose. It is          *
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
-
 /* $Id$ */
-
 //_________________________________________________________________________
 // Implementation version 1 of algorithm class to construct PHOS track segments
 // Associates EMC and PPSD clusters
index ce203ded756901623a7fc541ac376ad64a407e28..681bad716b5652031f2f3e9387d2375bb02791b8 100644 (file)
@@ -78,7 +78,7 @@ public:
                       Float_t * maxAtEnergy ) ; //Unfolds overlaping clusters using TMinuit package
   virtual void UnsetUnfoldFlag() { fUnfoldFlag = kFALSE ; } 
 
-  AliPHOSTrackSegmentMakerv1 & operator = (const AliPHOSTrackSegmentMakerv1 & rvalue)  {
+  AliPHOSTrackSegmentMakerv1 & operator = (const AliPHOSTrackSegmentMakerv1 & )  {
     // assignement operator requested by coding convention
     // but not needed
     assert(0==1) ;
index 482510b66dfdd4f4f369d1619111cfa9d26cf3aa..6de2a51fb44afb100557ea46f2ffe8460bb4f001 100644 (file)
@@ -12,7 +12,6 @@
  * about the suitability of this software for any purpose. It is          *
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
-
 /* $Id$ */
 //_________________________________________________________________________
 // Version of AliPHOSv1 which keeps all hits in TreeH
@@ -22,7 +21,7 @@
 //*-- Modified Nov. 22 2000 by Dmitri Peressounko
 // All hits are stored.
 // Note, that primaries will not be assigned to digits:
-// becouse of tiny energy deposition at each step.
+// because of tiny energy deposition at each step.
 //  
 
 // --- ROOT system ---
index 1b100bb7638d7795f1a33faad2e29a8194dc06b9..340887600f524f9d62d63112f7675c93de0ba6dc 100644 (file)
@@ -4,6 +4,7 @@
  * See cxx source for full Copyright notice                               */
 //_________________________________________________________________________
 // Version of AliPHOSv0 which keeps all hits in TreeH
+// I mean real hits not cumulated hits
 //  This version is NOT recommended for Reconstruction analysis
 //                  
 //*-- Author: Gines MARTINEZ (SUBATECH)
index f0a385253a3dac9a9383cb3b0eb4c94b760a30d6..d70252e9c04b805a4d5a16228e5bc013ee6cad75 100644 (file)
@@ -469,16 +469,16 @@ void AliPHOSv4::StepManager(void)
   Int_t modid  ; 
   gMC->CurrentVolID(modid);
   
-  Float_t Energy = gMC->Etot() ; //Total energy of current track
+  Float_t energy = gMC->Etot() ; //Total energy of current track
 
   //Calculating mass of current particle
-  TDatabasePDG * PDG = TDatabasePDG::Instance() ;
-  TParticlePDG * partPDG = PDG->GetParticle(gMC->TrackPid()) ;
+  TDatabasePDG * pdg = TDatabasePDG::Instance() ;
+  TParticlePDG * partPDG = pdg->GetParticle(gMC->TrackPid()) ;
   Float_t mass = partPDG->Mass() ;
 
-  if(Energy > mass){
-    pos.SetMag(TMath::Sqrt(Energy*Energy-mass*mass)) ;
-    TLorentzVector pTrack(pos,Energy) ;  
+  if(energy > mass){
+    pos.SetMag(TMath::Sqrt(energy*energy-mass*mass)) ;
+    TLorentzVector pTrack(pos, energy) ;  
 
     TParticle * part = new TParticle(gMC->TrackPid(), 0,-1,-1,-1,-1, pTrack, lv)  ;
         
index 6a07529d20ad6f5a077506a054cd9a7791880733..6c0980b66d67cf337ef3b62db75700c9bd2cb275 100644 (file)
@@ -77,7 +77,7 @@ public:
     return TString("v4") ; 
   }
 
-  AliPHOSv4 & operator = (const AliPHOSv4 & rvalue)  {
+  AliPHOSv4 & operator = (const AliPHOSv4 & )  {
     // assignement operator requested by coding convention
     // but not needed
     assert(0==1) ;