i am working in root. i have a code to open a root file, retrieve a histogram and find integral of a given range. but my code is not working. the code is working in my supervisor’s computer, but not in my computer. how can i solve this problem?
this platform is not allowing me to share the error messages here, hence i couldn’t specify my problem.
I guess that your code expects the “root file” in some place which is specific to your “supervisor’s computer” (so you need to “tune” the code to reach the same file on your computer).
I am using
TDirectory to reach the files. definitely i copied the path from file properties and also checked with the command pwd. yet it gives: Unknown directory home or Unknown directory Desktop
If i open root directly from the terminal, it open macros from .:/opt/root/macros
and hence give error: macro ****.C not found in path
Here i cannot keep my files as it is restricted. so i have to open my macros from my directory, which i cannot as stated before.
what to do?
cd /where/you/have/private/macros ; root some_macro.C
cd /your/working/directory ; root /where/you/have/private/macros/some_macro.C