]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Coding convention violation corrections
authoralibrary <alibrary@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 28 Apr 2004 10:01:42 +0000 (10:01 +0000)
committeralibrary <alibrary@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 28 Apr 2004 10:01:42 +0000 (10:01 +0000)
STEER/AliModule.cxx
STEER/AliModule.h
STEER/AliRunDigitizer.cxx
STEER/AliRunDigitizer.h
STEER/AliTracker.h

index 9937e755f543e9f5b833f159a1f2b80ecde8e663..f7f2293b170e07d73b0163f6f71081a5cde03c5c 100644 (file)
@@ -735,7 +735,7 @@ void AliModule::ResetTrackReferences()
  
 //_____________________________________________________________________________
 
-AliLoader*  AliModule::MakeLoader(const char* /*topfoldername*/) 
+AliLoader*  AliModule::MakeLoader(const char* /*topfoldername*/) const
  {
    return 0x0;
  }//skowron   
@@ -818,6 +818,9 @@ void AliModule::MakeBranchTR(Option_t */*option*/)
 //_____________________________________________________________________________
 TTree* AliModule::TreeTR()
 {
+  //
+  // Return TR tree pointer
+  //
   if ( fRunLoader == 0x0)
    {
      Error("TreeTR","Can not get the run loader");
index 1f36e59fc4ba5e3a87c944db67b1fba0d6e4fd47..95fbffc3b219fd821e63469f40b79eee0c784d51 100644 (file)
@@ -5,11 +5,17 @@
 
 /* $Id$ */
 
-#include "Riostream.h"
+//
+// This is the basic class for any
+// ALICE detector module, whether it is 
+// sensitive or not. Detector classes depend
+// on this.
+//
 
-#include "TAttLine.h"
-#include "TAttMarker.h"
-#include "TNamed.h"
+#include <Riostream.h>
+#include <TAttLine.h>
+#include <TAttMarker.h>
+#include <TNamed.h>
 
 #include "AliRndm.h"
 
@@ -115,7 +121,7 @@ public:
   virtual void        MakeBranch(Option_t * /*opt =" "*/) {}
   virtual void        MakeTree(Option_t *) {}//skowron 
 
-  virtual AliLoader*  MakeLoader(const char* topfoldername);//skowron   
+  virtual AliLoader*  MakeLoader(const char* topfoldername) const;//skowron   
   virtual AliLoader*  GetLoader() const {return 0x0;} //skowron
   
 
index 77db783d9459f36bef3e73f3cada70b8b7af6560..0ffabca9a743e5f1c1195191d6aae047103ed11a 100644 (file)
 
 // system includes
 
-#include <Riostream.h>
-
 // ROOT includes
 
-#include "TFile.h"
-#include "TList.h"
-#include "TTree.h"
+#include <Riostream.h>
+class TList;
 
 // AliROOT includes
 
 #include "AliDigitizer.h"
-#include "AliMergeCombi.h"
-#include "AliRunLoader.h"
+#include "AliHeader.h"
 #include "AliLoader.h"
+#include "AliMergeCombi.h"
 #include "AliRun.h"
 #include "AliRunDigitizer.h"
-#include "AliStream.h"
-#include "AliHeader.h"
+#include "AliRunLoader.h"
 
 ClassImp(AliRunDigitizer)
 
@@ -134,10 +130,9 @@ AliRunDigitizer::AliRunDigitizer():
  fCombinationFileName(0),
  fDebug(0)
 {
-// root requires default ctor, where no new objects can be created
-// do not use this ctor, it is supplied only for root needs
-
-//  fOutputStream = 0x0;
+  //
+  // root requires default ctor, where no new objects can be created
+  // do not use this ctor, it is supplied only for root needs
 }
 
 //_______________________________________________________________________
@@ -161,7 +156,10 @@ AliRunDigitizer::AliRunDigitizer(Int_t nInputStreams, Int_t sperb):
  fDebug(0)
 
 {
-// ctor which should be used to create a manager for merging/digitization
+  //
+  // ctor which should be used to create 
+  // a manager for merging/digitization
+  //
   if (nInputStreams == 0) 
    {//kidding
     Fatal("AliRunDigitizer","Specify nr of input streams");
@@ -213,13 +211,19 @@ AliRunDigitizer::AliRunDigitizer(const AliRunDigitizer& dig):
 
 void AliRunDigitizer::Copy(TObject&) const
 {
+  //
+  // Non implemented copy function
+  //
   Fatal("Copy","Not installed\n");
 }
 
 //_______________________________________________________________________
 
-AliRunDigitizer::~AliRunDigitizer() {
-// dtor
+AliRunDigitizer::~AliRunDigitizer() 
+{
+  //
+  // dtor
+  //
   delete fInputStreams;
   delete fCombi;
   delete fOutRunLoader;
@@ -227,7 +231,9 @@ AliRunDigitizer::~AliRunDigitizer() {
 //_______________________________________________________________________
 void AliRunDigitizer::AddDigitizer(AliDigitizer *digitizer)
 {
-// add digitizer to the list of active digitizers
+  //
+  // add digitizer to the list of active digitizers
+  //
   this->Add(digitizer);
 }
 //_______________________________________________________________________
@@ -292,7 +298,9 @@ void AliRunDigitizer::Digitize(Option_t* option)
 //_______________________________________________________________________
 Bool_t AliRunDigitizer::ConnectInputTrees()
 {
-//loads events 
+  //
+  // loads events 
+  //
   Int_t eventNr[kMaxStreamsToMerge], delta[kMaxStreamsToMerge];
   fCombi->Combination(eventNr, delta);
   for (Int_t i=0;i<fNinputs;i++) 
@@ -315,7 +323,10 @@ Bool_t AliRunDigitizer::ConnectInputTrees()
 //_______________________________________________________________________
 Bool_t AliRunDigitizer::InitGlobal()
 {
-// called once before Digitize() is called, initialize digitizers and output
+  //
+  // Method called once before Digitize() is called
+  // initialize digitizers and output
+  //
   fOutputInitialized = kFALSE;
   TList* subTasks = this->GetListOfTasks();
   if (subTasks) {
@@ -330,18 +341,23 @@ Bool_t AliRunDigitizer::InitGlobal()
 
 void AliRunDigitizer::SetOutputFile(TString fn)
 {
-// the output will be to separate file, not to the signal file
- //here should be protection to avoid setting the same file as any input 
+  //
+  // The output will be to separate file, 
+  // not to the signal file here should be protection 
+  //to avoid setting the same file as any input 
+  //
   Info("SetOutputFile","Setting Output File Name %s ",fn.Data());
   fOutputFileName = fn;
-//  InitOutputGlobal();
+  // InitOutputGlobal();
 }
 
 //_______________________________________________________________________
 Bool_t AliRunDigitizer::InitOutputGlobal()
 {
-// Creates the output file, called by InitEvent()
-//Needs to be called after all inputs are opened  
+  //
+  // Creates the output file, called by InitEvent()
+  // Needs to be called after all inputs are opened  
+  //
   if (fOutputInitialized) return kTRUE;
   
   if ( !fOutputFileName.IsNull())
@@ -384,7 +400,9 @@ Bool_t AliRunDigitizer::InitOutputGlobal()
 
 void AliRunDigitizer::InitEvent()
 {
-//redirects output properly
+  //
+  // redirects output properly
+  //
   if (GetDebug()>2)
    {
     Info("InitEvent","fEvent = %d",fEvent);
@@ -392,14 +410,15 @@ void AliRunDigitizer::InitEvent()
    }
   if (fOutputInitialized == kFALSE) InitOutputGlobal();
   
-// if fOutputFileName was not given, write output to signal directory
+  // if fOutputFileName was not given, write output to signal directory
 }
 //_______________________________________________________________________
 
 void AliRunDigitizer::FinishEvent()
 {
-// called at the end of loop over digitizers
-
+  //
+  // called at the end of loop over digitizers
+  //
   
   if (GetOutRunLoader() == 0x0)
    {
@@ -442,9 +461,10 @@ void AliRunDigitizer::FinishEvent()
 
 void AliRunDigitizer::FinishGlobal()
 {
-// called at the end of Exec
-// save unique objects to the output file
-
+  //
+  // called at the end of Exec
+  // save unique objects to the output file
+  //
   if (GetOutRunLoader() == 0x0)
    {
      Error("FinishGlobal","Can not get RunLoader from Output Stream folder");
@@ -552,8 +572,9 @@ TParticle* AliRunDigitizer::GetParticle(Int_t /*i*/, Int_t /*input*/, Int_t /*ev
 //_______________________________________________________________________
 void AliRunDigitizer::ExecuteTask(Option_t* option)
 {
-// overwrite ExecuteTask to do Digitize only
-
+  //
+  // overwrite ExecuteTask to do Digitize only
+  //
   if (!IsActive()) return;
   Digitize(option);
   fHasExecuted = kTRUE;
@@ -563,23 +584,30 @@ void AliRunDigitizer::ExecuteTask(Option_t* option)
 //_______________________________________________________________________
 const TString& AliRunDigitizer::GetInputFolderName(Int_t i) const
 {
+  //
+  // Get the input Folder Name
+  //
   AliStream* stream = dynamic_cast<AliStream*>(fInputStreams->At(i));
   if (stream == 0x0)
-   {
-     Fatal("GetInputFolderName","Can not get the input stream. Index = %d. Exiting",i);
-   }
+    Fatal("GetInputFolderName","Can not get the input stream. Index = %d. Exiting",i);
   return stream->GetFolderName();
 }
 //_______________________________________________________________________
 
 const char* AliRunDigitizer::GetOutputFolderName()
 {
+  //
+  // Get output folder name
+  //
   return GetOutRunLoader()->GetEventFolder()->GetName();
 }
 //_______________________________________________________________________
 
 AliRunLoader* AliRunDigitizer::GetOutRunLoader()
 {
+  //
+  // Returns Run Loader
+  //
   if (fOutRunLoader) return fOutRunLoader;
   
   if ( fOutputFileName.IsNull() )
index 5d6c3d2b4b698bc0430f8254ec3d3b97077cee27..f0f915348e5965c9e566a5c3807aa4e7d4960481 100644 (file)
@@ -8,7 +8,7 @@
 ////////////////////////////////////////////////////////////////////////
 //
 //  Manager Class for Merging/Digitization   
-//                  
+//  This handles Merging and Digitisation of AliRoot events                
 //  Author: Jiri Chudoba (CERN)
 //
 ////////////////////////////////////////////////////////////////////////
index 6defef12bd6f4ec68143e5ca7cf8b5f064cda3bf..29400f8f7e236892f57305135ee9bd650ea952c5 100644 (file)
@@ -11,7 +11,7 @@
 //       Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch 
 //-------------------------------------------------------------------------
 #include <TObject.h>
-#include "TError.h"
+//#include "TError.h"
 
 class AliKalmanTrack;
 class AliCluster;
@@ -22,9 +22,13 @@ class AliMagF;
 class AliTracker : public TObject {
 public:
 
-  enum {kTrackInward, kTrackBack, kTrackRefit} Propagation_t;
+  enum {kTrackInward, kTrackBack, kTrackRefit} Propagation_t; //type of propagation
   
   AliTracker();
+  AliTracker(const AliTracker &atr): TObject(atr)
+    {Fatal("Copy ctor","Not Implemented!\n");}
+  AliTracker & operator=(const AliTracker &)
+    {Fatal("= op","Not Implemented\n");return *this;}
   virtual ~AliTracker(){}
   virtual Int_t Clusters2Tracks(AliESD *event)=0;
   virtual Int_t PropagateBack(AliESD *event)=0;
@@ -59,7 +63,7 @@ private:
   static const AliMagF *fgkFieldMap; //field map
   Int_t fEventN;//event number
 
-  Int_t fStoreBarrel;
+  Int_t fStoreBarrel; //Store Barrel information
 
   Double_t fX;  //X-coordinate of the primary vertex
   Double_t fY;  //Y-coordinate of the primary vertex