Coding convention
authordibari <dibari@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 23 Apr 2007 13:21:04 +0000 (13:21 +0000)
committerdibari <dibari@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 23 Apr 2007 13:21:04 +0000 (13:21 +0000)
15 files changed:
HMPID/AliHMPID.cxx
HMPID/AliHMPID.h
HMPID/AliHMPIDHit.cxx
HMPID/AliHMPIDHit.h
HMPID/AliHMPIDParam.cxx
HMPID/AliHMPIDParam.h
HMPID/AliHMPIDPreprocessor.cxx
HMPID/AliHMPIDPreprocessor.h
HMPID/AliHMPIDRecon.h
HMPID/AliHMPIDReconstructor.cxx
HMPID/AliHMPIDReconstructor.h
HMPID/AliHMPIDTracker.cxx
HMPID/AliHMPIDTracker.h
HMPID/AliHMPIDv0.h
HMPID/AliHMPIDv1.h

index 39be890bfd3c30d6cb8c8c9902bb2f39fb80bf83..223addbc465daaf184fb9eb590458a0a0dbc3cab 100644 (file)
@@ -26,7 +26,7 @@
 #include <TH1F.h>        //HitQA()
 #include <AliLog.h>      //in many methods to print AliInfo 
 
-Bool_t AliHMPID::fDoFeed=kTRUE;
+Bool_t AliHMPID::fgDoFeed=kTRUE;
  
 ClassImp(AliHMPID)    
 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
index 48f16a3d1cf809e3dbd0e5576e48114dfc442c19..b648eecb82c579583b77ba9f3c8d4ec6b24986e2 100644 (file)
@@ -7,7 +7,9 @@
 #include <TClonesArray.h> //XxxCreate() 
 #include <TObjArray.h>    //fDig,fClu field
 
-
+//.
+//HMPID base class
+//.
 
 class AliHMPID : public AliDetector //TObject-TNamed-AliModule-AliDetector-AliHMPID
 {
@@ -27,7 +29,7 @@ public:
           void  MakeBranch      (Option_t *opt="");            //from AliModule invokde from AliRun::Tree2Tree() to make requested HMPID branch
           void  SetTreeAddress  (                );            //from AliModule invoked from AliRun::GetEvent(), AliLoader::SetTAddrInDet()
   virtual void  StepManager     (                )=0;          //from AliModule invoked from AliMC
-          void  DoFeed          (Bool_t doFeed   ){fDoFeed=doFeed;} // Set feedback photons
+          void  DoFeed          (Bool_t doFeed   ){fgDoFeed=doFeed;} // Set feedback photons
 //private part +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
   void          HitCreate(         )     {if(fHits)return; fHits=new TClonesArray("AliHMPIDHit"); fNhits=0;     }//create hits list
               
@@ -49,7 +51,7 @@ public:
     fClu=new TObjArray(7); for(Int_t i=0;i<7;i++)fClu->AddAt(new TClonesArray("AliHMPIDCluster"),i);            }//create clusters list
          void   CluReset (         )     {if(fClu)for(int i=0;i<7;i++)fClu->At(i)->Clear();                     }//clean clusters list
 protected:  
-  static  Bool_t fDoFeed;
+  static  Bool_t fgDoFeed;                        //Flag to switch on/off Feedback photon creation
   TClonesArray         *fSdi;                     //! list of sdigits  
   TObjArray            *fDig;                     //! each chamber holds it's one list of digits
   TObjArray            *fClu;                     //! each chamber holds it's one list of clusters 
index d1c2989bdf6c4ae8fa888d8cda41440f8b1cfa02..5f0ccb23ff1a525c097bc8029f75a05bae03fa48 100644 (file)
@@ -22,6 +22,7 @@ ClassImp(AliHMPIDHit)
 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 void AliHMPIDHit::Draw(Option_t*)
 {
+// Draw option of the hits in the display
   Int_t iMark;
   switch(Pid()){
     case 50000050:   iMark=4;  break;
@@ -29,7 +30,7 @@ void AliHMPIDHit::Draw(Option_t*)
     default:         iMark=26; break;
   }    
   TMarker *pMark=new TMarker(fLx,fLy,iMark); pMark->SetMarkerColor(kRed); pMark->Draw();
-}
+}//Draw
 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 void AliHMPIDHit::Hit2Sdi(TClonesArray *pSdiLst,Int_t iHow)const
 {
@@ -50,7 +51,7 @@ void AliHMPIDHit::Hit2Sdi(TClonesArray *pSdiLst,Int_t iHow)const
       new((*pSdiLst)[iSdiCnt++]) AliHMPIDDigit(dig);
     }
   }
