Changeset 938 for trunk/MagicSoft/Mars/mdatacheck
- Timestamp:
- 09/20/01 16:26:50 (23 years ago)
- Location:
- trunk/MagicSoft/Mars/mdatacheck
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mdatacheck/DataCheckLinkDef.h
r710 r938 6 6 7 7 #pragma link C++ class MShowSpect; 8 #pragma link C++ class MViewAdcSpectra; 8 9 #pragma link C++ class MDumpEvtHeader; 9 10 -
trunk/MagicSoft/Mars/mdatacheck/MViewAdcSpectra.cc
r749 r938 44 44 #include "MHFadcCam.h" 45 45 46 ClassImp(MViewAdcSpectra); 47 48 // ================================================================================ 49 // 50 // default constructor 51 // 46 52 MViewAdcSpectra::MViewAdcSpectra() 47 53 { 48 // default constructor49 } 54 fHistosAdc = new MHFadcCam; 55 } 50 56 57 // ================================================================================ 58 // 59 // default destructor 60 // 51 61 MViewAdcSpectra::~MViewAdcSpectra() 52 62 { 53 // default destructor54 63 delete fHistosAdc; 55 64 } … … 57 66 58 67 // ================================================================================ 59 Bool_t MViewAdcSpectra::AdcSpectra ( Char_t *inputfile, Char_t *treeName ) 68 // 69 // This job reads in the FADC data from all events and fills 70 // the spectrum for each pmt pixel. 71 // 72 Bool_t MViewAdcSpectra::AdcSpectra(Char_t *inputfile, Char_t *treeName) 60 73 { 61 // This job reads in the FADC data from all events and fills 62 // the spectrum for each pmt pixel. 63 // 74 cout << "MViewAdcSpectra:: Analyse the tree '" << treeName << "'"; 75 cout << "in the file '" << inputfile << "'" << endl; 64 76 65 cout << "PedAdcSpectra:: Analyse the tree " << treeName 66 << "in the file " << inputfile << endl ; 67 68 // create a (empty) list of parameters which can be used by the tasks 69 // and an (empty) list of tasks which should be executed 70 // connect them in the required way. 71 72 // 73 // create the data containers for the raw data 74 // 75 MParList plist; 76 77 MRawRunHeader runheader; 78 plist.AddToList(&runheader); 77 // 78 // create a (empty) list of parameters which can be used by the tasks 79 // and an (empty) list of tasks which should be executed 80 // connect them in the required way. 81 // 79 82 80 MRawEvtHeader evtheader; 81 plist.AddToList(&evtheader); 82 83 MRawEvtData evtdata; 84 plist.AddToList(&evtdata); 85 86 MRawCrateArray cratearray; 87 plist.AddToList(&cratearray); 88 89 MTime evttime("MTime"); 90 plist.AddToList(&evttime); 83 // 84 // create the data containers for the raw data 85 // 86 MParList plist; 91 87 92 fHistosAdc= new MHFadcCam;93 plist.AddToList( fHistosAdc );88 MRawRunHeader runheader; 89 plist.AddToList(&runheader); 94 90 95 // 96 // set up the tasks for this job 97 // 98 MTaskList tasks; 99 plist.AddToList(&tasks); 91 MRawEvtHeader evtheader; 92 plist.AddToList(&evtheader); 100 93 101 MReadTree readin ( treeName, inputfile );102 tasks.AddToList( &readin );94 MRawEvtData evtdata; 95 plist.AddToList(&evtdata); 103 96 104 // MDumpEvtHeader *dumpheader = new MDumpEvtHeader() ; 105 // tasks->AddToList( dumpheader ) ; 106 107 MFillHFadc fillspect; 108 tasks.AddToList( &fillspect ) ; 97 MRawCrateArray cratearray; 98 plist.AddToList(&cratearray); 109 99 110 MShowSpect showspect( "MHFadcCam" );111 tasks.AddToList( &showspect );100 MTime evttime("MTime"); 101 plist.AddToList(&evttime); 112 102 113 // set up the loop for the processing 114 115 MEvtLoop magic; 116 magic.SetParList(&plist); 103 plist.AddToList(fHistosAdc); 117 104 118 // start the loop running 105 // 106 // set up the tasks for this job 107 // 108 MTaskList tasks; 109 plist.AddToList(&tasks); 119 110 120 magic.Eventloop() ; 121 122 return kTRUE ; 111 MReadTree readin(treeName, inputfile); 112 tasks.AddToList(&readin); 123 113 124 } 114 // 115 // MDumpEvtHeader *dumpheader = new MDumpEvtHeader() ; 116 // tasks->AddToList( dumpheader ) ; 117 // 118 MFillHFadc fillspect; 119 tasks.AddToList(&fillspect); 120 121 MShowSpect showspect("MHFadcCam"); 122 tasks.AddToList(&showspect); 123 124 // 125 // set up the loop for the processing 126 // 127 MEvtLoop magic; 128 magic.SetParList(&plist); 129 130 // 131 // start the loop running 132 // 133 magic.Eventloop(); 134 135 return kTRUE; 136 } -
trunk/MagicSoft/Mars/mdatacheck/MViewAdcSpectra.h
r698 r938 8 8 class MHFadcCam; 9 9 10 class MViewAdcSpectra { 10 class MViewAdcSpectra 11 { 12 private: 13 MHFadcCam *fHistosAdc; 11 14 12 private:15 public: 13 16 14 MHFadcCam *fHistosAdc; 17 MViewAdcSpectra(); 18 virtual ~MViewAdcSpectra(); 19 20 Bool_t AdcSpectra(Char_t *inputFile, Char_t *treeName); 15 21 16 public: 17 18 MViewAdcSpectra() ; 19 20 ~MViewAdcSpectra() ; 21 22 Bool_t AdcSpectra( Char_t *inputFile , Char_t *treeName ) ; 22 // Bool_t CrAdcSpectra ( Char_t *inputFile ) ; 23 // Bool_t PedTdcSpectra( Char_t *inputFile ) ; 24 // Bool_t CrTdcSpectra ( Char_t *inputFile ) ; 23 25 24 // Bool_t CrAdcSpectra ( Char_t *inputFile ) ; 25 26 // Bool_t PedTdcSpectra( Char_t *inputFile ) ; 27 // Bool_t CrTdcSpectra ( Char_t *inputFile ) ; 28 29 } ; 26 ClassDef(MViewAdcSpectra, 0) // Part of the gui, displays Adc Spectras 27 }; 30 28 31 29 #endif
Note:
See TracChangeset
for help on using the changeset viewer.