Skip to content

weihuacern/ngCMSHCALMap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup CMSSW

cmsrel CMSSW_8_0_0
cd CMSSW_8_0_0/src
cmsenv

SQLite C++ Support

  • 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

CMS HCAL Logical Map

For package owner

cd $CMSSW_BASE/src
git clone git@github.com:weihuacern/ngCMSHCALMap.git

For package developer

  • 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 git@github.com:YOURGITHUBID/ngCMSHCALMap.git ngCMSHCALMap
cd ngCMSHCALMap
git remote add upstream git@github.com: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.
./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

Generate QIE tables from Database

  • 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages