]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSv2.cxx
Include AliDecayer.h instead of GenTypeDefs.h
[u/mrichter/AliRoot.git] / PHOS / AliPHOSv2.cxx
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 // Version of AliPHOSv1 which keeps all hits in TreeH
18 // AddHit, StepManager,and FinishEvent are redefined 
19 //                  
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.
25 //  
26
27 // --- ROOT system ---
28
29 #include "TBRIK.h"
30 #include "TNode.h"
31 #include "TRandom.h"
32
33 // --- Standard library ---
34
35 #include <stdio.h>
36 #include <string.h>
37 #include <stdlib.h>
38 #include <strstream.h>
39
40 // --- AliRoot header files ---
41
42 #include "AliPHOSv2.h"
43 #include "AliPHOSHit.h"
44 #include "AliPHOSDigit.h"
45 #include "AliPHOSReconstructioner.h"
46 #include "AliRun.h"
47 #include "AliConst.h"
48
49 ClassImp(AliPHOSv2)
50
51 //____________________________________________________________________________
52 AliPHOSv2::AliPHOSv2()
53 {
54   // default ctor
55
56 }
57
58 //____________________________________________________________________________
59 AliPHOSv2::AliPHOSv2(const char *name, const char *title):
60 AliPHOSv1(name,title)
61 {
62   // ctor
63 }
64
65 //____________________________________________________________________________
66 AliPHOSv2::~AliPHOSv2()
67 {
68   // dtor
69 }
70
71 //____________________________________________________________________________
72 void AliPHOSv2::AddHit(Int_t shunt, Int_t primary, Int_t tracknumber, Int_t Id, Float_t * hits, Int_t pid, TLorentzVector p, Float_t * lpos)
73 {
74   // Add a hit to the hit list.
75
76   AliPHOSHit *newHit ;
77
78   newHit = new AliPHOSHit(shunt, primary, tracknumber, Id, hits, pid, p, lpos) ;
79
80   new((*fHits)[fNhits]) AliPHOSHit(*newHit) ;    
81   fNhits++ ;
82
83   delete newHit;
84
85 }
86
87