/************************************************************************** * Copyright(c) 2004-2006, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors are mentioned in the code where appropriate. * * * * Permission to use, copy, modify and distribute this software and its * * documentation strictly for non-commercial purposes is hereby granted * * without fee, provided that the above copyright notice appears in all * * copies and that both the copyright notice and this permission notice * * appear in the supporting documentation. The authors make no claims * * about the suitability of this software for any purpose. It is * * provided "as is" without express or implied warranty. * **************************************************************************/ /* $Id$ */ #include "AliITSDigitUpgrade.h" #include "AliITSsegmentationUpgrade.h" #include "AliLog.h" /////////////////////////////////////////////////////////////////// // // // Class defining the digit object // // for ITS upgrade // // Inherits from AliDigit // // // /////////////////////////////////////////////////////////////////// ClassImp(AliITSDigitUpgrade) //______________________________________________________________________ AliITSDigitUpgrade::AliITSDigitUpgrade(): AliDigit(), fPixId(9999), fSignal(0), fNLayer(0), fModule(0), fNelectrons(0), fNTracksIdMC(0) { // // default constructor // for(Int_t i=0; iGetCellSizeX(ilayer)!=0) xloc= (nx)*(s->GetCellSizeX(ilayer))+0.5*(s->GetCellSizeX(ilayer)); else AliError("Upgrade segmentation not initalized"); if(s->GetCellSizeZ(ilayer)!=0) zloc=(nz)*(s->GetCellSizeZ(ilayer))+0.5*(s->GetCellSizeZ(ilayer))-(s->GetHalfLength(ilayer)); else AliError("Upgrade segmentation not initalized"); delete s; } //____________________________________________________________________________________________________ void AliITSDigitUpgrade::PrintInfo(){ // //Standard output format for this class // Double_t xz[2]={-1,-1}; GetPosition(fNLayer,GetxPixelNumber(),GetzPixelNumber(),xz[0],xz[1]); printf("pixid %10.0i (%6.3f,%6.3f) in layer %i \n",(Int_t)fPixId,xz[0],xz[1],fNLayer); printf("pixid %u ",(UInt_t)fPixId); printf(" (xloc, zloc)= (%6.3f, %6.3f) in layer %i and module %i \n",xz[0],xz[1],fNLayer, fModule); printf(" Eloss %f Nel %f \n ",fSignal, fNelectrons); printf(" MC Track Ids =("); if (kMaxLab<=fNTracksIdMC) { for (Int_t i=0; i