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

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