cmsrel CMSSW_8_0_0
cd CMSSW_8_0_0/src
cmsenv
- For more details about sqlite/C++ API. See details.
cd $CMSSW_BASE/src
wget https://www.sqlite.org/src/tarball/sqlite.tar.gz
tar xzf sqlite.tar.gz
mkdir bld
cd bld
../sqlite/configure
make
make sqlite3.c
make test
cd $CMSSW_BASE/src
git clone [email protected]:weihuacern/ngCMSHCALMap.git
- Fork the code with your personal github ID. See details.
- Make a clean git clone in the src directory.
- Note, here you need to use YOURGITHUBID.
cd $CMSSW_BASE/src/
git clone [email protected]:YOURGITHUBID/ngCMSHCALMap.git ngCMSHCALMap
cd ngCMSHCALMap
git remote add upstream [email protected]:weihuacern/ngCMSHCALMap.git
- Update your repository to be exactly same like master branch before start your changes:
git remote update
git merge upstream/master
- Make your own change and commit.
git commit -a -m "Added feature A, B, C"
git push
-
Make a pull request against the ngCMSHCALMap. See details.
-
To run the code in DevelopmentTools directory:
cd $CMSSW_BASE/src/ngCMSHCALMap/DevelopmentTools
make
- To produce the LMap:
- The valid RunMode are: HB, HE, HF, HO.
- The valid PrdMode are: LMap, EMap, FMap, HT, LMapCalib, EMapCalib.
- The valid RunMode are: HB, HE, HF, HO.
./HCALLMapProducer RunMode PrdMode
./HCALLMapProducer HF LMap
- Shell script to dump the LMap and EMap:
sh dumpLMap.sh K 20180501
sh dumpEMap.sh >> 2018HCALEMap_All_K_20180501.txt
sh dumpFMap.sh >> 2018HCALFMap_All_K_20180501.txt
- Location of QIE database files: /eos/user/h/hua/QIEDB
cd $CMSSW_BASE/src/ngCMSHCALMap/DevelopmentTools/SQLQIEDBTest
python QIETableMaker.py --QIE11Mode "Normal" >> 2018HCALQIE_All_K_20180501_Normal_HEshunt6_CALIBHEshunt1.txt
python QIETableMaker.py --QIE11Mode "Special" >> 2018HCALQIE_All_K_20180501_Special_HEshunt1_CALIBHEshunt1.txt