1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
18 Revision 1.1 2001/11/06 17:19:41 cblume
19 Add detailed geometry and simple simulator
23 ///////////////////////////////////////////////////////////////////////////////
25 // Simplified TRD slow simulator //
27 ///////////////////////////////////////////////////////////////////////////////
31 #include "AliTRDsimple.h"
32 #include "AliTRDsimpleGen.h"
33 #include "AliTRDsimpleMC.h"
35 ClassImp(AliTRDsimple)
37 //_____________________________________________________________________________
38 AliTRDsimple::AliTRDsimple():TObject()
41 // AliTRDsimple default constructor
48 //_____________________________________________________________________________
49 AliTRDsimple::AliTRDsimple(const AliTRDsimple &s)
52 // AliTRDsimple copy constructor
55 ((AliTRDsimple &) s).Copy(*this);
59 //_____________________________________________________________________________
60 AliTRDsimple::~AliTRDsimple()
63 // AliTRDsimple destructor
72 //_____________________________________________________________________________
73 AliTRDsimple &AliTRDsimple::operator=(const AliTRDsimple &s)
76 // Assignment operator
79 if (this != &s) ((AliTRDsimple &) s).Copy(*this);
84 //_____________________________________________________________________________
85 void AliTRDsimple::Init()
91 fGenerator = new AliTRDsimpleGen();
93 // Create the MC object
94 new AliTRDsimpleMC("simple","Simplified Monte Carlo");
98 //_____________________________________________________________________________
99 void AliTRDsimple::Copy(TObject &s)
105 fGenerator->Copy(*((AliTRDsimple &) s).fGenerator);
109 //_____________________________________________________________________________
110 void AliTRDsimple::ProcessEvent(Int_t ievent)
113 // Runs a single event
118 // Generate a new particle
119 fGenerator->NewParticle(ievent);
125 while (gMC->CurrentVolID(copy) != -1);