When I run the RUN_Code.csh the file runs nicely…but problem arise when I want to stop the run in the middle using Ctrl+c keys. It gives me the following:
[sushil-laptop@Analysis_Code] ./RUN_Code.csh
removing Analysisdict.C Analysisdict.h Analysis.so
rm Analysisdict.C Analysisdict.h Analysis.so
Making Analysisdict.C Analysisdict.h
rm -f Analysisdict.C Analysisdict.h
rootcint Analysisdict.C -c -I/home/sushil/ROOT/root_5.22/root/include Analysis.h
Compiling Analysis.C
g++ -o Analysis.so -O -Wall -fPIC -shared -I/home/sushil/ROOT/root_5.22/root/include Analysisdict.C Analysis.C
In file included from Analysis.C:2:
Analysis.h: In member function ‘virtual Double_t Analysis::getDeltaPhi(Int_t)’:
Analysis.h:1039: warning: unused variable ‘twopi’
Analysis.h: In member function ‘virtual Double_t Analysis::getGenDeltaPhi(Int_t)’:
Analysis.h:1052: warning: unused variable ‘twopi’
root [0]
Processing run.C…
Error in TTree::SetBranchStatus: unknown branch -> pat_phot_isoEcalRecHitR4
Error in TTree::SetBranchStatus: unknown branch -> pat_phot_isoHcalRecHitR4
Error in TTree::SetBranchStatus: unknown branch -> pat_phot_isohollowtrkconeR4
Events analysed till now —> 0
Events analysed till now —> 100000
Error in TTree::SetBranchStatus: unknown branch -> pat_phot_isoEcalRecHitR4
Error in TTree::SetBranchStatus: unknown branch -> pat_phot_isoHcalRecHitR4
Error in TTree::SetBranchStatus: unknown branch -> pat_phot_isohollowtrkconeR4
Events analysed till now —> 200000
^C
*** Break *** keyboard interrupt run.C:7:
[sushil-laptop@Analysis_Code]
[sushil-laptop@Analysis_Code]
[sushil-laptop@Analysis_Code]
[sushil-laptop@Analysis_Code]
[sushil-laptop@Analysis_Code]
[sushil-laptop@Analysis_Code] Events analysed till now —> 300000
Error in TTree::SetBranchStatus: unknown branch -> pat_phot_isoEcalRecHitR4
Error in TTree::SetBranchStatus: unknown branch -> pat_phot_isoHcalRecHitR4
Error in TTree::SetBranchStatus: unknown branch -> pat_phot_isohollowtrkconeR4
Events analysed till now —> 400000
Events analysed till now —> 500000
…
…
I checked with oher applications and Ctrl+c work fine. But with root it does not. I am using Ubuntu 9.10.
Any suggestions to solve this problem…as I am doing some test and often want to kill the process in the middle using Ctrl+c.
what puzzles me is how ROOT can continue after you got your prompt back, looks like it is running in the background. When this happens do you get the ROOT prompt back at the end?
It seems when i use ctrl+c more than once and NOT running through .csh script then it works fine but if I run it through .csh file then it do not work…infact hitting ctrl+c many time do not show the line below more than once!!!