* 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"
#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()
Float_t AliFastDetector::EvaluateEfficiency(AliFastParticle* part)
{
+//
+// Evaluate the efficiency for detecting particle part
+//
TIter nextDet(fSubdetectors);
AliFastDetector *det;
//
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
}
+AliFastDetector& AliFastDetector::operator=(const AliFastDetector& rhs)
+{
+// Assignment operator
+ rhs.Copy(*this);
+ return *this;
+}
+
+void AliFastDetector::Copy(TObject&) const
+{
+ //
+ // Copy
+ //
+ Fatal("Copy","Not implemented!\n");
+}
+