Last change
on this file since 9223 was 462, checked in by harald, 24 years ago |
Import the files for the datacheck section in this subdir.
|
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 "MParList.h"
|
---|
13 | #include "MHistosAdc.h"
|
---|
14 |
|
---|
15 |
|
---|
16 | ////////////////////////////////////////////////////////////////////////
|
---|
17 | //
|
---|
18 | // MGShowSpect.h
|
---|
19 | //
|
---|
20 | // A Gui Task to show the raw ADC values in the histograms
|
---|
21 | //
|
---|
22 |
|
---|
23 | ClassImp(MShowSpect)
|
---|
24 |
|
---|
25 | MShowSpect::MShowSpect(char *nameHist )
|
---|
26 | {
|
---|
27 | // default constructor
|
---|
28 |
|
---|
29 | sprintf (fHistName, "%s", nameHist ) ;
|
---|
30 | }
|
---|
31 |
|
---|
32 |
|
---|
33 | Bool_t MShowSpect::PreProcess(MParList *pList)
|
---|
34 | {
|
---|
35 | //
|
---|
36 | // Do the preprocessing for MShowSpect
|
---|
37 | //
|
---|
38 | // Connects Histogramms in the MHistosAdc container as the input
|
---|
39 | //
|
---|
40 |
|
---|
41 | fHists = (MHistosAdc*) pList->FindObject( fHistName );
|
---|
42 |
|
---|
43 | if (!fHists)
|
---|
44 | {
|
---|
45 | cout << "ERROR: MShowSpect::PreProc(): " << fHistName << " not found!" << endl;
|
---|
46 | exit(1);
|
---|
47 | }
|
---|
48 |
|
---|
49 | return (kTRUE) ;
|
---|
50 | }
|
---|
51 |
|
---|
52 |
|
---|
53 | Bool_t MShowSpect::PostProcess()
|
---|
54 | {
|
---|
55 | // just start the gui for displaying the adc spectra
|
---|
56 |
|
---|
57 | new MGDisplayAdc(fHists, gClient->GetRoot(), gClient->GetRoot(), 600, 600);
|
---|
58 |
|
---|
59 | return (kTRUE) ;
|
---|
60 | }
|
---|
61 |
|
---|
62 |
|
---|
63 |
|
---|
64 |
|
---|
65 |
|
---|
66 |
|
---|
67 |
|
---|
68 |
|
---|
69 |
|
---|
70 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.