X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=ITS%2FAliITSclusterSSD.cxx;h=43b2616df7a71fc7dde4c707f1f58874418fef0c;hb=74999ed1b2c144c77513f2ac869b6522546298a7;hp=e26c80e8d2c0d613ef28ecc6b3c756c4f5e4d9c0;hpb=f8d9a5b89b1ec191e0294881810a8b619a6ccbd5;p=u%2Fmrichter%2FAliRoot.git diff --git a/ITS/AliITSclusterSSD.cxx b/ITS/AliITSclusterSSD.cxx index e26c80e8d2c..43b2616df7a 100644 --- a/ITS/AliITSclusterSSD.cxx +++ b/ITS/AliITSclusterSSD.cxx @@ -13,62 +13,60 @@ * provided "as is" without express or implied warranty. * **************************************************************************/ -/* -$Log$ -Revision 1.10 2002/10/22 14:45:37 alibrary -Introducing Riostream.h - -Revision 1.9 2002/10/14 14:57:00 hristov -Merging the VirtualMC branch to the main development branch (HEAD) +/* $Id$ */ +//////////////////////////////////////////////////////////////////////////// +//Piotr Krzysztof Skowronski // +//Warsaw University of Technology // +//skowron@if.pw.edu.pl // +// // +// Describes set of neighbouring digits on one side of detector, // +// that are supposed to be generated by one particle. // +// includes information about clusters on other side that it crosses with // +//////////////////////////////////////////////////////////////////////////// -Revision 1.7.6.1 2002/10/14 13:14:08 hristov -Updating VirtualMC to v3-09-02 +#include +#include +#include -Revision 1.8 2002/09/09 17:23:28 nilsen -Minor changes in support of changes to AliITSdigitS?D class'. - -*/ -#include -#include "TArrayI.h" -#include "TClonesArray.h" -#include "AliITSdigit.h" +#include "AliITSdigitSSD.h" #include "AliITSclusterSSD.h" ClassImp(AliITSclusterSSD) //______________________________________________________________________ -AliITSclusterSSD::AliITSclusterSSD(){ +AliITSclusterSSD::AliITSclusterSSD(): +fSide(kTRUE), +fDigits(0), +fNDigits(0), +fDigitsIndex(0), +fNCrosses(0), +fCrossedClusterIndexes(0), +fLeftNeighbour(kFALSE), +fRightNeighbour(kFALSE), +fConsumed(kFALSE), +fTotalSignal(-1), +fNTracks(-1){ // default constructor - - fSide = kTRUE; - fDigits = 0; - fNDigits = 0; - fDigitsIndex = 0; - fNCrosses = 0; - fTotalSignal = -1; - fNTracks = -1; - fLeftNeighbour = kFALSE; - fRightNeighbour = kFALSE; - fCrossedClusterIndexes = 0; - fConsumed=kFALSE; } //______________________________________________________________________ AliITSclusterSSD::AliITSclusterSSD(Int_t ndigits, Int_t *DigitIndexes, - TObjArray *Digits, Bool_t side){ + TObjArray *Digits, Bool_t side): +fSide(side), +fDigits(Digits), +fNDigits(ndigits), +fDigitsIndex(0), +fNCrosses(0), +fCrossedClusterIndexes(0), +fLeftNeighbour(kFALSE), +fRightNeighbour(kFALSE), +fConsumed(kFALSE), +fTotalSignal(-1), +fNTracks(-1){ // non-default constructor - fNDigits = ndigits; - fDigits = Digits; - fSide = side; fDigitsIndex = new TArrayI(fNDigits,DigitIndexes ); - fNCrosses = 0; fCrossedClusterIndexes = new TArrayI(300); - fLeftNeighbour = kFALSE; - fRightNeighbour = kFALSE; - fTotalSignal =-1; - fNTracks = -1; - fConsumed=kFALSE; } //______________________________________________________________________ AliITSclusterSSD::~AliITSclusterSSD(){ @@ -78,20 +76,24 @@ AliITSclusterSSD::~AliITSclusterSSD(){ delete fCrossedClusterIndexes; } //______________________________________________________________________ -AliITSclusterSSD::AliITSclusterSSD(const AliITSclusterSSD &OneSCluster){ +AliITSclusterSSD::AliITSclusterSSD(const AliITSclusterSSD &OneSCluster) : +TObject(OneSCluster), +fSide(OneSCluster.fSide), +fDigits(OneSCluster.fDigits), +fNDigits(OneSCluster.fNDigits), +fDigitsIndex(0), +fNCrosses(OneSCluster.fNCrosses), +fCrossedClusterIndexes(0), +fLeftNeighbour(OneSCluster.fLeftNeighbour), +fRightNeighbour(OneSCluster.fRightNeighbour), +fConsumed(OneSCluster.fConsumed), +fTotalSignal(-1), +fNTracks(-1){ // copy constructor - if (this == &OneSCluster) return; - fNDigits = OneSCluster.fNDigits; - fSide=OneSCluster.fSide; - fDigits=OneSCluster.fDigits; fDigitsIndex = new TArrayI(fNDigits); - fLeftNeighbour = OneSCluster.fLeftNeighbour; - fRightNeighbour = OneSCluster.fRightNeighbour; fTotalSignal =-1; fNTracks = -1; - fNCrosses = OneSCluster.fNCrosses; - fConsumed = OneSCluster.fConsumed; Int_t i; for (i = 0; i< fNCrosses ; i++){ fCrossedClusterIndexes[i] = OneSCluster.fCrossedClusterIndexes[i]; @@ -173,7 +175,7 @@ void AliITSclusterSSD::AddCross(Int_t clIndex){ (*fCrossedClusterIndexes)[fNCrosses++] = clIndex; } //______________________________________________________________________ -Int_t AliITSclusterSSD::GetCross(Int_t crIndex){ +Int_t AliITSclusterSSD::GetCross(Int_t crIndex) const { // return crossing cluster return ((crIndex>-1)&&(crIndex