Report problems to ATLAS LXR Team (with time and IP address indicated)

The LXR Cross Referencer

source navigation ]
diff markup ]
identifier search ]
general search ]
 
 
Architecture: linux ]
Version: head ] [ nightly ] [ GaudiDev ]
  Links to LXR source navigation pages for stable releases [ 12.*.* ]   [ 13.*.* ]   [ 14.*.* ]   [ 15.*.* ] 

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         // create a TTreeReader before any other things

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         // Frame Modules Creation & initialisation     //

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         //this->exportButton(pExportButton);

065 
066 
067         // create a detectorview

068         IDetectorView* pDetectorView = new StandardDetectorView(this, TTGraphUnitFactory::eBOX);
069         // use a factory here DetViewFact("Standard","BOX")

070         // la chaine doit etre forwarde jusqua TriggerTowerMap(newPad, eDet, "BOX");

071         // ou une autre factory cree le bon ITTGraphUnit

072         this->detectorView( pDetectorView ); 
073 
074         this->mapFrames(std::string("ByteStream"));
075 
076         // this can only be done after m_fMain->MapWindow();

077         if(pScaleSelector) {
078                 pScaleSelector->updateFrames(); // hide entry fields frames 

079                 pScaleSelector->newData(); // tells the ScaleFrame to load new scale objects from the tree reader

080         }
081 
082         // draw the detector View and its content

083         this->Draw();
084 }
085 
086 ByteStreamDisplayFrame::~ByteStreamDisplayFrame(void)
087 {
088 }
089 
090 /*

091 void ByteStreamDisplayFrame::onTTDumpPanel(int ttIndex) {

092         // overload the AbstractDisplayFrame::onTTDumpPanel method to avoid the pop-up of 

093         // an empty DumpPanel, since PedestalBranchDecoder::dumpTT2Frame is not implemented

094 }

095 */

source navigation ] diff markup ] identifier search ] general search ]

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. Valid HTML 4.01!