]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/AliPHOSv2.cxx
Modified plots and made jet finder use SDigits
[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 ---
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
38ClassImp(AliPHOSv2)
39
5f20d3fb 40//____________________________________________________________________________
41AliPHOSv2::AliPHOSv2()
42{
43 // default ctor
ed4205d8 44
5f20d3fb 45}
46
bea63bea 47//____________________________________________________________________________
48AliPHOSv2::AliPHOSv2(const char *name, const char *title):
e04976bd 49AliPHOSv1(name,title)
bea63bea 50{
5f20d3fb 51 // ctor
bea63bea 52}
b37750a6 53//__________________________________________________________________________
5f20d3fb 54AliPHOSv2::~AliPHOSv2()
bea63bea 55{
5f20d3fb 56 // dtor
bea63bea 57}
58
780fda6d 59//____________________________________________________________________________
60void AliPHOSv2::Copy(AliPHOSv2 & phos)
61{
62 TObject::Copy(phos) ;
63 AliPHOSv1::Copy(phos) ;
64}
65
bea63bea 66//____________________________________________________________________________
b37750a6 67void AliPHOSv2::AddHit(Int_t shunt, Int_t primary, Int_t tracknumber, Int_t Id, Float_t * hits)
5f20d3fb 68{
69 // Add a hit to the hit list.
5f20d3fb 70
5f20d3fb 71 AliPHOSHit *newHit ;
5f20d3fb 72
b37750a6 73 newHit = new AliPHOSHit(shunt, primary, tracknumber, Id, hits) ;
5f20d3fb 74
ed4205d8 75 new((*fHits)[fNhits]) AliPHOSHit(*newHit) ;
fca6f6ef 76 fNhits++ ;
bea63bea 77
fca6f6ef 78 delete newHit;
5f20d3fb 79
bea63bea 80}
81
fca6f6ef 82