New to ROOT and in need of assistance

I would like to start off by asking how do change the directory where root automatically searches for the files to execute and work with?

Hi,

Simply create a .rootrc file containing the value you want for [code]# Path used by dynamic loader to find shared libraries.

This path will be prepended to the (DY)LD_LIBRARY_PATH.

Paths are different for Unix and Windows. The example shows the defaults

for all ROOT applications for either Unix or Windows.

Unix..Root.DynamicPath: .:$(ROOTSYS)/lib:
WinNT.
.Root.DynamicPath: .;$(ROOTSYS)/bin;$(PATH);

Path used to find macros.

Paths are different for Unix and Windows. The example shows the defaults

for all ROOT applications for either Unix or Windows.

Unix..Root.MacroPath: .:$(ROOTSYS)/macros:
WinNT.
.Root.MacroPath: .;$(ROOTSYS)/macros;

Path used to find plugin macros.

Paths are different for Unix and Windows. The example shows the defaults

for all ROOT applications for either Unix or Windows.

Unix..Root.PluginPath: :$(ROOTSYS)/etc/plugins:
WinNT.
.Root.PluginPath: ;$(ROOTSYS)/etc/plugins;
[/code]Those example are copied from the system.rootrc where you can find more example of value you can customize.

Cheers,
Philippe.

I appreciate the help, but understand that i am still learning so can you interpret what you sent me?

example: when i want to execute hsimple.C, i would like to normally type in the terminal:

.x hsimple.C

but instead i have to write it with the directory so root knows where to pull it from. In simple terms, what should i type while in root in the terminal to change the path to the directory that i want without always having to type it when i want to execute.

it was a simple solution as well…

in the terminal:

root cd /xxx/xxx/xxx

but thank you anyway. keep checking back though, this noob may have more questions.

[quote=“asirico2011”]I appreciate the help, but understand that i am still learning so can you interpret what you sent me?

example: when i want to execute hsimple.C,
[/quote]In ROOT realm it is called “execute ROOT macro”. This means you should define the “ROOT macro path”. The later means you have to edit the “.rootrc” file

[code]# Path used to find macros.

Paths are different for Unix and Windows. The example shows the defaults

for all ROOT applications for either Unix or Windows.

Unix..Root.MacroPath: .:$(ROOTSYS)/macros:
WinNT.
.Root.MacroPath: .;$(ROOTSYS)/macros; [/code]“MacroPath” clause. For example:

[code]# Path used to find macros.

Paths are different for Unix and Windows. The example shows the defaults

for all ROOT applications for either Unix or Windows.

Unix..Root.MacroPath: .:~/myRootMacrodirectory:$(ROOTSYS)/macros:
WinNT.
.Root.MacroPath: .;$(ROOTSYS)/macros; [/code]