ROOT Version: 6.28/06
Platform: WSL Ubuntu
Compiler: Not Provided
Hi, relatively new to root and I’m currently attempting to use a bash script to complete a task, and within the code is:
root B4.root <<-EOF #opens the output in root then takes the integral of the data and saves it to a text file (currently throwing an error)
Eabs->Integral() >> ../FullOut.txt
.q
EOF
cd ..
The error given when attempting to run this is:
ROOT_prompt_1:1:21: error: expected expression
Eabs->Integral() >> ../FullOut.txt
^
My best guess is that giving a directory is trying to use regular shell commands inside of root?? However I have not found any way to fix this from looking online. What am I doing wrong? Thanks