001 #include "ByteStreamDisplayFrame.h"
002
003 #include "StandardDetectorView.h"
004 #include "TTreeReader.h"
005 #include "INtupleReader.h"
006
007 #include "IDisplayFrame.h"
008 #include "FMEventSelector.h"
009 #include "FMDetectorSelector.h"
010 #include "FMDataSelector.h"
011 #include "FMScaleSelector.h"
012 #include "FMExitButton.h"
013 #include "FMExportButton.h"
014 #include "FMDisplayControl.h"
015 #include "IDetectorView.h"
016
017 #include "TTGraphUnitFactory.h"
018
019 #ifdef WIN32
020 #include <Riostream.h>
021 #else
022 #include <iostream>
023 #endif
024
025 #include <string>
026
027 using std::cout;
028 using std::cerr;
029 using std::endl;
030
031 ByteStreamDisplayFrame::ByteStreamDisplayFrame(TTree* ptree, const TGWindow *p, const TGWindow *main, UInt_t w, UInt_t h, UInt_t options):AbstractDisplayFrame(p, main, w, h, options)
032 {
033 if(!ptree) {
034 cerr<<"PedestalsDisplayFrame: TTree* NULL !"<<endl;
035 }
036
037
038 INtupleReader* ntupleReader = new TTreeReader(ptree, BranchDecoderFactory::eByteStream);
039 if(!ntupleReader) {
040 cerr<<"cannot create a ByteStream TTreeReader !"<<endl;
041 }
042 this->ntupleReader(ntupleReader);
043
044
045
046
047
048 FMEventSelector* pEventSelector = new FMEventSelector(this);
049 this->eventSelector(pEventSelector);
050
051 FMDetectorSelector* pDetectorSelector = new FMDetectorSelector(this);
052 this->detectorSelector(pDetectorSelector);
053
054 FMDisplayControl* pDisplayControl = new FMDisplayControl(this);
055 this->displayControl(pDisplayControl);
056
057 FMDataSelector* pDataSelector = new FMDataSelector(this);
058 this->dataSelector(pDataSelector);
059
060 FMScaleSelector* pScaleSelector = new FMScaleSelector(this);
061 this->scaleSelector(pScaleSelector);
062
063 FMExportButton* pExportButton = new FMExportButton (this);
064
065
066
067
068 IDetectorView* pDetectorView = new StandardDetectorView(this, TTGraphUnitFactory::eBOX);
069
070
071
072 this->detectorView( pDetectorView );
073
074 this->mapFrames(std::string("ByteStream"));
075
076
077 if(pScaleSelector) {
078 pScaleSelector->updateFrames();
079 pScaleSelector->newData();
080 }
081
082
083 this->Draw();
084 }
085
086 ByteStreamDisplayFrame::~ByteStreamDisplayFrame(void)
087 {
088 }
089
090
091
092
093
094
095
| Due to the LXR bug, the updates fail sometimes to remove references to deleted files. The Saturday's full rebuilds fix these problems |
|
This page was automatically generated by the
LXR engine.
|
|