.L displayTwofiles.C displayTwofiles( .....) // depending on your file names, histogram names, etc.
ssh 140.115.32.53 -l "your_user_id"
echo $SHELL
source /opt/exp_soft/cms/cmsset_default.csh cd cmsrel CMSSW_3_9_7 cd CMSSW_3_9_7/src cmsenv* If it is bash, follow the instruction below.
source /opt/exp_soft/cms/cmsset_default.sh cd cmsrel CMSSW_3_9_7 cd CMSSW_3_9_7/src cmsenv
cd mkdir rootExercise cd rootExercise
cp -p /data/syu/Plot_jiechen.* .
ls
root -l .L Plot_jiechen.C++ Plot_jiechen a; a.Loop();
.q
root -l output_histo.root .ls h_phoet->Draw(); h_phophi->Draw();
.L loopEntries.C++ loopEntries()
root -l /data/syu/31x_7TeV_PhotonJet_Pt15_pythia.root
EventTree->MakeClass("myMacro");You could change myMacro to any name you prefer.
I | Attachment | History | Action | Size | Date | Who | Comment |
---|---|---|---|---|---|---|---|
c | displayTwoTrees.C | r1 | manage | 1.8 K | 2011-06-01 - 07:50 | ShinShanYu | |
c | displayTwofiles.C | r1 | manage | 3.1 K | 2011-05-19 - 06:58 | ShinShanYu | |
c | loopEntries.C | r1 | manage | 2.0 K | 2011-06-22 - 15:42 | ShinShanYu |