Changeset 658 for trunk/MagicSoft
- Timestamp:
- 03/01/01 17:22:23 (24 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/meventdisp/MGFadcDisp.cc
r609 r658 37 37 // first connect the file with this Object 38 38 39 p list = new MParList();40 41 runheader = new MRawRunHeader();42 p list->AddToList(runheader);43 44 evtheader = new MRawEvtHeader();45 p list->AddToList(evtheader);46 evttime = new MTime();47 p list->AddToList(evttime);48 evtdata = new MRawEvtData();49 p list->AddToList(evtdata);50 evtcrate = new MRawCrateArray();51 p list->AddToList(evtcrate);52 53 54 readin= new MReadTree ( filename, treename ) ;55 readin->PreProcess( plist ) ;39 pList = new MParList(); 40 41 fRunHeader = new MRawRunHeader(); 42 pList->AddToList(fRunHeader); 43 44 fEvtHeader = new MRawEvtHeader(); 45 pList->AddToList(fEvtHeader); 46 fEvtTime = new MTime(); 47 pList->AddToList(fEvtTime); 48 fEvtData = new MRawEvtData(); 49 pList->AddToList(fEvtData); 50 fEvtCrate = new MRawCrateArray(); 51 pList->AddToList(fEvtCrate); 52 53 54 fReadTree = new MReadTree ( filename, treename ) ; 55 fReadTree->PreProcess( pList ) ; 56 56 57 57 // … … 92 92 93 93 char wortdummy[100] ; 94 sprintf (wortdummy, "out of %d Events", readin->GetEntries() ) ;94 sprintf (wortdummy, "out of %d Events", fReadTree->GetEntries() ) ; 95 95 fLabelTotNr = new TGLabel(fTop2, new TGString( wortdummy ) ); 96 96 fTop2->AddFrame( fLabelTotNr, new TGLayoutHints (kLHintsLeft, 10, 10, 10, 10)) ; … … 203 203 204 204 // 205 // readinthe first event and update the window206 // 207 208 readin->GetEvent() ;205 // fReadTree the first event and update the window 206 // 207 208 fReadTree->GetEvent() ; 209 209 CreatePixelList() ; 210 210 UpdateEventCounter() ; … … 217 217 // close the file 218 218 219 readin->PostProcess() ;220 221 delete runheader ;222 delete evtheader ;223 delete evttime ;224 delete evtdata ;225 delete evtcrate ;226 227 delete p list ;228 229 delete readin;219 fReadTree->PostProcess() ; 220 221 delete fRunHeader ; 222 delete fEvtHeader ; 223 delete fEvtTime ; 224 delete fEvtData ; 225 delete fEvtCrate ; 226 227 delete pList ; 228 229 delete fReadTree ; 230 230 231 231 // destruct the graphical members … … 285 285 Int_t redraw ; 286 286 287 MRawEvtPixelIter fPixelIter( evtdata );287 MRawEvtPixelIter fPixelIter( fEvtData ); 288 288 char wortdummy[100] ; 289 289 … … 323 323 fCan->cd() ; 324 324 325 evtdata->Draw(wortdummy) ;325 fEvtData->Draw(wortdummy) ; 326 326 327 327 fCan->Modified() ; … … 348 348 char wortdummy[256] ; 349 349 350 sprintf (wortdummy, "%d", readin->GetEventNum() ) ;350 sprintf (wortdummy, "%d", fReadTree->GetEventNum() ) ; 351 351 352 352 fTxtEvtNr->SetText(wortdummy) ; … … 362 362 // first check if the new event is in the range of possible events 363 363 364 if ( (iEvt < 0) || (iEvt>= readin->GetEntries()) ) {364 if ( iEvt < 0 || iEvt >= fReadTree->GetEntries() ) { 365 365 new TGMsgBox(fClient->GetRoot(), this, 366 366 "WARNING!", … … 371 371 } 372 372 else { 373 readin->SetEventNum(iEvt) ;374 readin->GetEvent() ;373 fReadTree->SetEventNum(iEvt) ; 374 fReadTree->GetEvent() ; 375 375 CreatePixelList() ; 376 376 UpdateEventCounter() ; … … 409 409 case M_PREVEVT: 410 410 411 ReadinEvent( readin->GetEventNum()-1 ) ;411 ReadinEvent(fReadTree->GetEventNum()-1 ) ; 412 412 413 413 break; … … 415 415 case M_NEXTEVT: 416 416 417 ReadinEvent( readin->GetEventNum()+1 ) ;417 ReadinEvent(fReadTree->GetEventNum()+1 ) ; 418 418 419 419 break; … … 443 443 fCan->cd() ; 444 444 445 evtdata->Draw(wortdummy) ;445 fEvtData->Draw(wortdummy) ; 446 446 447 447 fCan->Modified() ; -
trunk/MagicSoft/Mars/meventdisp/MGFadcDisp.h
r587 r658 57 57 // 58 58 59 MParList *p list ;60 MRawRunHeader * runheader ;61 MRawEvtHeader * evtheader ;62 MTime * evttime ;63 MRawEvtData * evtdata ;64 MRawCrateArray * evtcrate ;59 MParList *pList ; 60 MRawRunHeader *fRunHeader ; 61 MRawEvtHeader *fEvtHeader ; 62 MTime *fEvtTime ; 63 MRawEvtData *fEvtData ; 64 MRawCrateArray *fEvtCrate ; 65 65 66 MReadTree * readin ;66 MReadTree *fReadTree ; 67 67 68 68 // -
trunk/MagicSoft/Mars/mraw/MRawEvtData.cc
r657 r658 301 301 // Enhance array by the size which we'll read now 302 302 // 303 // Byte_t *lo = new Byte_t[nlo];304 // Byte_t *hi = new Byte_t[nhi];305 306 303 const int npixhi = fHiGainPixId->GetSize(); 307 304 const int npixlo = fLoGainPixId->GetSize(); … … 334 331 fin.read(higainsam, nhi); 335 332 higainsam += nhi; 336 //+++fin.read(hi, nhi);337 //+++fHiGainFadcSamples->AddAt(hi, nsamhi+i*nhi, nhi);338 333 339 334 // FIXME: Not implemented in the raw files yet … … 343 338 fin.read(logainsam, nlo); 344 339 logainsam += nlo; 345 //+++fin.read(lo, nlo);346 //+++fLoGainFadcSamples->AddAt(lo, nsamlo+i*nlo, nlo);347 340 //} 348 341 } 349 // delete lo; 350 // delete hi; 351 } 352 342 } 343
Note:
See TracChangeset
for help on using the changeset viewer.