1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
18 //-------------------------------------------------------------------------
19 // Origin: Marian Ivanov marian.ivanov@cern.ch
20 //-------------------------------------------------------------------------
22 #include <Riostream.h>
25 #include "AliESDkink.h"
30 //____________________________________________________________________
31 AliESDkink::AliESDkink() :
45 for (Int_t i=0;i<12;i++) fStatus[i]=0;
46 for (Int_t i=0;i<2;i++)
47 for (Int_t j=0;j<2;j++){
49 fTPCdensity2[i][j]=-1;
51 fTPCncls[0]=fTPCncls[1]=0;
53 for (Int_t i=0; i<3; i++) {
61 fIndex[0]=fIndex[1]=-1;
62 fMultiple[0]=fMultiple[1]=0;
65 void AliESDkink::SetMother(const AliExternalTrackParam & pmother) {
69 fParamMother = pmother;
72 void AliESDkink::SetDaughter(const AliExternalTrackParam & pdaughter){
76 fParamDaughter = pdaughter;
80 Float_t AliESDkink::GetTPCDensityFactor() const
84 return fTPCdensity[0][0]+fTPCdensity[1][1]-TMath::Max(fTPCdensity[0][1],Float_t(0.0))-TMath::Max(fTPCdensity[1][0],Float_t(0.0));
87 Float_t AliESDkink::GetQt() const
89 Float_t dmomentum = TMath::Sqrt(fPdr[0]*fPdr[0]+fPdr[1]*fPdr[1]+fPdr[2]*fPdr[2]);
90 return TMath::Sin(fAngle[2])*dmomentum;