From: decaro Date: Fri, 12 Oct 2007 18:04:53 +0000 (+0000) Subject: add initialization of TOF SM configuration in the ctors (S.Arcelli-A.De Caro) X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=0e9dd0cf6904f91a1b8d054573756955ff88e941;p=u%2Fmrichter%2FAliRoot.git add initialization of TOF SM configuration in the ctors (S.Arcelli-A.De Caro) --- diff --git a/TOF/AliTOF.cxx b/TOF/AliTOF.cxx index 41e1b86b93e..96053d25ce7 100644 --- a/TOF/AliTOF.cxx +++ b/TOF/AliTOF.cxx @@ -90,6 +90,10 @@ AliTOF::AliTOF(): // // Default constructor // + + //by default all sectors switched on + for (Int_t ii=0; ii<18; ii++) fTOFSectors[ii]=0; + fDigits = 0; fIshunt = 0; fName = "TOF"; @@ -120,6 +124,9 @@ AliTOF::AliTOF(const char *name, const char *title, Option_t *option) //skowron fTOFGeometry = new AliTOFGeometry(); + //by default all sectors switched on + for (Int_t ii=0; ii<18; ii++) fTOFSectors[ii]=0; + if (strstr(option,"tzero")){ fHits = new TClonesArray("AliTOFhitT0", 1000); fTZero = kTRUE;