]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FASTSIM/AliFastDetector.cxx
Do not include from subdirectories
[u/mrichter/AliRoot.git] / FASTSIM / AliFastDetector.cxx
index 8bc30e9be198e4d2d4702abbe8c7111f83e473be..d9950cc42e88557791abbce1c93f52d4b3f04957 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/*
-$Log$
-Revision 1.1  2002/09/20 13:32:51  morsch
-Base classes for fast simulation. First commit.
-
-*/
-
+/* $Id$ */
+//
+// Base class for fast simulation of a detctor
+// or a system of subdetectors.
+// The detector response is described by resolution and efficiency.
+// Author:
+// Andreas Morsch
+// andreas.morsch@cern.ch
 
 #include "AliFastDetector.h"
 #include "AliFastResponse.h"
@@ -30,24 +31,47 @@ Base classes for fast simulation. First commit.
 #include <TString.h>
 
 ClassImp(AliFastDetector)
-AliFastDetector::AliFastDetector()
+
+
+AliFastDetector::AliFastDetector():
+    fSubdetectors(0),
+    fResponses(0),
+    fLnkD(0),
+    fLnkR(0),
+    fEfficiency(0),
+    fResolution(0),
+    fGeometry(0)
 {
 // Default Constructor
     fName  = "FastDetector";
     fTitle = "Fast Detector Base Class";
-    fLnkD  = 0;
-    fLnkR  = 0;
-    
-    fResponses    = 0;
-    fSubdetectors = 0;
 }
 
 AliFastDetector::AliFastDetector(char* Name, char* Title):
-    TNamed(Name, Title)
+    TNamed(Name, Title),
+    fSubdetectors(new TList()),
+    fResponses(new TList()),
+    fLnkD(0),
+    fLnkR(0),
+    fEfficiency(0),
+    fResolution(0),
+    fGeometry(0)
 {
 // Constructor
-    fSubdetectors = new TList();
-    fResponses    = new TList();
+ }
+
+AliFastDetector::AliFastDetector(const AliFastDetector & det)
+    :TNamed(det),
+    fSubdetectors(0),
+    fResponses(0),
+    fLnkD(0),
+    fLnkR(0),
+    fEfficiency(0),
+    fResolution(0),
+    fGeometry(0)
+{
+// Copy constructor
+    det.Copy(*this);
 }
 
 AliFastDetector::~AliFastDetector()
@@ -99,6 +123,9 @@ void AliFastDetector::Init()
 
 Float_t AliFastDetector::EvaluateEfficiency(AliFastParticle* part)
 {
+//
+//  Evaluate the efficiency for detecting particle part
+//
     TIter nextDet(fSubdetectors);
     AliFastDetector *det;
     //
@@ -130,13 +157,13 @@ Bool_t  AliFastDetector::EvaluateAcceptance(AliFastParticle* part)
     return acc;
 }
 
-void    AliFastDetector::EvaluateResponse(AliFastParticle* part)
+void    AliFastDetector::EvaluateResponse(AliFastParticle* /*part*/)
 {
     ;
 }
 
 void AliFastDetector::
-AddSubdetector(AliFastDetector *Detector, char* Name)
+AddSubdetector(AliFastDetector *Detector, char* /*Name*/)
 {
 //
 //  Add detector to list   
@@ -200,3 +227,18 @@ AliFastResponse*  AliFastDetector::NextResponse()
 }
 
 
+AliFastDetector& AliFastDetector::operator=(const  AliFastDetector& rhs)
+{
+// Assignment operator
+    rhs.Copy(*this);
+    return *this;
+}
+
+void AliFastDetector::Copy(TObject&) const
+{
+    //
+    // Copy 
+    //
+    Fatal("Copy","Not implemented!\n");
+}
+