CINT Shortcuts

CINT is the C INTerpreter, the tool that takes C++ macros and processes them. When you are typing in commands or playing macros, it is CINT that is processing them. C++ has a strict, and unforgiving syntax and does not make a good macro language. So CINT relaxes a number of rules as, with the help of the ROOT, it knows a lot more about the program than any C++ compiler ever could. For example it knows the name of every object, so if a user refers to an object without first declaring it, it can go and locate it. This all helps to make using the system easier, but it comes at a price: using these shortcuts won't work when writing C++ programs. So, although it is fine to use them, its important to understand what they are before taking the next step of writing compilable code. Here are the extensions (if you don't understand what follows then you are not ready to write C++ code):- Where CINT shortcuts are employed in the example macros, their use will be noted in this section.
Go Back to the The Example Macros Top Page


If you have any comments about this page please send them to Nick West