Changeset 4555 for trunk/MagicSoft/Mars/mtemp/mifae
- Timestamp:
- 08/10/04 10:02:39 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mtemp/mifae
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtemp/mifae/Changelog
r4554 r4555 19 19 -*-*- END OF LINE -*-*- 20 20 21 2004/08/ 04 Javier Rico21 2004/08/10 Ester Aliu 22 22 * library/MIslands.[h,cc], MIslandCalc.[h,cc] 23 23 - remove som bugs -
trunk/MagicSoft/Mars/mtemp/mifae/library/MIslandCalc.cc
r4442 r4555 160 160 161 161 const Int_t nPix=577; 162 const Int_t nVect= 20;162 const Int_t nVect=50; 163 163 Int_t numisl; 164 164 … … 228 228 if (i == 0) 229 229 fIsl->SetIslId(idx, -1); 230 //fIsl->SetArrivalTime(i, idx, -1 );230 fIsl->SetArrivalTime(i, idx, -1 ); 231 231 } 232 232 } … … 297 297 298 298 fIsl->SetIslId(idx, i-1); 299 //fIsl->SetArrivalTime(i-1, idx, time[n]);299 fIsl->SetArrivalTime(i-1, idx, time[n]); 300 300 301 301 n++; … … 318 318 timeVariance[i-1] = MAX-MIN; 319 319 320 //noise = 0, in the case of MC w/o noise 321 if (noise == 0) noise = 1; 322 320 323 fSigToNoise[i-1]= (Float_t)signal/(Float_t)sqrt(noise); 321 324 … … 406 409 fIsl->SetReadyToSave(); 407 410 408 409 for (Int_t i=0;i<nVect;i++)410 delete [] vect[i]; 411 412 411 412 for (Int_t i = 0; i< nVect; i++) 413 delete [] vect[i]; 414 415 delete vect; 413 416 414 417 return kTRUE; … … 443 446 zeros[n] = 0; 444 447 445 448 //cout << "new event" <<endl; 446 449 MCerPhotPix *pix; 447 450 … … 458 461 if( fEvt->IsPixelUsed(idx)) 459 462 { 463 //cout << idx <<endl; 460 464 sflag = 0; 461 465 … … 480 484 { 481 485 nvect++; 486 // cout << "nvect " << nvect << endl; 482 487 vect[nvect][idx] = 1; 483 488 } -
trunk/MagicSoft/Mars/mtemp/mifae/library/MIslands.cc
r4528 r4555 30 30 MIslands::~MIslands() 31 31 { 32 delete fPixNum; 33 delete fSigToNoise; 34 delete fTimeSpread; 35 delete fMeanX; 36 delete fMeanY; 37 delete fDist; 38 delete fDistL; 39 delete fDistW; 32 40 33 } 41 34 … … 59 52 // Print the island parameters to *fLog 60 53 // 61 void MIslands::Print(Option_t *opt ) const54 void MIslands::Print(Option_t *opt=NULL) const 62 55 { 63 56 *fLog << all; -
trunk/MagicSoft/Mars/mtemp/mifae/library/MIslands.h
r4442 r4555 29 29 Float_t* fSigToNoise; //[fIslNum] signal to noise of the island 30 30 // Float_t** fTime; //[fIslNum] mean of the arrival time 31 //Float_t fTime[10][577]; // mean of the arrival time31 Float_t fTime[10][577]; // mean of the arrival time 32 32 Float_t* fTimeSpread; //[fIslNum] mean arrival time spread of the core pixels of the island 33 33 Float_t* fMeanX; //[fIslNum] mean X position of the island … … 51 51 //Int_t GetIslId(Int_t isl, Int_t idx) { return fIslId[isl][idx]; } 52 52 // TObjArray GetIslId() {return fIslId;} 53 //Float_t GetArrivalTime(Int_t isl, Int_t idx) { return fTime[isl][idx]; }53 Float_t GetArrivalTime(Int_t isl, Int_t idx) { return fTime[isl][idx]; } 54 54 //TObjArray GetArrivalTime() { return fTime; } 55 55 Int_t GetPixNum(Int_t isl) { return fPixNum[isl]; } … … 70 70 71 71 // void SetIslId(Int_t** vect) { fIslId = vect; } 72 //void SetArrivalTime(Int_t isl, Int_t idx, Float_t val) { fTime[isl][idx] = val;}72 void SetArrivalTime(Int_t isl, Int_t idx, Float_t val) { fTime[isl][idx] = val;} 73 73 // void SetArrivalTime(Float_t** vect) { fTime = vect;} 74 74 void SetPixNum(Int_t* npix) { fPixNum = npix; } -
trunk/MagicSoft/Mars/mtemp/mifae/programs/makeHillas.cc
r4533 r4555 135 135 { 136 136 // Set the general tasks/containers 137 //MExtractFixedWindow extractor; 137 MExtractFixedWindow extractor; 138 extractor.SetRange(hifirst,hilast,lofirst,lolast); 139 140 //MExtractSlidingWindow extractor; 138 141 //extractor.SetRange(hifirst,hilast,lofirst,lolast); 139 140 MExtractSlidingWindow extractor; 141 extractor.SetRange(hifirst,hilast,lofirst,lolast); 142 extractor.SetWindowSize(4,4); 142 //extractor.SetWindowSize(4,4); 143 143 144 144 MGeomCamMagic geomcam;
Note:
See TracChangeset
for help on using the changeset viewer.