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