Changeset 667 for trunk/MagicSoft/Mars/mdatacheck/MViewAdcSpectra.cc
- Timestamp:
- 03/02/01 13:43:09 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mdatacheck/MViewAdcSpectra.cc
r544 r667 26 26 MViewAdcSpectra::~MViewAdcSpectra() 27 27 { 28 // default destructor 28 // default destructor 29 delete fHistosAdc; 29 30 } 30 31 … … 44 45 // connect them in the required way. 45 46 46 MParList *plist = new MParList; 47 MTaskList *tasks = new MTaskList; 48 plist->AddToList(tasks); 47 // 48 // create the data containers for the raw data 49 // 50 MParList plist; 51 52 MRawRunHeader runheader; 53 plist.AddToList(&runheader); 49 54 50 // create the data containers for the raw data 55 MRawEvtHeader evtheader; 56 plist.AddToList(&evtheader); 51 57 52 MRawRunHeader *runheader = new MRawRunHeader; 53 plist->AddToList(runheader); 58 MRawEvtData evtdata; 59 plist.AddToList(&evtdata); 60 61 MRawCrateArray cratearray; 62 plist.AddToList(&cratearray); 63 64 MTime evttime("MTime"); 65 plist.AddToList(&evttime); 54 66 55 MRawEvtHeader *evtheader = new MRawEvtHeader; 56 plist->AddToList(evtheader); 57 58 MRawEvtData *evtdata = new MRawEvtData; 59 plist->AddToList(evtdata); 60 61 MRawCrateArray *cratearray = new MRawCrateArray; 62 plist->AddToList(cratearray); 63 64 MTime *evttime = new MTime("MTime"); 65 plist->AddToList(evttime); 67 fHistosAdc= new MHistosAdc; 68 plist.AddToList( fHistosAdc ) ; 66 69 67 MHistosAdc *histosAdc = new MHistosAdc() ; 68 plist->AddToList( histosAdc ) ; 69 70 // 70 71 // set up the tasks for this job 72 // 73 MTaskList tasks; 74 plist.AddToList(&tasks); 71 75 72 MReadTree *readin = new MReadTree ( inputfile, treeName ) ;73 tasks ->AddToList( readin ) ;76 MReadTree readin ( inputfile, treeName ) ; 77 tasks.AddToList( &readin ) ; 74 78 75 79 // MDumpEvtHeader *dumpheader = new MDumpEvtHeader() ; 76 80 // tasks->AddToList( dumpheader ) ; 77 81 78 MFillAdcSpect *fillspect = new MFillAdcSpect() ;79 tasks ->AddToList( fillspect ) ;82 MFillAdcSpect fillspect; 83 tasks.AddToList( &fillspect ) ; 80 84 81 MShowSpect *showspect = new MShowSpect( "MHistosAdc" ) ;82 tasks ->AddToList(showspect ) ;85 MShowSpect showspect( "MHistosAdc" ) ; 86 tasks.AddToList( &showspect ) ; 83 87 84 88 // set up the loop for the processing 85 89 86 90 MEvtLoop magic; 87 magic.SetParList( plist);91 magic.SetParList(&plist); 88 92 89 93 // start the loop running … … 91 95 magic.Eventloop() ; 92 96 93 94 cout << " End of this job " << endl ; 95 96 return kTRUE ; 97 return kTRUE ; 97 98 98 99 }
Note:
See TracChangeset
for help on using the changeset viewer.