gcc `root-config --libs` `root-config --cflags`
#!/bin/bash # first look whether there is a terminal with root running pid=$(ps -Ao ''%p %a'' |grep terminal|grep root|awk '{print $1}') if [ -n ''$pid'' ]; then kill $pid; fi # now run new terminal and root inside gnome-terminal --disable-factory --geometry 130x50 --window-with-profile=root --hide-menubar -x root -l $1++&
It opens new terminal window and inside runs root which starts compiling source passed in $1. The first part looks for an existing root
terminal window and closes it. Thus, after multiple script exucutions, there is just one root
terminal window.
.vimrc
map <C-F9> :wa<cr>:!runroot %<cr><cr>
That :wa
save all documents first.
See the script.
Tired of endless debugging? Try Valgrind!
module dump = EventContentAnalyzer {}
or
process.dump = cms.EDAnalyzer("EventContentAnalyzer")
Or use binary edmDumpEventContent
.
service = Tracer {}
or
process.Tracer = cms.Service("Tracer" )
in the new format (note the name Tracer
is obligatory).
The following script can find where it comes from.
#!/bin/bash if [ -z "$1" ] then echo "USAGE: cmssw_findsymbol <symbol to find>" exit 1 fi for file in $CMSSW_BASE/lib/$SCRAM_ARCH/*.so do output=`nm -C $file|grep -l "$1"` if [ -n "$output" ] then echo ${file##*/} fi done