New to root…after several months of working at the command line level and with the most basic macros I’ve been tasked with a tougher job.
I’m building the new code using the makeclass() and makeselector() routines and get the following errors.
From searching and reviewing the forum messages I believe that I may need to compile my code, but need some basic advice/hints to get me over the hump.
I’ve tried >root [] .L code.C+ … and I get many pages of errors.
[code]#ifndef qdc4c_h
#define qdc4c_h
// for class access routines
#include <TROOT.h>
#include <TChain.h>
#include <TFile.h>
// for loop() and plotting
#include <TH2.h>
#include <TStyle.h>
#include <TCanvas.h>
class qdc4c : public TSelector { // : public TSelector added
public :
TTree *fChain; //!pointer to the analyzed TTree or TChain
Int_t fCurrent; //!current Tree number in a TChain
…
[/code]
errors:
Error: Function P010_TPad() is not defined in current scope /usr/local/root_dev/include/TCanvas.h:1:
*** Interpreter error recovered ***
Error: Function P030_TGWin32() is not defined in current scope /usr/local/root_dev/include/TCanvas.h:1:
*** Interpreter error recovered ***
Error: Function P010_TGX11() is not defined in current scope /usr/local/root_dev/include/TCanvas.h:1:
*** Interpreter error recovered ***
Error: Function P020_TGX11TTF() is not defined in current scope /usr/local/root_dev/include/TCanvas.h:1:
*** Interpreter error recovered ***
Error: Function P040_TGQt() is not defined in current scope /usr/local/root_dev/include/TCanvas.h:1:
*** Interpreter error recovered ***
Error: Function P020_TQtRootGuiFactory() is not defined in current scope /usr/local/root_dev/include/TCanvas.h:1:
*** Interpreter error recovered ***
Error: Function P010_TRootGuiFactory() is not defined in current scope /usr/local/root_dev/include/TCanvas.h:1:
*** Interpreter error recovered ***
Error: class,struct,union or type qdc4c not defined qdc4c.h:53:
*** Interpreter error recovered ***
Thanks,
Dave