Changeset 4810 for trunk/MagicSoft/Mars/mcalib
- Timestamp:
- 08/30/04 16:30:34 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationTestCalc.cc
r4658 r4810 235 235 const UInt_t nsectors = fGeom->GetNumSectors(); 236 236 237 Double_t lowlim [nareas]; 238 Double_t upplim [nareas]; 239 Double_t areaphotons [nareas], sectorphotons [nsectors]; 240 Double_t areavars [nareas], sectorvars [nsectors]; 241 Double_t fittedmean [nareas], fittedsigma [nareas]; 242 Int_t numareavalid[nareas], numsectorvalid[nsectors]; 243 244 memset(lowlim ,0, nareas * sizeof(Double_t)); 245 memset(upplim ,0, nareas * sizeof(Double_t)); 246 memset(fittedmean ,0, nareas * sizeof(Double_t)); 247 memset(fittedsigma ,0, nareas * sizeof(Double_t)); 248 memset(areaphotons ,0, nareas * sizeof(Double_t)); 249 memset(areavars ,0, nareas * sizeof(Double_t)); 250 memset(numareavalid ,0, nareas * sizeof(Int_t )); 251 memset(sectorphotons ,0, nsectors * sizeof(Double_t)); 252 memset(sectorvars ,0, nsectors * sizeof(Double_t)); 253 memset(numsectorvalid,0, nsectors * sizeof(Int_t )); 254 237 TArrayD lowlim (nareas); 238 TArrayD upplim (nareas); 239 TArrayD areaphotons (nareas); 240 TArrayD sectorphotons(nsectors); 241 TArrayD areavars (nareas); 242 TArrayD sectorvars (nsectors); 243 TArrayD fittedmean (nareas); 244 TArrayD fittedsigma (nareas); 245 TArrayI numareavalid(nareas); 246 TArrayI numsectorvalid(nsectors); 247 255 248 // 256 249 // First loop: Get mean number of calibrated photons and the RMS … … 380 373 *fLog << endl; 381 374 382 memset(numareavalid,0,nareas*sizeof(Int_t));383 memset(areaphotons ,0,nareas*sizeof(Double_t));384 memset(areavars ,0,nareas*sizeof(Double_t));375 numareavalid.Reset(); 376 areaphotons .Reset(); 377 areavars .Reset(); 385 378 386 379 //
Note:
See TracChangeset
for help on using the changeset viewer.