]>
Commit | Line | Data |
---|---|---|
bea63bea | 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 | **************************************************************************/ | |
bea63bea | 15 | /* $Id$ */ |
bea63bea | 16 | //_________________________________________________________________________ |
5f20d3fb | 17 | // Version of AliPHOSv1 which keeps all hits in TreeH |
18 | // AddHit, StepManager,and FinishEvent are redefined | |
bea63bea | 19 | // |
5f20d3fb | 20 | //*-- Author: Gines MARTINEZ (SUBATECH) |
ed4205d8 | 21 | //*-- Modified Nov. 22 2000 by Dmitri Peressounko |
22 | // All hits are stored. | |
23 | // Note, that primaries will not be assigned to digits: | |
2f04ed65 | 24 | // because of tiny energy deposition at each step. |
ed4205d8 | 25 | // |
bea63bea | 26 | |
27 | // --- ROOT system --- | |
cede8016 | 28 | #include "TClonesArray.h" |
bea63bea | 29 | |
30 | // --- Standard library --- | |
31 | ||
bea63bea | 32 | |
33 | // --- AliRoot header files --- | |
34 | ||
35 | #include "AliPHOSv2.h" | |
36 | #include "AliPHOSHit.h" | |
bea63bea | 37 | |
38 | ClassImp(AliPHOSv2) | |
39 | ||
5f20d3fb | 40 | //____________________________________________________________________________ |
41 | AliPHOSv2::AliPHOSv2() | |
42 | { | |
43 | // default ctor | |
ed4205d8 | 44 | |
5f20d3fb | 45 | } |
46 | ||
bea63bea | 47 | //____________________________________________________________________________ |
48 | AliPHOSv2::AliPHOSv2(const char *name, const char *title): | |
e04976bd | 49 | AliPHOSv1(name,title) |
bea63bea | 50 | { |
5f20d3fb | 51 | // ctor |
bea63bea | 52 | } |
b37750a6 | 53 | //__________________________________________________________________________ |
5f20d3fb | 54 | AliPHOSv2::~AliPHOSv2() |
bea63bea | 55 | { |
5f20d3fb | 56 | // dtor |
bea63bea | 57 | } |
58 | ||
59 | //____________________________________________________________________________ | |
b37750a6 | 60 | void AliPHOSv2::AddHit(Int_t shunt, Int_t primary, Int_t tracknumber, Int_t Id, Float_t * hits) |
5f20d3fb | 61 | { |
62 | // Add a hit to the hit list. | |
5f20d3fb | 63 | |
5f20d3fb | 64 | AliPHOSHit *newHit ; |
5f20d3fb | 65 | |
b37750a6 | 66 | newHit = new AliPHOSHit(shunt, primary, tracknumber, Id, hits) ; |
5f20d3fb | 67 | |
ed4205d8 | 68 | new((*fHits)[fNhits]) AliPHOSHit(*newHit) ; |
fca6f6ef | 69 | fNhits++ ; |
bea63bea | 70 | |
fca6f6ef | 71 | delete newHit; |
5f20d3fb | 72 | |
bea63bea | 73 | } |
74 | ||
fca6f6ef | 75 |