- Timestamp:
- 08/30/04 16:22:48 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r4806 r4807 22 22 23 23 * mcalib/MCalibrationChargeCalc.cc 24 * mcalib/MHCalibrationTestTimeCam.cc 24 25 - exchanged all arrays by TArray's 25 26 -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc
r4793 r4807 996 996 const UInt_t nsectors = fGeom->GetNumSectors(); 997 997 998 Float_t lowlim [nareas]; 999 Float_t upplim [nareas]; 1000 Double_t areavars [nareas]; 1001 Double_t areaweights[nareas], sectorweights [nsectors]; 1002 Double_t areaphes [nareas], sectorphes [nsectors]; 1003 Int_t numareavalid[nareas], numsectorvalid[nsectors]; 1004 1005 memset(lowlim ,0, nareas * sizeof(Float_t)); 1006 memset(upplim ,0, nareas * sizeof(Float_t)); 1007 memset(areaphes ,0, nareas * sizeof(Double_t)); 1008 memset(areavars ,0, nareas * sizeof(Double_t)); 1009 memset(areaweights ,0, nareas * sizeof(Double_t)); 1010 memset(numareavalid ,0, nareas * sizeof(Int_t )); 1011 memset(sectorweights ,0, nsectors * sizeof(Double_t)); 1012 memset(sectorphes ,0, nsectors * sizeof(Double_t)); 1013 memset(numsectorvalid,0, nsectors * sizeof(Int_t )); 1014 998 TArrayF lowlim (nareas); 999 TArrayF upplim (nareas); 1000 TArrayD areavars (nareas); 1001 TArrayD areaweights (nareas); 1002 TArrayD sectorweights (nsectors); 1003 TArrayD areaphes (nareas); 1004 TArrayD sectorphes (nsectors); 1005 TArrayI numareavalid (nareas); 1006 TArrayI numsectorvalid(nsectors); 1007 1015 1008 // 1016 1009 // First loop: Get mean number of photo-electrons and the RMS … … 1127 1120 *fLog << endl; 1128 1121 1129 memset(numareavalid,0,nareas*sizeof(Int_t)); 1130 memset(areaphes ,0,nareas*sizeof(Double_t)); 1131 memset(areavars ,0,nareas*sizeof(Double_t)); 1132 1122 numareavalid.Reset(); 1123 areaphes .Reset(); 1124 areavars .Reset(); 1133 1125 // 1134 1126 // Second loop: Get mean number of photo-electrons and its RMS excluding … … 1564 1556 fCam->SetNumPhotonsFFactorMethodErr(TMath::Sqrt( avphotrelvar * avphotons * avphotons)); 1565 1557 1566 Float_t lowlim [nareas]; 1567 Float_t upplim [nareas]; 1568 Double_t avffactorphotons [nareas]; 1569 Double_t avffactorphotvar [nareas]; 1570 Int_t numffactor [nareas]; 1571 1572 memset(lowlim ,0, nareas * sizeof(Float_t)); 1573 memset(upplim ,0, nareas * sizeof(Float_t)); 1574 memset(avffactorphotons,0, nareas * sizeof(Double_t)); 1575 memset(avffactorphotvar,0, nareas * sizeof(Double_t)); 1576 memset(numffactor ,0, nareas * sizeof(Int_t)); 1558 TArrayF lowlim (nareas); 1559 TArrayF upplim (nareas); 1560 TArrayD avffactorphotons (nareas); 1561 TArrayD avffactorphotvar (nareas); 1562 TArrayI numffactor (nareas); 1577 1563 1578 1564 const UInt_t npixels = fGeom->GetNumPixels(); … … 1911 1897 const Int_t nareas = fGeom->GetNumAreas(); 1912 1898 1913 Int_t counts[nareas]; 1914 memset(counts,0,nareas*sizeof(Int_t)); 1899 TArrayI counts(nareas); 1915 1900 1916 1901 for (Int_t i=0; i<fBadPixels->GetSize(); i++) … … 1928 1913 << Form("%s%3i%s%3i","Inner: ",counts[0]," Outer: ",counts[1]) << endl; 1929 1914 1930 memset(counts,0,nareas*sizeof(Int_t));1915 counts.Reset(); 1931 1916 1932 1917 for (Int_t i=0; i<fBadPixels->GetSize(); i++) … … 1947 1932 << Form("%s%3i%s%3i","Inner: ",counts[0]," Outer: ",counts[1]) << endl; 1948 1933 1949 memset(counts,0,nareas*sizeof(Int_t));1934 counts.Reset(); 1950 1935 1951 1936 for (Int_t i=0; i<fBadPixels->GetSize(); i++)
Note:
See TracChangeset
for help on using the changeset viewer.