X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=STEER%2FAliCluster.cxx;h=18390de0bb19b97770a3fc508ef17c7147f55ff1;hb=7afe0204853ef865acff0cdf1466dea787655181;hp=13ac2d86a8803c3dc5b3c1341509fbab10f5891f;hpb=8759443599df9d4fb1db934ff6c342750084b41f;p=u%2Fmrichter%2FAliRoot.git diff --git a/STEER/AliCluster.cxx b/STEER/AliCluster.cxx index 13ac2d86a88..18390de0bb1 100644 --- a/STEER/AliCluster.cxx +++ b/STEER/AliCluster.cxx @@ -13,9 +13,11 @@ * provided "as is" without express or implied warranty. * **************************************************************************/ +/* $Id$ */ + //------------------------------------------------------------------------- // Implementation of the Cluster class -// +// that is the base for AliTPCcluster, AliITSclusterV2 and AliTRDcluster // Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch //------------------------------------------------------------------------- @@ -24,20 +26,23 @@ ClassImp(AliCluster) //_____________________________________________________________________________ -AliCluster::AliCluster() { +AliCluster::AliCluster(): + fY(0), fZ(0), fSigmaY2(0), fSigmaZ2(0) +{ + // //default constructor + // fTracks[0]=fTracks[1]=fTracks[2]=-3141593; - fY=fZ=fSigmaY2=fSigmaZ2=0.; } //_____________________________________________________________________________ -AliCluster::AliCluster(Int_t *lab, Float_t *hit) { - //Creates a simulated cluster +AliCluster::AliCluster(Int_t *lab, Float_t *hit): + fY(hit[0]), fZ(hit[1]), fSigmaY2(hit[2]), fSigmaZ2(hit[3]) +{ + // + // Creates a simulated cluster + // fTracks[0] = lab[0]; fTracks[1] = lab[1]; fTracks[2] = lab[2]; - fY = hit[0]; - fZ = hit[1]; - fSigmaY2 = hit[2]; - fSigmaZ2 = hit[3]; }