]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliESD.cxx
Correct treatment of regions of interest in TPC
[u/mrichter/AliRoot.git] / STEER / AliESD.cxx
CommitLineData
8a8d023f 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
acd84897 16/* $Id$ */
8a8d023f 17
ae982df3 18//-----------------------------------------------------------------
19// Implementation of the ESD class
20// This is the class to deal with during the phisical analysis of data
21//
22// Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch
23//-----------------------------------------------------------------
8a8d023f 24
25#include "AliESD.h"
26
27ClassImp(AliESD)
28
e2afb3b6 29//_______________________________________________________________________
30AliESD::AliESD():
31 fEventNumber(0),
32 fRunNumber(0),
33 fTrigger(0),
34 fRecoVersion(0),
e23730c7 35 fTracks("AliESDtrack",15000),
672b5f43 36 fCaloTracks("AliESDCaloTrack",500),
37 fMuonTracks("AliESDMuonTrack",30),
e23730c7 38 fV0s("AliESDv0",200),
39 fCascades("AliESDcascade",20)
8a8d023f 40{
873f1f73 41 Int_t i;
42 for (i=0; i<3; i++) fVtx[i]=0.;
43 for (i=0; i<6; i++) fCovVtx[i]=0.;
e2afb3b6 44}
45
873f1f73 46void AliESD::SetVertex(const Double_t *vtx, const Double_t *cvtx) {
47 //Save the primary vertex position
48 Int_t i;
49 for (i=0; i<3; i++) fVtx[i]=vtx[i];
50 if (cvtx)
51 for (i=0; i<6; i++) fCovVtx[i]=cvtx[i];
52}
53
54void AliESD::GetVertex(Double_t *vtx, Double_t *cvtx) const {
55 //Get the primary vertex position
56 Int_t i;
57 for (i=0; i<3; i++) vtx[i]=fVtx[i];
58 if (cvtx)
59 for (i=0; i<6; i++) cvtx[i]=fCovVtx[i];
60}
e2afb3b6 61