-}
+}//Hit2Sdi
 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 void AliHMPIDHit::Print(Option_t *opt)const
 {
@@ -74,5 +75,5 @@ void AliHMPIDHit::Print(Option_t *opt)const
   Printf("%sHIT: ch=%i                 (%7.3f,%7.3f) Q=%8.3f TID= %5i, MARS=(%7.2f,%7.2f,%7.2f) %s  %s",
          opt,  Ch(),                    fLx,fLy,  fQ,     fTrack,         X(),  Y(),  Z(),   sPart, 
                         (AliHMPIDDigit::IsInDead(LorsX(),LorsY()))? "IN DEAD ZONE":"");
-}
+}//Print
 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
index 942a762fcac03ebcfc8d6d9501abcc0d8dee121b..40b1064c398b24572828356181f5422051fb8595 100644 (file)
@@ -2,7 +2,10 @@
 #define AliHMPIDHit_h
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
-
+//.
+// HMPID base class to produce hits
+//.
+//.
 #include <AliHit.h>           //base class
 #include <TVector3.h>         //ctor
 #include "AliHMPIDDigit.h"    //QdcTot() 
index 5ae43cbbb16eb60e592a160a5d37b0a1a569d29a..c7a0c859a1e9a96bfad98bb7398ef903f05c4fde 100644 (file)
@@ -70,12 +70,12 @@ void AliHMPIDParam::IdealPosition(Int_t iCh, TGeoHMatrix *pMatrix)
 // Construct ideal position matrix for a given chamber
 // Arguments: iCh- chamber ID; pMatrix- pointer to precreated unity matrix where to store the results
 //   Returns: none
