]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Clean up coding convention violations
authoralla <alla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 23 Oct 2003 09:43:04 +0000 (09:43 +0000)
committeralla <alla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 23 Oct 2003 09:43:04 +0000 (09:43 +0000)
START/AliSTARTDigitizer.cxx
START/AliSTARTLoader.cxx
START/AliSTARTLoader.h
START/AliSTARTdigit.cxx
START/AliSTARTdigit.h
START/AliSTARThit.cxx
START/AliSTARThit.h

index b9b4b6ea3e5debab4d3972ec433abf9072e895da..1241418b0d58b1176e5740f3eb7768e8501c34ac 100644 (file)
@@ -195,10 +195,10 @@ void AliSTARTDigitizer::Exec(Option_t* /*option*/)
       //  cout<<" brHits hits "<<nhits<<endl;
       for (hit=0;hit<nhits;hit++) {
        startHit   = (AliSTARThit*) fHits->UncheckedAt(hit);
-       pmt=startHit->fPmt;
-       volume = startHit->fVolume;
+       pmt=startHit->Pmt();
+       volume = startHit->Volume();
        if(volume==1){
-         timeright[pmt] = startHit->fTime;
+         timeright[pmt] = startHit->Time();
          if(timeright[pmt]<besttimeright)
            //&&CountEr[pmt-1]>thresholdAmpl)
            {
@@ -206,7 +206,7 @@ void AliSTARTDigitizer::Exec(Option_t* /*option*/)
          } //timeright
        }//time for right shoulder
        if(volume==2){            
-         timeleft[pmt] = startHit->fTime;
+         timeleft[pmt] = startHit->Time();
          if(timeleft[pmt]<besttimeleft)
            //&&CountEl[pmt-1]>thresholdAmpl) 
            {
index c62135062c626b6aa09d0e76245937312367877d..2da2419d2b94893243df2d6b27ebe9847e4e10fe 100644 (file)
@@ -1,3 +1,12 @@
+//////////////////////////////////////////////////////////////////////////////
+//                                                                          //
+// Loader for START digits and RecPoints inherit from AliBaseDataLoader     //
+// STARTDigits is TObject  consists time flight signal from each PMTtube,   //
+// mean time right and left array (start signal) and time differnce         //
+// (vertex z position)                                                      // 
+// START RecPoints is TObject with mean time (start signal)                 // 
+// and evrtex position  (cm)                                                //
+/////////////////////////////////////////////////////////////////////////////
 #include "AliSTARTLoader.h"
 #include <AliRunLoader.h>
 #include "AliDataLoader.h"
@@ -30,7 +39,7 @@ AliSTARTLoader::AliSTARTLoader(const Char_t *name,TFolder *topfolder):
 {
 //ctor   
 
-  cout<<"  My AliDTARTLoader!!!!! "<<endl;
+  cout<<"  My AliSTARTLoader!!!!! "<<endl;
 
    
 }
index ec76fa667be631291ff9db3226b5e4cc24f5bb59..32a875084caaa7f31ed79e9e6bd233e4aa920f7b 100644 (file)
@@ -3,10 +3,9 @@
 
 #include <AliLoader.h>
 #include "AliDataLoader.h"
-#include <AliSTART.h>
 #include "AliSTARTdigit.h"
 #include "AliSTARTvertex.h"
-
+class AliSTART;
 class AliSTARTLoader: public AliLoader
  {
  public:
@@ -42,13 +41,13 @@ class AliSTARTLoader: public AliLoader
    Int_t     PostRecPoints(){return fVertexDataLoader.GetBaseDataLoader()->Post();}
    
 
-    // DATA
-    AliDataLoader fDigitsDataLoader;
-    
-    AliDataLoader fVertexDataLoader;
-    
+   // DATA
+   AliDataLoader fDigitsDataLoader; //digits loader
+   
+   AliDataLoader fVertexDataLoader;  // RecPoints (vertex position) loader
+   
  public:
-    ClassDef(AliSTARTLoader,1)
+   ClassDef(AliSTARTLoader,1)
       };
  
 #endif
index 584090b68742e4b1b8de5516dd85d5078661e8e7..3230ba19d276bca40bfe6c4db0967a892b52a6aa 100644 (file)
  **************************************************************************/
 
 /* $Id$ */
+/////////////////////////////////////////////////////////////////////////
+//  Class AliSTARTdigit for START digits
+//  fTimeRight  - right side TOF signal
+//  fTimeLeft  - left side TOF signal
+//  fTimeBestRight - TOF first particle on the right side
+//  TimeBestLeft - TOF first particle on the left side
+//  fTimeAverage = (fTimeBestRight + TimeBestLeft ) /2. START signal
+//  fTimeDiff = fTimeBestRight - TimeBestLeft  
+//
+///////////////////////////////////////////////////////////////////////
 
+
+
 #include <TArrayI.h>
 #include "AliSTARTdigit.h"
 #include <Riostream.h>
@@ -24,6 +37,7 @@ ClassImp(AliSTARTdigit)
 //------------------------------------
  AliSTARTdigit::AliSTARTdigit() : TObject()
 {
+  //ctor
   fTimeAverage=9999;
   fTimeDiff=9999;
   fTimeBestRight=9999;
@@ -37,6 +51,7 @@ ClassImp(AliSTARTdigit)
 //-----------------------------------
 void AliSTARTdigit::SetTimeRight (TArrayI &o)
 {
+  ////////////////////////////////////////
   fTimeRight = new TArrayI(12);  
 
   Int_t i;
@@ -49,7 +64,7 @@ void AliSTARTdigit::SetTimeRight (TArrayI &o)
 //--------------------------------------------
 void AliSTARTdigit::SetTimeLeft (TArrayI &o)
 {
-
+  //
   fTimeLeft  = new TArrayI(12);  
   Int_t i;
   for (i=0; i<12; i++)
@@ -61,7 +76,7 @@ void AliSTARTdigit::SetTimeLeft (TArrayI &o)
 //--------------------------------------------
 void AliSTARTdigit::GetTimeLeft (TArrayI &o)
 {
-
+  //
   Int_t i;
   for (i=0; i<12; i++)
     {
@@ -71,7 +86,7 @@ void AliSTARTdigit::GetTimeLeft (TArrayI &o)
 //--------------------------------------------
 void AliSTARTdigit::GetTimeRight (TArrayI &o)
 {
-
+  //
   Int_t i;
   for (i=0; i<12; i++)
     {
@@ -81,7 +96,7 @@ void AliSTARTdigit::GetTimeRight (TArrayI &o)
 //--------------------------------------------
 void AliSTARTdigit::GetADCLeft (TArrayI &o)
 {
-
+  //
   Int_t i;
   for (i=0; i<12; i++)
     {
@@ -91,7 +106,7 @@ void AliSTARTdigit::GetADCLeft (TArrayI &o)
 //--------------------------------------------
 void AliSTARTdigit::GetADCRight (TArrayI &o)
 {
-
+  //
  Int_t i;
   for (i=0; i<12; i++)
     {
@@ -101,7 +116,7 @@ void AliSTARTdigit::GetADCRight (TArrayI &o)
 //--------------------------------------------
 void AliSTARTdigit::SetADCLeft (TArrayI &o)
 {
-
+  //
   fADCLeft  = new TArrayI(12);  
   Int_t i;
   //  Float_t fProcessKoef=1; // for pb 0.001
@@ -127,6 +142,7 @@ void AliSTARTdigit::SetADCRight (TArrayI &o)
 //------------------------------------------------------
 void AliSTARTdigit::Print()
 {
+  //
   printf("AliSTARTdigit: fTimeAverage=%d, fTimeDiff=%d\n",
         fTimeAverage, fTimeDiff);
   cout<<" BestTimeRigh "<<fTimeBestRight<<
index 88d75683ce85492b95d4583f8d85aaa017282258..fca4beb074ed5fcacb48e24506ecaed57261a541 100644 (file)
@@ -5,7 +5,7 @@
 
 /* $Id$ */
 #include <TObject.h>
-#include <TArrayI.h>
+class TArrayI;
 
 //___________________________________________
 class AliSTARTdigit: public TObject  {
index d5b0c0e78e9fa2cdf100fec4af2bd123d079207a..badbccee80d8dfc8d1abe564ac70a58e80b90a1b 100644 (file)
  **************************************************************************/
 
 /* $Id$ */
+// AliSTARThit is the hit class for the START. Hits are the information
+// that comes from a Monte Carlo at each step as a particle mass through
+// sensitive detector elements as particles are transported through a
+// detector.
+//
+// Data members:
+//
+// Int_t fTrack
+//     See AliHit for a full description. The track number of the track
+// that made this hit.
+//
+// Float_t fX
+//     See AliHit for a full description. The global x position of the
+// hit (in the standard units of the Monte Carlo).
+//
+// Float_t fY
+//     See AliHit for a full description. The global y position of the
+// hit (in the standard units of the Monte Carlo).
+//
+// Float_t fZ
+//     See AliHit for a full description. The global z position of the
+// hit (in the standard units of the Monte Carlo).
+//
+// Int_t fStatus
+//     The track status flag. This flag indicates the track status
+// at the time of creating this hit. It is made up of the following 8
+// status bits from highest order to lowest order bits
+// 0           :  IsTrackAlive():    IsTrackStop():IsTrackDisappeared():
+// IsTrackOut():IsTrackExiting():IsTrackEntering():IsTrackInside()     .
+// See AliMC for a description of these functions. If the function is
+// true then the bit is set to one, otherwise it is zero.
+//
+// Int_t fVolume
+//     The number of the START detector that contains this hit.
+//     0 - right array; 1 - left array 
+// Int_t fPmt 
+// the number of PMT tube that contains hit
+// Float_t fEdep
+//     The energy lost by the particle during the step ending in this
+// hit. The units are those determined by the Monte Carlo.
+//
+// Float_t fTime
+//     The time of flight associated with the particle  in this
+// hit. The time is typically measured from the point of creation of the
+// original particle (if this particle is a daughter).  The units
+// are those determined by the Monte Carlo.
+///////////////////////////////////////////////////////////////////////
+  
 
 #include "AliSTARThit.h"
 
index acbca3ff25233021428b9485e4640eb002f8d107..706712e857048a9786077483bbaa0d3286b59f41 100644 (file)
  
 class AliSTARThit : public AliHit {
 public:
+  AliSTARThit(){}//Empty ctor
+  AliSTARThit(Int_t shunt, Int_t track, Int_t *vol, Float_t *hits);
+  virtual ~AliSTARThit(){}//Empty virtual dtor
+  Int_t Volume() const {return fVolume;}
+  Int_t Pmt() const {return fPmt;}
+  Float_t Particle() const {return fParticle;} 
+  Float_t Edep() const {return fEdep;}
+  Float_t Etot() const {return fEtot;}
+  Float_t Time() const {return fTime;}
+
+private:
   Int_t      fVolume;   //T0 arm mark
   Int_t      fPmt;      //PMT number in the arm  
   Int_t      fParticle; //Primary particle ID
@@ -19,10 +30,6 @@ public:
   Float_t    fEtot;     //Energy of primary particle at the entrance to radiator 
   Float_t    fTime;     //Primary particle TOF 
  
-public:
-   AliSTARThit(){}//Empty ctor
-   AliSTARThit(Int_t shunt, Int_t track, Int_t *vol, Float_t *hits);
-   virtual ~AliSTARThit(){}//Empty virtual dtor
   
    ClassDef(AliSTARThit,1)  //Hits for detector START
 };