]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSDetType.cxx
Modifications associated with remerging the Ba/Sa and Dubna pixel simulations,
[u/mrichter/AliRoot.git] / ITS / AliITSDetType.cxx
index d24a856e4cd96b18eacf265f6f6dce093dec99f6..3d80fa8ae41ce17b470f007618ec7c53aa614c71 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/*
- $Log$
-*/
+/* $Id$ */
 
+////////////////////////////////////////////////////////////////////////
+// This Class owns the classes needed to to detector simulations and
+// reconstruction. This includes the detector segmentation classes,
+// the detector responce classes, the detector simulatin classes, and
+// the detector reconstruction (clustering) classes for all of the ITS
+// detectors.
+////////////////////////////////////////////////////////////////////////
 #include "AliITSDetType.h"
 #include "AliITSClusterFinder.h"
 #include "AliITSsimulation.h"
 
-ClassImp(AliITSDetType)         
 
-AliITSDetType::AliITSDetType(){
-    // constructor
+ClassImp(AliITSDetType)         
 
-    fSegmentation = 0;
-    fResponse     = 0;
-    fSimulation   = 0;
-    fReconst      = 0;
+//______________________________________________________________________
+AliITSDetType::AliITSDetType():
+TObject(),
+fDetType(kND),
+fResponse(0),
+fSegmentation(0),
+fSimulation(0),
+fReconst(0),
+fDigClassName(""),
+fClustClassName(""){
+    // Default constructor.
+    // Inputs:
+    //   none.
+    // Output:
+    //   none.
+    // Return:
+    //   A default constructed AliITSDetType class.
+}
+//______________________________________________________________________
+AliITSDetType::AliITSDetType(AliITSDetector det,AliITSresponse *res,
+                             AliITSsegmentation *seg,AliITSsimulation *sim,
+                             AliITSClusterFinder *cf,
+                             const Char_t *DigClassName,
+                             const Char_t *ClustClassName):
+TObject(),
+fDetType(det),
+fResponse(res),
+fSegmentation(seg),
+fSimulation(sim),
+fReconst(cf),
+fDigClassName(DigClassName),
+fClustClassName(ClustClassName){
+    // Standard constructor
+    // Inputs:
+    //   AliITSDetector       det  Detector type
+    //   AliITSresponse      *res  response class to use
+    //   AliITSsegmentation  *seg  Segmentation class to use
+    //   AliITSsimulation    *sim  Simulation class to use
+    //   AliITSClusterFinder *cf   Cluster Finder/Reconstruction class to use
+    //   const Char_t        DigClassName   Name of the digit class to be used
+    //   const Char_t        ClustClassName Name of the cluster class to be 
+    //                                      used
+    // Output:
+    //   none.
+    // Return:
+    //   A Standard constructed AliITSDetType class.
 }
 //----------------------------------------------------------------------
 AliITSDetType::~AliITSDetType(){
     // destructor
+    // Inputs:
+    //   none.
+    // Output:
+    //   none.
+    // Return:
+    //   none.
 
     if(fSegmentation!=0) delete fSegmentation; fSegmentation = 0;
     if(fResponse!=0)     delete fResponse;     fResponse     = 0;
@@ -41,28 +92,42 @@ AliITSDetType::~AliITSDetType(){
     if(fReconst!=0)      delete fReconst;      fReconst      = 0;
 }
 //______________________________________________________________________
-AliITSDetType::AliITSDetType(const AliITSDetType &source){
-  //     Copy Constructor 
+AliITSDetType::AliITSDetType(const AliITSDetType &source) : TObject(source){
+    //     Copy Constructor
+    // Inputs:
+    //   const AliITSDetType &source  class to copy from.
+    // Output:
+    //   none.
+    // Return:
+    //   none.
 
-  if(&source == this) return;
-  this->fReconst        = source.fReconst;
-  this->fSimulation     = source.fSimulation;
-  this->fResponse       = source.fResponse;
-  this->fSegmentation   = source.fSegmentation;
-  this->fDigClassName   = source.fDigClassName;
-  this->fClustClassName = source.fClustClassName;
-  return;
+    if(&source == this) return;
+    this->fDetType        = source.fDetType;
+    this->fReconst        = source.fReconst;
+    this->fSimulation     = source.fSimulation;
+    this->fResponse       = source.fResponse;
+    this->fSegmentation   = source.fSegmentation;
+    this->fDigClassName   = source.fDigClassName;
+    this->fClustClassName = source.fClustClassName;
+    return;
 }
 //______________________________________________________________________
 AliITSDetType& AliITSDetType::operator=(const AliITSDetType &source){
-  //    Assignment operator
+    //    Assignment operator
+    // Inputs:
+    //   const AliITSDetType &source  class to copy from.
+    // Output:
+    //   none.
+    // Return:
+    //   a new AliITSDetType class with the same values as in source.
 
-  if(&source == this) return *this;
-  this->fReconst        = source.fReconst;
-  this->fSimulation     = source.fSimulation;
-  this->fResponse       = source.fResponse;
-  this->fSegmentation   = source.fSegmentation;
-  this->fDigClassName   = source.fDigClassName;
-  this->fClustClassName = source.fClustClassName;
-  return *this;  
+    if(&source == this) return *this;
+    this->fDetType        = source.fDetType;
+    this->fReconst        = source.fReconst;
+    this->fSimulation     = source.fSimulation;
+    this->fResponse       = source.fResponse;
+    this->fSegmentation   = source.fSegmentation;
+    this->fDigClassName   = source.fDigClassName;
+    this->fClustClassName = source.fClustClassName;
+    return *this;  
 }