]>
Commit | Line | Data |
---|---|---|
1 | /************************************************************************** | |
2 | * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
3 | * * | |
4 | * Author: The ALICE Off-line Project. * | |
5 | * Contributors are mentioned in the code where appropriate. * | |
6 | * * | |
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 | **************************************************************************/ | |
15 | /* $Id$ */ | |
16 | ||
17 | /* History of cvs commits: | |
18 | * | |
19 | * $Log$ | |
20 | * Revision 1.24 2005/05/28 14:19:05 schutz | |
21 | * Compilation warnings fixed by T.P. | |
22 | * | |
23 | */ | |
24 | ||
25 | //_________________________________________________________________________ | |
26 | // Version of AliPHOSv1 which keeps all hits in TreeH | |
27 | // AddHit, StepManager,and FinishEvent are redefined | |
28 | // | |
29 | //*-- Author: Gines MARTINEZ (SUBATECH) | |
30 | //*-- Modified Nov. 22 2000 by Dmitri Peressounko | |
31 | // All hits are stored. | |
32 | // Note, that primaries will not be assigned to digits: | |
33 | // because of tiny energy deposition at each step. | |
34 | // | |
35 | ||
36 | // --- ROOT system --- | |
37 | #include "TClonesArray.h" | |
38 | ||
39 | // --- Standard library --- | |
40 | ||
41 | ||
42 | // --- AliRoot header files --- | |
43 | ||
44 | #include "AliPHOSv2.h" | |
45 | #include "AliPHOSHit.h" | |
46 | ||
47 | ClassImp(AliPHOSv2) | |
48 | ||
49 | //____________________________________________________________________________ | |
50 | AliPHOSv2::AliPHOSv2() | |
51 | { | |
52 | // default ctor | |
53 | ||
54 | } | |
55 | ||
56 | //____________________________________________________________________________ | |
57 | AliPHOSv2::AliPHOSv2(const char *name, const char *title): | |
58 | AliPHOSv1(name,title) | |
59 | { | |
60 | // ctor | |
61 | } | |
62 | //__________________________________________________________________________ | |
63 | AliPHOSv2::~AliPHOSv2() | |
64 | { | |
65 | // dtor | |
66 | } | |
67 | ||
68 | //____________________________________________________________________________ | |
69 | void AliPHOSv2::AddHit(Int_t shunt, Int_t primary, Int_t Id, Float_t * hits) | |
70 | { | |
71 | // Add a hit to the hit list. | |
72 | ||
73 | AliPHOSHit *newHit ; | |
74 | ||
75 | newHit = new AliPHOSHit(shunt, primary, Id, hits) ; | |
76 | ||
77 | new((*fHits)[fNhits]) AliPHOSHit(*newHit) ; | |
78 | fNhits++ ; | |
79 | ||
80 | delete newHit; | |
81 | ||
82 | } | |
83 | ||
84 |