-  const Double_t kAngHor=19.5; //  horizontal angle between chambers  19.5 grad
-  const Double_t kAngVer=20;   //  vertical angle between chambers    20   grad     
-  const Double_t kAngCom=30;   //  common HMPID rotation with respect to x axis  30   grad     
-  const Double_t trans[3]={490,0,0}; //center of the chamber is on window-gap surface
-  pMatrix->RotateY(90);           //rotate around y since initial position is in XY plane -> now in YZ plane
-  pMatrix->SetTranslation(trans); //now plane in YZ is shifted along x 
+  const Double_t kAngHor=19.5;        //  horizontal angle between chambers  19.5 grad
+  const Double_t kAngVer=20;          //  vertical angle between chambers    20   grad     
+  const Double_t kAngCom=30;          //  common HMPID rotation with respect to x axis  30   grad     
+  const Double_t kTrans[3]={490,0,0}; //  center of the chamber is on window-gap surface
+  pMatrix->RotateY(90);               //  rotate around y since initial position is in XY plane -> now in YZ plane
+  pMatrix->SetTranslation(kTrans);    //  now plane in YZ is shifted along x 
   switch(iCh){
     case 0:                pMatrix->RotateY(kAngHor);  pMatrix->RotateZ(-kAngVer);  break; //right and down 
     case 1:                                            pMatrix->RotateZ(-kAngVer);  break; //down              
index 1e0d7eb98a58ffc669e93b1e723750ba0a6ad922..82f950f3c53145bb4907fdbb474bf99c3c551cfc 100644 (file)
@@ -22,11 +22,11 @@ public:
          void     Print(Option_t *opt="") const;                                         //print current parametrization
   static inline AliHMPIDParam* Instance();                                //pointer to AliHMPIDParam singleton
   
-                Double_t   MeanIdxRad              () {return 1.29204;}   //<--TEMPORAR--> to be removed in future  Mean ref index C6F14
-                Double_t   MeanIdxWin              () {return 1.57819;}   //<--TEMPORAR--> to be removed in future. Mean ref index quartz
-                Float_t    DistCut                 () {return 1.0;}       //<--TEMPORAR--> to be removed in future. Cut for MIP-TRACK residual 
-                Float_t    QCut                    () {return 100;}       //<--TEMPORAR--> to be removed in future. Separation PHOTON-MIP charge 
-                Float_t    MultCut                 () {return 200;}       //<--TEMPORAR--> to be removed in future. Multiplicity cut to activate WEIGHT procedure 
+                Double_t   MeanIdxRad              ()const {return 1.29204;}   //<--TEMPORAR--> to be removed in future  Mean ref index C6F14
+                Double_t   MeanIdxWin              ()const {return 1.57819;}   //<--TEMPORAR--> to be removed in future. Mean ref index quartz
+                Float_t    DistCut                 ()const {return 1.0;}       //<--TEMPORAR--> to be removed in future. Cut for MIP-TRACK residual 
+                Float_t    QCut                    ()const {return 100;}       //<--TEMPORAR--> to be removed in future. Separation PHOTON-MIP charge 
+                Float_t    MultCut                 ()const {return 200;}       //<--TEMPORAR--> to be removed in future. Multiplicity cut to activate WEIGHT procedure 
   static        Int_t      Stack(Int_t evt=-1,Int_t tid=-1);              //Print stack info for event and tid
   static        Int_t      StackCount(Int_t pid,Int_t evt);               //Counts stack particles of given sort in given event  
   static        void       IdealPosition(Int_t iCh,TGeoHMatrix *m);       //ideal position of given chamber 
@@ -45,9 +45,9 @@ public:
 protected:
          AliHMPIDParam();             //default ctor is protected to enforce it to be singleton
   static AliHMPIDParam *fgInstance;   //static pointer  to instance of AliHMPIDParam singleton
-  TGeoHMatrix *fM[7];                //pointers to matrices defining HMPID chambers rotations-translations
-  Float_t fX;                        //x shift of LORS with respect to rotated MARS 
-  Float_t fY;                        //y shift of LORS with respect to rotated MARS   
+  TGeoHMatrix *fM[7];                 //pointers to matrices defining HMPID chambers rotations-translations
+  Float_t fX;                         //x shift of LORS with respect to rotated MARS 
+  Float_t fY;                         //y shift of LORS with respect to rotated MARS   
   ClassDef(AliHMPIDParam,0)           //HMPID main parameters class
 };
 
index 8fbebad47fc2452d512ea0dfef18354c538d6fd5..232a7176f913efed3b5a4bd1ae4ec4a8dc11f93e 100644 (file)
@@ -7,15 +7,17 @@
 #include <TGraph.h>           //Process()
 #include <AliLog.h>           //Process() 
 
+//.
+// HMPID Preprocessor base class
+//.
+//.
+//.
 ClassImp(AliHMPIDPreprocessor)
 
-char *AliHMPIDPreprocessor::fP ="HMP_DET/HMP_MP%i/HMP_MP%i_GAS/HMP_MP%i_GAS_PMWC.actual.value";
-char *AliHMPIDPreprocessor::fT1="HMP_DET/HMP_MP%i/HMP_MP%i_LIQ_LOOP.actual.sensors.Rad%iIn_Temp";
-char *AliHMPIDPreprocessor::fT2="HMP_DET/HMP_MP%i/HMP_MP%i_LIQ_LOOP.actual.sensors.Rad%iOut_Temp";
-char *AliHMPIDPreprocessor::fHV="HMP_DET/HMP_MP%i/HMP_MP%i_PW/HMP_MP%i_SEC0/HMP_MP%i_SEC0_HV.actual.vMon";
-
-
-
+char *AliHMPIDPreprocessor::fgP ="HMP_DET/HMP_MP%i/HMP_MP%i_GAS/HMP_MP%i_GAS_PMWC.actual.value";
+char *AliHMPIDPreprocessor::fgT1="HMP_DET/HMP_MP%i/HMP_MP%i_LIQ_LOOP.actual.sensors.Rad%iIn_Temp";
+char *AliHMPIDPreprocessor::fgT2="HMP_DET/HMP_MP%i/HMP_MP%i_LIQ_LOOP.actual.sensors.Rad%iOut_Temp";
+char *AliHMPIDPreprocessor::fgHV="HMP_DET/HMP_MP%i/HMP_MP%i_PW/HMP_MP%i_SEC0/HMP_MP%i_SEC0_HV.actual.vMon";
 
 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 void AliHMPIDPreprocessor::Initialize(Int_t run, UInt_t startTime,UInt_t endTime)
