X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=TOF%2FAliTOFCal.cxx;h=8397e6e3f0924546aa1e97d10f7fdc76bd4bf0de;hb=658b28b8fa182155e7e6272971cc132242924c9b;hp=d69835d77569d371be4f9946857c0130a28117c6;hpb=0e46b9aedf22cba61c60921b7b19fb76d89a7a2e;p=u%2Fmrichter%2FAliRoot.git diff --git a/TOF/AliTOFCal.cxx b/TOF/AliTOFCal.cxx index d69835d7756..8397e6e3f09 100644 --- a/TOF/AliTOFCal.cxx +++ b/TOF/AliTOFCal.cxx @@ -15,6 +15,9 @@ /* $Log$ +Revision 1.6 2006/04/20 22:30:49 hristov +Coding conventions (Annalisa) + Revision 1.5 2006/04/16 22:29:05 hristov Coding conventions (Annalisa) @@ -54,25 +57,38 @@ ClassImp(AliTOFCal) //________________________________________________________________ -AliTOFCal::AliTOFCal():TObject(){ +AliTOFCal::AliTOFCal(): + TObject(), + fNSector(0), + fNPlate(0), + fNStripA(0), + fNStripB(0), + fNStripC(0), + fNpadZ(0), + fNpadX(0), + fnpad(0), + fGeom(0x0), + fPads(0x0) +{ //main ctor - fGeom = 0x0; - fNSector = 0; - fNPlate = 0; - fNStripA = 0; - fNStripB = 0; - fNStripC = 0; - fNpadZ = 0; - fNpadX = 0; - fnpad = 0; - fPads = 0x0; gROOT->GetListOfBrowsables()->Add(this); } //________________________________________________________________ -AliTOFCal::AliTOFCal(AliTOFGeometry *geom):TObject(){ +AliTOFCal::AliTOFCal(AliTOFGeometry *geom): + TObject(), + fNSector(0), + fNPlate(0), + fNStripA(0), + fNStripB(0), + fNStripC(0), + fNpadZ(0), + fNpadX(0), + fnpad(0), + fGeom(geom), + fPads(0x0) +{ //ctor with geom - fGeom = geom; fNSector = fGeom->NSectors(); fNPlate = fGeom->NPlates(); fNStripA = fGeom->NStripA(); @@ -81,14 +97,23 @@ AliTOFCal::AliTOFCal(AliTOFGeometry *geom):TObject(){ fNpadZ = fGeom->NpadZ(); fNpadX = fGeom->NpadX(); fnpad = fNSector*(2*(fNStripC+fNStripB)+fNStripA)*fNpadZ*fNpadX; - fPads = 0x0; gROOT->GetListOfBrowsables()->Add(this); } //________________________________________________________________ AliTOFCal::AliTOFCal(const AliTOFCal& cal): - TObject(cal) - { + TObject(cal), + fNSector(0), + fNPlate(0), + fNStripA(0), + fNStripB(0), + fNStripC(0), + fNpadZ(0), + fNpadX(0), + fnpad(0), + fGeom(0x0), + fPads(0x0) +{ //copy ctor fNSector = cal.fNSector; fNPlate = cal.fNPlate;