Title: Implementing root_gui to Cal_Examine
1Cal_Examine
Package is at /online/examines/txx.xx.xx Exacutabl
e /online/examines/txx.xx.xx/bin/Linux----/CalEx
amine_x Runs with histoscope and
xgooey(default). Running with histoscope In
/online/examines/scripts do ./cal_examine.sh Or
start_daq cal_examine Running with xgooey In
/online/examines/scripts do ./xgooey.sh In Xgooey
preferences Script
/online/examines/bin/StartCalExamine.sh
SUBDetector Calorimeter Connection
d0ssh Cal_Examine port 52105
RCP /framework_raw.rcp
2Cal_Examine Histograms
Total Energy, ET,EM and HAD energy EM,HAD Cell
energy vs IPhi,iEta N-hits per Tower vs iEta for
all iPhi N-hits per Tower vs iPhi for all
iEta Cell Energy (GeV,ADC) in iPhi,iEta EM,HAD ET
in iPhi,iEta Event Size Energy in Cal Layer
Cell Energy in iPhi,iEta Cal Layer Cell
Energy per Total Number of Events Cal Layer
N-hits in iPhi,iEta Cal Layer N-hits per
Total Number of Events in iPhi,iEta Cal Layer
3Implementing root_gui to Cal_Examine
LIBDEPS HBookHepTuple RootHepTuple framework root_
framework histoscope
Cal_Examine.hpp Includes for ROOT or Histoscope
include HepTuple/HepRootFileManager.h includ
e HepTuple/HepHBookFileManager.h include
HepTuple/HepNtuple.h include
HepTuple/HepHBook.h
4Implementing root_gui to Cal_Examine Source Code
Cal_Examine.cpp Includes for ROOT or Histoscope
include "HepTuple/HepFileManager.h" include
"HepTuple/HepHBookFileManager.h" include
"HepTuple/HepHBook.h" include
"HepTuple/HepHBookNtuple.h" include
"root_framework/Xserv.hpp" include
"root_framework/gstream.hpp" include
"root_framework/private/RFOptions.hpp" define
ERMOD 10000 extern "C" include
"histoscope.h" ---Do not use namespace edm
5Implementing root_gui to Cal_Examine Source
Code cont.
Initialization _use_root caleRCP.getBool("use_ro
ot") if(_use_root)file_name caleRCP.getString(
"root_file") elsefile_name caleRCP.getString(
"histoscope_file") if(!_use_root)
hs_initialize("Calorimeter Examine Histograms")
---Change output name add date and
time if(!_use_root) _hbkMgr new
HepHBookFileManager(file_name.c_str()) else
_hbkMgr new HepRootFileManager(file_name.c_str()
, HepFileManagerHEP_REFRESH) ---Book
histograms
6Implementing root_gui to Cal_Examine Source
Code cont.
//This Histo call registers the histogram
subdirectory in the memory. if(_use_root)
Xserv xserv Xservinstance() int catid
xserv-gtAdd((HepRootFileManager)_hbkMgr,
"Calorimeter Examine Histograms")
xserv-gtSetOption(catid, hname, "lego1")
xserv-gtSetOption(catid, 49, "lego1") else
hs_hbook_setup("//PAWC") Process
Event if(!_use_root) hs_update() Job
Summary // This Histo Scope call cleans up the
network port and memory. if(_use_root)
_hbkMgr-gtwrite() else hs_complete()