new boost framework and cvs repository

10
New BOOST Framework and CVS repository Deng zi yan 2004.03.09

Upload: zarifa

Post on 04-Jan-2016

66 views

Category:

Documents


5 download

DESCRIPTION

New BOOST Framework and CVS repository. Deng zi yan 2004.03.09. Old BOOST Framework. /include : all the header files in boost /src : all the source files in boost /xml : geometry data for subdetectors /gmk : makefiles used in boost /doc : documents - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: New BOOST Framework and CVS repository

New BOOST Framework and CVS repository

Deng zi yan

2004.03.09

Page 2: New BOOST Framework and CVS repository

Old BOOST Framework

• /include: all the header files in boost• /src: all the source files in boost• /xml: geometry data for subdetectors• /gmk: makefiles used in boost• /doc: documents• Need to setenv BOOSTROOT(where the boost

directory is)• Inconvenient when subdetector developers chec

k-in codes

Page 3: New BOOST Framework and CVS repository

The changes

• Divide boost codes into several parts

• Rewrite makefile

• Need not setenv BOOSTROOT

• Open cvspserver on besfarm

• Setup cvs repository

• Add BesGeometryConfiguration(by liuhm)– Choose which subdetector to be constructed

Page 4: New BOOST Framework and CVS repository

BOOST framework

• /exe: include main source boost.cc and GNUmakefile, you should gmake from here to build the executable

• /bes: include action classes,manager classes, boost detector construction, beam pipe, and magnetic

• /phy: include various physics processes• /gen: include generator information• /mdc,/emc,/tof,/muc: detailed subdetector construction, hit, sensitiv

e detector,and digitization• /gmk: include all the makefiles used in boost• /doc: documents for boost,README,FAQ• /dat: include geometry data for all subdetectors• /mac: include macro files,vis.mac,run.mac

Page 5: New BOOST Framework and CVS repository

about gmake in boost

• 'gmake' in the ‘/exe' subdirectory can do all the compiling and build the executable.

• 'gmake' will create three directories in your G4WORKDIR: /bin, /tmp, /boostlib

• 'gmake' in other subdirectories which have GNUmakefile, will compile the source files in this directory and create shared and static libs: libBOOST*.so libBOOST*.a

Page 6: New BOOST Framework and CVS repository

About BOOSTROOT

• 'BOOSTROOT' is used in both GNUmakefiles and source codes. You need not set this environment in .tcshrc

• 'gmake' will create a file 'boost.ini' in $(G4WORKDIR)/tmp/$(G4SYSTEM). Information about BOOSTROOT is saved in this file

• Anywhere you checkout boost from cvs, BOOSTROOT will automatically be set to $(pwd)/boost

• You can run boost anywhere

Page 7: New BOOST Framework and CVS repository

About environment in .tcshrc

• What you need to do is only to source ~dengzy/.boostenv, all the environment needed for boost is set

• G4WORKDIR will be set to your $HOME directory by default

• If you want to change your G4WORKDIR,you should setenv G4WORKDIR before source ~dengzy/.boostenv

Page 8: New BOOST Framework and CVS repository

About cvs• Setenv CVSROOT :pserver:your_cvs_username@besfarm7:/d9/dengzy/cvsboost

• Readers: anonymous(no passwd)• Writers: cvsliuhm, cvsdengzy, cvsfucd, cvsyuany, cvsyouzy

• Access from any linux system within IHEP is permitted

• All directories in cvs repository with mode rwxr-xr-x. developers can change repository only though cvs command

• setenv CVSEDITOR emacs(or vi): set default cvs editor

• Only after you are satisfactory with your changes on your part of boost, and no error in gmake and running, you can commit your changes to cvs repository

Page 9: New BOOST Framework and CVS repository

Ascii I/O

• C struct : not compatible

• C++:AsciiData.h dmplib.h AsciiData.cxx

• Write makefile to create libAsciiDmp.so

• Write boost hit information to AsciiDmp_out.dat

Page 10: New BOOST Framework and CVS repository

Ascii I/O

• Already can write information of: tof,mdc,emc,kine

• Mdc: no drift time information

• Emc: too many hits. Digitization sum up all the energy deposit in one event,not energy deposit in one crystal

• No Muc information