source: trunk/MagicSoft/Mars/mdatacheck/MShowSpect.cc@ 531

Last change on this file since 531 was 531, checked in by harald, 24 years ago
There were some exit statement, that were not useful. So I replaced them by the statement --> return kFALSE <--
File size: 1017 bytes
Line 
1#include "MShowSpect.h"
2
3#include "MParList.h" // MParList
4#include "MGDisplayAdc.h" // MGDisplayAdc
5
6
7////////////////////////////////////////////////////////////////////////
8//
9// MGShowSpect.h
10//
11// A Gui Task to show the raw ADC values in the histograms
12//
13
14ClassImp(MShowSpect)
15
16MShowSpect::MShowSpect(char *nameHist )
17{
18 // default constructor
19
20 sprintf (fHistName, "%s", nameHist ) ;
21}
22
23
24Bool_t MShowSpect::PreProcess(MParList *pList)
25{
26 //
27 // Do the preprocessing for MShowSpect
28 //
29 // Connects Histogramms in the MHistosAdc container as the input
30 //
31
32 fHists = (MHistosAdc*) pList->FindObject( fHistName );
33
34 if (!fHists)
35 {
36 cout << "ERROR: MShowSpect::PreProc(): " << fHistName << " not found!" << endl;
37 return kFALSE ;
38 }
39
40 return (kTRUE) ;
41}
42
43
44Bool_t MShowSpect::PostProcess()
45{
46 // just start the gui for displaying the adc spectra
47
48 new MGDisplayAdc(fHists, gClient->GetRoot(), gClient->GetRoot(), 600, 600);
49
50 return (kTRUE) ;
51}
52
53
54
55
56
57
58
59
60
61
Note: See TracBrowser for help on using the repository browser.