source: trunk/MagicSoft/MarsOctober/mocttest/MShowSpect.cc@ 1861

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