GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » Fairroot » General Discussion » Creating a new Detector out of 2 or more detectors
Re: Creating a new Detector out of 2 or more detectors [message #13138 is a reply to message #13134] Sat, 03 March 2012 03:32 Go to previous messageGo to previous message
Raghav Kunnawalkam is currently offline  Raghav Kunnawalkam
Messages: 63
Registered: February 2012
Location: Stony Brook, New York
continuous participant
From: *dyn.optonline.net
Hi Mohammad

I do have gSystem->Load("libFairDircDet") amongst all the other libraries in my macro.

Here is part of my CMakeLists.txt file inside the DircDet directory.

set(INCLUDE_DIRECTORIES
${ROOT_INCLUDE_DIR}
#put here all directories where header files are located
${FAIRROOT_SOURCE_DIR}/fairtools
${FAIRROOT_SOURCE_DIR}/base
${FAIRROOT_SOURCE_DIR}/parbase
${FAIRROOT_SOURCE_DIR}/geobase
${FAIRROOT_SOURCE_DIR}/example/mcstack
${FAIRROOT_SOURCE_DIR}/example/simpletracker/src
${FAIRROOT_SOURCE_DIR}/example/DircDet/src
)

include_directories( ${INCLUDE_DIRECTORIES})

set(LINK_DIRECTORIES
${ROOT_LIBRARY_DIR}
...


Rest of the file is built exactly like the instructions on the website.
I think that i did not do the linking properly but i dont understand why because i did it exactly like how the example rutherford was designed.

I have also built all the libraries for the detectors with no errors so they do exist properly.

Another problem that i have is with building the passive components like fairpipe.
I have it built exactly like the FairMagnet (with the appropriate changes for geometry and media, but on doing make, it gives me an error like

[ 61%] Built target FairRutherford
[ 61%] Generating FairPassiveDict.cxx, FairPassiveDict.h
[ 61%] Building CXX object example/passive/CMakeFiles/Passive.dir/FairGeoPipe.o
In file included from /usr/include/c++/4.2.1/typeinfo:39,
from /Users/raghav/fairsoft/tools/root/include/Rtypeinfo.h:32,
from /Users/raghav/fairsoft/tools/root/include/Rtypes.h:30,
from /Users/raghav/fairsoft/tools/root/include/TObject.h:31,
from /Users/raghav/fairroot/geobase/FairGeoVector.h:4,
from /Users/raghav/fairroot/geobase/FairGeoTransform.h:4,
from /Users/raghav/fairroot/geobase/FairGeoSet.h:5,
from /Users/raghav/fairroot/example/passive/FairGeoPipe.h:4,
from /Users/raghav/fairroot/example/passive/FairGeoPipe.cxx:11:
/usr/include/c++/4.2.1/exception:40: error: ‘#pragma’ is not allowed here
make[2]: *** [example/passive/CMakeFiles/Passive.dir/FairGeoPipe.o] Error 1
make[1]: *** [example/passive/CMakeFiles/Passive.dir/all] Error 2
make: *** [all] Error 2


Many thanks for all your help. (it has been awesome)







 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Creating geometry for a new detector
Next Topic: FairMCPoint
Goto Forum:
  


Current Time: Fri Apr 19 08:52:18 CEST 2024

Total time taken to generate the page: 0.01229 seconds