Hi,
I have a TSelector based analysis, and I would like to include the attached code (and then use it).
I have
#include “checkOQ.C” in my TSelector.C file, but the methods are not yet invoked. I get this error:
/usr/lib/…/lib/crt1.o: In function _start': (.text+0x18): undefined reference to
main’
/mnt/nfs1/epp/data/atlas/sm442/SusySelector/./SimpleSelector_C_ACLiC_dict.o: In function __static_initialization_and_destruction_0(int, int)': SimpleSelector_C_ACLiC_dict.cxx:(.text+0x64c85): undefined reference to
ROOT::GenerateInitInstance(egammaOQ const*)’
/mnt/nfs1/epp/data/atlas/sm442/SusySelector/./SimpleSelector_C_ACLiC_dict.o: In function egammaOQ::IsA() const': SimpleSelector_C_ACLiC_dict.cxx:(.text._ZNK8egammaOQ3IsAEv[egammaOQ::IsA() const]+0x13): undefined reference to
egammaOQ::Class()’
/mnt/nfs1/epp/data/atlas/sm442/SusySelector/./SimpleSelector_C_ACLiC_dict.o:(.data.rel.ro._ZTV8egammaOQ[vtable for egammaOQ]+0xe8): undefined reference to egammaOQ::ShowMembers(TMemberInspector&, char*)' /mnt/nfs1/epp/data/atlas/sm442/SusySelector/./SimpleSelector_C_ACLiC_dict.o:(.data.rel.ro._ZTV8egammaOQ[vtable for egammaOQ]+0xec): undefined reference to
egammaOQ::Streamer(TBuffer&)’
collect2: ld returned 1 exit status
*** Interpreter error recovered ***
Error in TSelector::GetSelector: file SimpleSelector.C+O does not have a valid class deriving from TSelector
Note that the file works fine if loaded as:
root -l
.L checkOQ.C++;
egammaOQ myOQ;
myOQ.initialize();
myOQ.checkOQClusterPhoton(152209, 0.6, 1.2);
Thanks in advance,
Stewart Martin-Haugh
checkOQ.C (20 KB)
checkOQ.C (20 KB)