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 **************************************************************************/
16 //_________________________________________________________________________
17 // Version of AliPHOSv1 which keeps all hits in TreeH
18 // AddHit, StepManager,and FinishEvent are redefined
20 //*-- Author: Gines MARTINEZ (SUBATECH)
21 //*-- Modified Nov. 22 2000 by Dmitri Peressounko
22 // All hits are stored.
23 // Note, that primaries will not be assigned to digits:
24 // because of tiny energy deposition at each step.
27 // --- ROOT system ---
28 #include "TClonesArray.h"
30 // --- Standard library ---
33 // --- AliRoot header files ---
35 #include "AliPHOSv2.h"
36 #include "AliPHOSHit.h"
40 //____________________________________________________________________________
41 AliPHOSv2::AliPHOSv2()
47 //____________________________________________________________________________
48 AliPHOSv2::AliPHOSv2(const char *name, const char *title):
53 //__________________________________________________________________________
54 AliPHOSv2::~AliPHOSv2()
59 //____________________________________________________________________________
60 void AliPHOSv2::Copy(AliPHOSv2 & phos)
63 AliPHOSv1::Copy(phos) ;
66 //____________________________________________________________________________
67 void AliPHOSv2::AddHit(Int_t shunt, Int_t primary, Int_t tracknumber, Int_t Id, Float_t * hits)
69 // Add a hit to the hit list.
73 newHit = new AliPHOSHit(shunt, primary, tracknumber, Id, hits) ;
75 new((*fHits)[fNhits]) AliPHOSHit(*newHit) ;