Last change
on this file since 6657 was 447, checked in by harald, 24 years ago |
Bringing the sources for the octobertest under CVS controll.
(november, 3rd, 2000)
|
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 |
|
---|
24 | ClassImp(MShowSpect)
|
---|
25 |
|
---|
26 | MShowSpect::MShowSpect( )
|
---|
27 | {
|
---|
28 | // default constructor
|
---|
29 | }
|
---|
30 |
|
---|
31 |
|
---|
32 | Bool_t MShowSpect::PreProcess(MParList *pList)
|
---|
33 | {
|
---|
34 | //
|
---|
35 | // Do the preprocessing for MShowSpect
|
---|
36 | //
|
---|
37 | // Connects Histogramms in the MHistosAdc container as the input
|
---|
38 | //
|
---|
39 |
|
---|
40 | fHists = (MHistosAdc*) pList->FindObject("MHistosAdc");
|
---|
41 |
|
---|
42 | if (!fHists)
|
---|
43 | {
|
---|
44 | cout << "ERROR: MShowSpect::PreProc(): MHistosAdc not found!" << endl;
|
---|
45 | exit(1);
|
---|
46 | }
|
---|
47 |
|
---|
48 | return (kTRUE) ;
|
---|
49 | }
|
---|
50 |
|
---|
51 |
|
---|
52 | Bool_t MShowSpect::PostProcess()
|
---|
53 | {
|
---|
54 | // just start the gui for displaying the adc spectra
|
---|
55 |
|
---|
56 | new MGDisplayAdc(fHists, gClient->GetRoot(), gClient->GetRoot(), 600, 600);
|
---|
57 |
|
---|
58 | return (kTRUE) ;
|
---|
59 | }
|
---|
60 |
|
---|
61 |
|
---|
62 |
|
---|
63 |
|
---|
64 |
|
---|
65 |
|
---|
66 |
|
---|
67 |
|
---|
68 |
|
---|
69 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.