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 // Reconstructed space point class for set:ITS
20 // Reconstructed points are expressed simultaneously in two different
21 // reference frames, both differing from the global system.
22 // The first is referred to the sensor (see AliITSsegmentation for the
23 // definition) and each point is represented by two coordinates: fXloc and
24 // fZloc. This system in the code is referred to as "local"
25 // The second is used for tracking (V2, SA and MI versions) and the X axis
26 // represents the radial coordinate (this system is, in the bending plane,
27 // a rotated system w.r.t. the global reference system).
28 // Each reaconstructed point is represented by two coordinates: fY and fZ,
29 // inherited from AliCluster. This system in the code is referred to as
31 ///////////////////////////////////////////////////////////////////////////////
34 #include "AliITSRecPoint.h"
35 #include "AliITSgeom.h"
36 ClassImp(AliITSRecPoint)
38 //_____________________________________________________________
39 AliITSRecPoint::AliITSRecPoint(): AliCluster(),
55 //_____________________________________________________________
56 AliITSRecPoint::AliITSRecPoint(AliITSgeom* geom): AliCluster(),
73 //________________________________________________________________________
74 AliITSRecPoint::AliITSRecPoint(Int_t module,AliITSgeom* geom,Int_t *lab,Float_t *hit, Int_t *info):AliCluster(lab,hit),
88 //standard constructor used in AliITSClusterFinderV2
95 fGeom->TrackingV2ToDetL(module,fY,fZ,fXloc,fZloc);
96 if(module<fGeom->GetStartSDD()) fdEdX=0.;
97 if(module>=fGeom->GetStartSDD() && module<fGeom->GetStartSSD()){
100 if(module>=fGeom->GetStartSSD()) fdEdX=fQ*2.16;
104 //_______________________________________________________________________
105 AliITSRecPoint::AliITSRecPoint(const AliITSRecPoint& pt):AliCluster(pt),
114 fChargeRatio(pt.fChargeRatio),
116 fDeltaProb(pt.fDeltaProb),
122 //______________________________________________________________________
123 AliITSRecPoint& AliITSRecPoint::operator=(const AliITSRecPoint& source){
124 // Assignment operator
126 this->~AliITSRecPoint();
127 new(this) AliITSRecPoint(source);
132 //________________________________________________________________________
133 AliITSRecPoint::AliITSRecPoint(Int_t *lab,Float_t *hit, Int_t *info):AliCluster(lab,hit),
146 //standard constructor used in AliITSClusterFinderV2
149 //----------------------------------------------------------------------
150 void AliITSRecPoint::Print(ostream *os){
151 ////////////////////////////////////////////////////////////////////////
152 // Standard output format for this class.
153 ////////////////////////////////////////////////////////////////////////
161 #if defined __ICC || defined __ECC || defined __xlC__
168 fmt = os->setf(ios::fixed); // set fixed floating point output
169 *os << fTracks[0]<< " " << fTracks[1] << " " << fTracks[2] << " ";
170 *os << fXloc << " " << fZloc << " " << fQ << " ";
171 fmt = os->setf(ios::scientific); // set scientific for dEdX.
173 fmt = os->setf(ios::fixed); // every fixed
174 *os << fSigmaY2 << " " << fSigmaZ2;
175 os->flags(fmt); // reset back to old formating.
178 //----------------------------------------------------------------------
179 void AliITSRecPoint::Read(istream *is){
180 ////////////////////////////////////////////////////////////////////////
181 // Standard input format for this class.
182 ////////////////////////////////////////////////////////////////////////
185 *is >> fTracks[0] >> fTracks[1] >> fTracks[2] >> fXloc >> fZloc >> fQ;
186 *is >> fdEdX >> fSigmaY2 >> fSigmaZ2;
189 //----------------------------------------------------------------------
190 ostream &operator<<(ostream &os,AliITSRecPoint &p){
191 ////////////////////////////////////////////////////////////////////////
192 // Standard output streaming function.
193 ////////////////////////////////////////////////////////////////////////
198 //----------------------------------------------------------------------
199 istream &operator>>(istream &is,AliITSRecPoint &r){
200 ////////////////////////////////////////////////////////////////////////
201 // Standard input streaming function.
202 ////////////////////////////////////////////////////////////////////////
207 //----------------------------------------------------------------------