index 2f68193d656f1b5ff2a247f32564272605302b63..7f8736a4505aa99e2fd333c545b64e6a162f74e3 100644 (file)
@@ -3,6 +3,9 @@
 
 #include <AliPreprocessor.h> //base class
 
+//.
+//HMPID Preprocessor base class 
+//.
 class TMap;
 
 class AliHMPIDPreprocessor : public AliPreprocessor
@@ -10,11 +13,12 @@ class AliHMPIDPreprocessor : public AliPreprocessor
 public:
            AliHMPIDPreprocessor(AliShuttleInterface* pShuttle):AliPreprocessor("HMP",pShuttle) {}
   virtual ~AliHMPIDPreprocessor(                             )                                 {}
-  static char    *fP;     // Name of the aliases provided by the DCS
-  static char    *fHV;     // Name of the aliases provided by the DCS
-  static char    *fT1; // Name of the aliases provided by the DCS
-  static char    *fT2; // Name of the aliases provided by the DCS
+  
 protected:
+  static char    *fgP;     // Name of the aliases provided by the DCS
+  static char    *fgHV;    // Name of the aliases provided by the DCS
+  static char    *fgT1;    // Name of the aliases provided by the DCS
+  static char    *fgT2;    // Name of the aliases provided by the DCS
   virtual void   Initialize(Int_t run, UInt_t startTime, UInt_t endTime);
   virtual UInt_t Process   (TMap* pDcsMap                              );
   ClassDef(AliHMPIDPreprocessor, 0);
index f2060c74412c8e23d8c8ce0da3a8a3fe64cc2a0a..9febcc33ebd61e812ed147bb280a11d7dffa6ff9 100644 (file)
@@ -46,7 +46,8 @@ public :
   Double_t SigCrom      (Double_t ckovTh,Double_t ckovPh,Double_t beta                      )const;//error due to unknonw photon energy
   Double_t Sigma2       (Double_t ckovTh,Double_t ckovPh                                    )const;//photon candidate sigma
   enum ETrackingFlags {kMipDistCut=-9,kMipQdcCut=-5,kNoPhotAccept=-11};
-  
+
+private:  
   static const Double_t fgkRadThick;                      //radiator thickness
   static const Double_t fgkWinThick;                      //window thickness
   static const Double_t fgkGapThick;                      //proximity gap thickness
index 8aa200f0241763c9c25d8edbf582735603d4cf8d..0c1c106e275bd7dfa1a590a085d3350998d5df18 100644 (file)
  * about the suitability of this software for any purpose. It is          *
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
-
+//.
+// HMPID base class to reconstruct an event
+//.
+//.
+//.
 #include "AliHMPIDReconstructor.h" //class header
 #include "AliHMPID.h"              //Reconstruct() 
 #include "AliHMPIDCluster.h"       //Dig2Clu()
index 70838f140abc634049b301bb982bc8c24bab5d20..7b381fae7994e872cac2c97557e16dc05122a4ad 100644 (file)
@@ -2,7 +2,9 @@
 #define AliHMPIDReconstructor_h
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
-
+//.
+// HMPID base class to reconstruct an event
+//.
 #include <AliReconstructor.h>       //base class
 #include "AliHMPIDTracker.h"         //CreateTracker()
 #include <TMatrixF.h>               //UseDig()
index d479ae72e5b602cbc26038cae53dc4a441084570..aef985793de6ba903555d2f86086b7aabc17b1bd 100644 (file)
@@ -8,7 +8,11 @@
 #include <AliAlignObj.h>         //GetTrackPoint()
 #include <AliCDBManager.h>
 #include <AliCDBEntry.h>
