parameters have been redistributed; Hits2SDigits etc ... introduce
[u/mrichter/AliRoot.git] / PHOS / AliPHOSv2.cxx
CommitLineData
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 ---
5f20d3fb 28
29#include "TBRIK.h"
30#include "TNode.h"
bea63bea 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"
5f20d3fb 45#include "AliPHOSReconstructioner.h"
bea63bea 46#include "AliRun.h"
47#include "AliConst.h"
48
49ClassImp(AliPHOSv2)
50
5f20d3fb 51//____________________________________________________________________________
52AliPHOSv2::AliPHOSv2()
53{
54 // default ctor
ed4205d8 55
5f20d3fb 56}
57
bea63bea 58//____________________________________________________________________________
59AliPHOSv2::AliPHOSv2(const char *name, const char *title):
e04976bd 60AliPHOSv1(name,title)
bea63bea 61{
5f20d3fb 62 // ctor
bea63bea 63}
64
65//____________________________________________________________________________
5f20d3fb 66AliPHOSv2::~AliPHOSv2()
bea63bea 67{
5f20d3fb 68 // dtor
bea63bea 69}
70
71//____________________________________________________________________________
037cc66d 72void 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)
5f20d3fb 73{
74 // Add a hit to the hit list.
5f20d3fb 75
5f20d3fb 76 AliPHOSHit *newHit ;
5f20d3fb 77
037cc66d 78 newHit = new AliPHOSHit(shunt, primary, tracknumber, Id, hits, pid, p, lpos) ;
5f20d3fb 79
ed4205d8 80 new((*fHits)[fNhits]) AliPHOSHit(*newHit) ;
fca6f6ef 81 fNhits++ ;
bea63bea 82
fca6f6ef 83 delete newHit;
5f20d3fb 84
bea63bea 85}
86
fca6f6ef 87