Home » PANDA » PandaRoot » Bugs, Fixes, Releases » compilation of macros
compilation of macros [message #9831] |
Tue, 01 December 2009 21:40 |
Bertram Kopf
Messages: 110 Registered: March 2006
|
continuous participant |
From: *pools.arcor-ip.net
|
|
Dear all,
as decided during the last PandaRoot meeting, I am currently developing tools to automatize the link/run procedure for all macros. Very first rudimental tools are already existing on my local version. As a starting point I used the properly running emc macro "sim_emc.C" where a slight modification was needed by e.g. including the relevant header files. The first trial to compile this modified macro failed, since the forward declaration of a class, namely "class PndGeoDrc" in "PndDrc.h", was missing. After fixing this bug, the macro has been compiled successfully, but unfortunately with a lot of warnings in the log output:
Toggle Spoiler
Processing runMacros.C...
Warning in <TClassTable::Add>: class PndSttTrack already in TClassTable
Warning in <TClassTable::Add>: class PndMvdPixel already in TClassTable
Warning in <TClassTable::Add>: class PndMvdStrip already in TClassTable
Warning in <TClassTable::Add>: class PndMvdMCPoint already in TClassTable
Warning in <TClassTable::Add>: class PndMvdDigi already in TClassTable
Warning in <TClassTable::Add>: class PndMvdDigiPixel already in TClassTable
Warning in <TClassTable::Add>: class PndMvdApvHit already in TClassTable
Warning in <TClassTable::Add>: class PndMvdPidCand already in TClassTable
Info in <TUnixSystem::ACLiC>: creating shared library /home/bertram/PndRoot/091123/trunk/macro/emc/./AbsArgTest_C.so
Info in <TUnixSystem::ACLiC>: creating shared library /home/bertram/PndRoot/091123/trunk/macro/emc/./sim_emc_new_C.so
In file included from /home/bertram/PndRoot/091123/trunk/base/FairRunSim.h:9,
from /home/bertram/PndRoot/091123/trunk/macro/emc/./sim_emc_new.C:8,
from /home/bertram/PndRoot/091123/trunk/macro/emc/./sim_emc_new_C_ACLiC_dict. h:34,
from /home/bertram/PndRoot/091123/trunk/macro/emc/./sim_emc_new_C_ACLiC_dict. cxx:17:
/FairRootExt/july09/tools/root/include/TObject.h:125: warning: ‘virtual const char* TObject::GetName() const’ was hidden
/home/bertram/PndRoot/091123/trunk/base/FairParticle.h:46: warning: by ‘const TString& FairParticle::GetName()’
/FairRootExt/july09/tools/root/include/TObject.h:144: warning: ‘virtual void TObject::Print(const Option_t*) const’ was hidden
/home/bertram/PndRoot/091123/trunk/base/FairParticle.h:37: warning: by ‘void FairParticle::Print() const’
In file included from /home/bertram/PndRoot/091123/trunk/macro/emc/./sim_emc_new.C:9,
from /home/bertram/PndRoot/091123/trunk/macro/emc/./sim_emc_new_C_ACLiC_dict. h:34,
from /home/bertram/PndRoot/091123/trunk/macro/emc/./sim_emc_new_C_ACLiC_dict. cxx:17:
/FairRootExt/july09/tools/root/include/TNamed.h:59: warning: ‘virtual void TNamed::Print(const Option_t*) const’ was hidden
/home/bertram/PndRoot/091123/trunk/base/FairModule.h:34: warning: by ‘virtual void FairModule::Print() const’
/home/bertram/PndRoot/091123/trunk/base/FairModule.h:55: warning: unused parameter ‘vname’
In file included from /home/bertram/PndRoot/091123/trunk/macro/emc/./sim_emc_new.C:10,
from /home/bertram/PndRoot/091123/trunk/macro/emc/./sim_emc_new_C_ACLiC_dict. h:34,
from /home/bertram/PndRoot/091123/trunk/macro/emc/./sim_emc_new_C_ACLiC_dict. cxx:17:
/home/bertram/PndRoot/091123/trunk/base/FairDetector.h:60: warning: unused parameter ‘cl1’
/home/bertram/PndRoot/091123/trunk/base/FairDetector.h:60: warning: unused parameter ‘cl2’
/home/bertram/PndRoot/091123/trunk/base/FairDetector.h:60: warning: unused parameter ‘offset’
In file included from /home/bertram/PndRoot/091123/trunk/macro/emc/./sim_emc_new.C:11,
from /home/bertram/PndRoot/091123/trunk/macro/emc/./sim_emc_new_C_ACLiC_dict. h:34,
from /home/bertram/PndRoot/091123/trunk/macro/emc/./sim_emc_new_C_ACLiC_dict. cxx:17:
/home/bertram/PndRoot/091123/trunk/base/FairModule.h:53: warning: ‘virtual void FairModule::ExpandNode(TGeoNode*)’ was hidden
/home/bertram/PndRoot/091123/trunk/emc/EmcMC/PndEmc.h:116: warning: by ‘void PndEmc::ExpandNode(TGeoVolume*, TGeoVolume*)’
In file included from /home/bertram/PndRoot/091123/trunk/mdt/MdtMC/PndMdt.h:14,
from /home/bertram/PndRoot/091123/trunk/macro/emc/./sim_emc_new.C:12,
from /home/bertram/PndRoot/091123/trunk/macro/emc/./sim_emc_new_C_ACLiC_dict. h:34,
from /home/bertram/PndRoot/091123/trunk/macro/emc/./sim_emc_new_C_ACLiC_dict. cxx:17:
/FairRootExt/july09/tools/root/include/TObject.h:152: warning: ‘virtual Int_t TObject::Write(const char*, Int_t, Int_t)’ was hidden
/home/bertram/PndRoot/091123/trunk/base/FairRootManager.h:69: warning: by ‘void FairRootManager::Write()’
/FairRootExt/july09/tools/root/include/TObject.h:153: warning: ‘virtual Int_t TObject::Write(const char*, Int_t, Int_t) const’ was hidden
/home/bertram/PndRoot/091123/trunk/base/FairRootManager.h:69: warning: by ‘void FairRootManager::Write()’
In file included from /home/bertram/PndRoot/091123/trunk/mdt/MdtMC/PndMdt.h:16,
from /home/bertram/PndRoot/091123/trunk/macro/emc/./sim_emc_new.C:12,
from /home/bertram/PndRoot/091123/trunk/macro/emc/./sim_emc_new_C_ACLiC_dict. h:34,
from /home/bertram/PndRoot/091123/trunk/macro/emc/./sim_emc_new_C_ACLiC_dict. cxx:17:
/FairRootExt/july09/tools/root/include/TNamed.h:51: warning: ‘virtual const char* TNamed::GetName() const’ was hidden
/home/bertram/PndRoot/091123/trunk/base/FairVolume.h:29: warning: by ‘const char* FairVolume::GetName()’
In file included from /home/bertram/PndRoot/091123/trunk/parbase/FairParGenericSet.h:5,
from /home/bertram/PndRoot/091123/trunk/mdt/MdtMC/PndGeoMdtPar.h:5,
from /home/bertram/PndRoot/091123/trunk/mdt/MdtMC/PndMdt.h:18,
from /home/bertram/PndRoot/091123/trunk/macro/emc/./sim_emc_new.C:12,
from /home/bertram/PndRoot/091123/trunk/macro/emc/./sim_emc_new_C_ACLiC_dict. h:34,
from /home/bertram/PndRoot/091123/trunk/macro/emc/./sim_emc_new_C_ACLiC_dict. cxx:17:
/home/bertram/PndRoot/091123/trunk/parbase/FairParSet.h:22: warning: unused parameter ‘io’
In file included from /home/bertram/PndRoot/091123/trunk/mdt/MdtMC/PndGeoMdtPar.h:5,
from /home/bertram/PndRoot/091123/trunk/mdt/MdtMC/PndMdt.h:18,
from /home/bertram/PndRoot/091123/trunk/macro/emc/./sim_emc_new.C:12,
from /home/bertram/PndRoot/091123/trunk/macro/emc/./sim_emc_new_C_ACLiC_dict. h:34,
from /home/bertram/PndRoot/091123/trunk/macro/emc/./sim_emc_new_C_ACLiC_dict. cxx:17:
/home/bertram/PndRoot/091123/trunk/parbase/FairParSet.h:23: warning: ‘virtual Int_t FairParSet::write()’ was hidden
/home/bertram/PndRoot/091123/trunk/parbase/FairParGenericSet.h:20: warning: by ‘virtual Int_t FairParGenericSet::write(FairParIo*)’
/home/bertram/PndRoot/091123/trunk/parbase/FairParSet.h:21: warning: ‘virtual Bool_t FairParSet::init()’ was hidden
/home/bertram/PndRoot/091123/trunk/parbase/FairParGenericSet.h:19: warning: by ‘virtual Bool_t FairParGenericSet::init(FairParIo*)’
In file included from /home/bertram/PndRoot/091123/trunk/macro/emc/./sim_emc_new.C:13,
from /home/bertram/PndRoot/091123/trunk/macro/emc/./sim_emc_new_C_ACLiC_dict. h:34,
from /home/bertram/PndRoot/091123/trunk/macro/emc/./sim_emc_new_C_ACLiC_dict. cxx:17:
/home/bertram/PndRoot/091123/trunk/base/FairDetector.h:60: warning: ‘virtual void FairDetector::CopyClones(TClonesArray*, TClonesArray*, Int_t)’ was hidden
/home/bertram/PndRoot/091123/trunk/drc/PndDrc.h:102: warning: by ‘virtual void PndDrc::CopyClones(TClonesArray*, TClonesArray*, TClonesArray*, TClonesArray*, Int_t)’
In file included from /home/bertram/PndRoot/091123/trunk/field/PndMultiField.h:18,
from /home/bertram/PndRoot/091123/trunk/macro/emc/./sim_emc_new.C:16,
from /home/bertram/PndRoot/091123/trunk/macro/emc/./sim_emc_new_C_ACLiC_dict. h:34,
from /home/bertram/PndRoot/091123/trunk/macro/emc/./sim_emc_new_C_ACLiC_dict. cxx:17:
/FairRootExt/july09/tools/root/include/TNamed.h:59: warning: ‘virtual void TNamed::Print(const Option_t*) const’ was hidden
/home/bertram/PndRoot/091123/trunk/base/FairField.h:123: warning: by ‘virtual void FairField::Print()’
/home/bertram/PndRoot/091123/trunk/base/FairField.h:97: warning: unused parameter ‘x’
/home/bertram/PndRoot/091123/trunk/base/FairField.h:97: warning: unused parameter ‘y’
/home/bertram/PndRoot/091123/trunk/base/FairField.h:97: warning: unused parameter ‘z’
/home/bertram/PndRoot/091123/trunk/base/FairField.h:103: warning: unused parameter ‘x’
/home/bertram/PndRoot/091123/trunk/base/FairField.h:103: warning: unused parameter ‘y’
/home/bertram/PndRoot/091123/trunk/base/FairField.h:103: warning: unused parameter ‘z’
/home/bertram/PndRoot/091123/trunk/base/FairField.h:109: warning: unused parameter ‘x’
/home/bertram/PndRoot/091123/trunk/base/FairField.h:109: warning: unused parameter ‘y’
/home/bertram/PndRoot/091123/trunk/base/FairField.h:109: warning: unused parameter ‘z’
/home/bertram/PndRoot/091123/trunk/base/FairField.h:125: warning: unused parameter ‘point’
/home/bertram/PndRoot/091123/trunk/base/FairField.h:125: warning: unused parameter ‘bField’
In file included from /home/bertram/PndRoot/091123/trunk/emc/EmcData/PndEmcHit.h:17,
from /home/bertram/PndRoot/091123/trunk/emc/EmcDigi/PndEmcHitProducer.h:14,
from /home/bertram/PndRoot/091123/trunk/macro/emc/./sim_emc_new.C:20,
from /home/bertram/PndRoot/091123/trunk/macro/emc/./sim_emc_new_C_ACLiC_dict. h:34,
from /home/bertram/PndRoot/091123/trunk/macro/emc/./sim_emc_new_C_ACLiC_dict. cxx:17:
/home/bertram/PndRoot/091123/trunk/base/FairHit.h:65: warning: unused parameter ‘opt’
In file included from /home/bertram/PndRoot/091123/trunk/emc/EmcDigi/PndEmcHitProducer.h:18,
from /home/bertram/PndRoot/091123/trunk/macro/emc/./sim_emc_new.C:20,
from /home/bertram/PndRoot/091123/trunk/macro/emc/./sim_emc_new_C_ACLiC_dict. h:34,
from /home/bertram/PndRoot/091123/trunk/macro/emc/./sim_emc_new_C_ACLiC_dict. cxx:17:
/FairRootExt/july09/tools/root/include/TObject.h:144: warning: ‘virtual void TObject::Print(const Option_t*) const’ was hidden
/home/bertram/PndRoot/091123/trunk/emc/EmcTools/PndEmcStructure.h:39: warning: by ‘void PndEmcStructure::Print(std::string, Int_t) const’
In file included from /home/bertram/PndRoot/091123/trunk/macro/emc/./sim_emc_new_C_ACLiC_dict. h:34,
from /home/bertram/PndRoot/091123/trunk/macro/emc/./sim_emc_new_C_ACLiC_dict. cxx:17:
/home/bertram/PndRoot/091123/trunk/macro/emc/./sim_emc_new.C: In function ‘void sim_emc_new(Int_t, Float_t)’:
/home/bertram/PndRoot/091123/trunk/macro/emc/./sim_emc_new.C:76: warning: unused variable ‘Pipe’
This example shows that the pre-compilation of the macros could result in a helpful diagnostic tool to improve the software, even for macros which seem to work properly.
Best regards,
Bertram.
|
|
|
Goto Forum:
Current Time: Tue Nov 19 15:21:43 CET 2024
Total time taken to generate the page: 0.01562 seconds
|