-
+//.
+// HMPID base class fo tracking
+//.
+//.
+//.
 ClassImp(AliHMPIDTracker)
 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 AliHMPIDTracker::AliHMPIDTracker():AliTracker()
index 9253f018d1324e3c7e342d3ea14d8af241968493..216a86a3b13e7160566c611ef8ec05eab97a464b 100644 (file)
@@ -4,7 +4,11 @@
 #include <AliTracker.h> //base class
 #include "AliHMPID.h"   //Recon()
 #include <AliRun.h>     //Recon()
-#include <TF1.h>        //field 
+#include <TF1.h>        //field
+//.
+// HMPID base class fo tracking
+//.
+
 class AliESD;      //Recon()     
 class AliESDtrack; //IntTrkCha()
 class AliHMPIDTracker : public AliTracker
@@ -17,7 +21,7 @@ public:
          Bool_t      GetTrackPoint  (Int_t idx,AliTrackPoint &pt)const;             //             from AliTracker  
          Int_t       Clusters2Tracks(AliESD *                   )       {return 0;} //pure virtual from AliTracker 
          Int_t       LoadClusters   (TTree *pCluTr              );                  //pure virtual from AliTracker   
-         Int_t       PropagateBack  (AliESD *                   );                  //pure virtual from AliTracker   
+         Int_t       PropagateBack  (AliESD *pEsd               );                  //pure virtual from AliTracker   
          Int_t       RefitInward    (AliESD *                   )       {return 0;} //pure virtual from AliTracker 
          void        UnloadClusters (                           )       {         } //pure virtual from AliTracker 
 //private part  
index 2ddccb076b91aa6e43958e324814781a1b5b5e71..0ac9732b4b20520b04ba14821b91f402d5c5ca6f 100644 (file)
@@ -3,7 +3,9 @@
 
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
-
+//.
+//HMPID v0 implementation.
+//.
 #include "AliHMPID.h"
 
 class AliHMPIDv0 : public AliHMPID 
index 9db5478139c265188c8699ec2212f7360172cb57..a42dcf10490c3df4518acb003b7adf62ff179603 100644 (file)
@@ -3,7 +3,9 @@
 
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
-
+//
+//HMPID base class of geometry 
+//
 #include "AliHMPID.h"             //base class 
 #include "AliHMPIDDigitizer.h"    //CreateDigitizer()
 
@@ -17,14 +19,14 @@ public:
           void    AddAlignableVolumes(                               )const;                                   //from AliModule invoked from AliMC    
           void    CreateMaterials  (                                 );                                        //from AliModule invoked from AliMC
           void    CreateGeometry   (                                 );                                        //from AliModule invoked from AliMC
-  AliDigitizer*   CreateDigitizer  (AliRunDigitizer *m               )const{return new AliHMPIDDigitizer(m);}   //from AliModule invoked from AliSimulation::RunDigitization()
+  AliDigitizer*   CreateDigitizer  (AliRunDigitizer *m               )const{return new AliHMPIDDigitizer(m);}  //from AliModule invoked from AliSimulation::RunDigitization()
           void    Digits2Raw       (                                 );                                        //from AliModule invoked from AliSimulation::WriteRawFiles()
   virtual void    DefineOpticalProperties();                                                                   //from AliModule invoked from AliMC::ConstructOpGeometry() to set Cerenkov properties
           void    Hits2SDigits     (                                 );                                        //from AliModule invoked from AliSimulation::RunSDigitization()
           void    Init             (                                 );                                        //from AliModule invoked from AliMC::InitGeometry()
           Int_t   IsVersion        (                                 )const{return 1;                      }   //from AliModule not used
           void    Print            (const Option_t *opt=""           )const;                                   //from TObject
-          Bool_t  Raw2SDigits      (AliRawReader *                   );                                        //from AliMOdule invoked from AliSimulation  
+          Bool_t  Raw2SDigits      (AliRawReader *pRR                );                                        //from AliMOdule invoked from AliSimulation  
           void    StepManager      (                                 );                                        //from AliModule invoked from AliMC::Stepping()
 //private part++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
           void    GenFee           (Float_t qtot                     );                                        //generates feedback photons