forked from cms-analysis/flashgg
-
Notifications
You must be signed in to change notification settings - Fork 3
January 2021 Production
Abraham Tishelman-Charny edited this page Jan 19, 2021
·
9 revisions
Begin by changing to the directory where you will clone flashgg:
cd /<FlashggWorkingDirectory>
Then clone the HHWWgg development branch of flashgg which is done in a similar fashion to the dev_legacy_runII branch:
export SCRAM_ARCH=slc7_amd64_gcc700
cmsrel CMSSW_10_6_8
cd CMSSW_10_6_8/src
cmsenv
git cms-init
cd $CMSSW_BASE/src
git clone -b HHWWgg_dev https://github.com/atishelmanch/flashgg.git
source flashgg/setup_flashgg.sh
If everything now looks reasonable, you can build:
cd $CMSSW_BASE/src
scram b -j
Depending on the status of the classes compared to the version of the classes_def.xml file, you may receive an error like:
error: class 'flashgg::HHWWggTag' has a different checksum for ClassVersion 39. Increment ClassVersion to 40 and assign it to checksum 1253491559
This can be fixed by updating the class version like so:
cd flashgg
scram build updateclassversion
mv DataFormats/src/classes_def.xml.generated DataFormats/src/classes_def.xml
scram b -j
To access grid files to run the tagger on, you must run the following commands:
cd flashgg
cmsenv
voms-proxy-init --voms cms --valid 168:00
after the voms command, you should receive an output similar to:
Created proxy in /tmp/x509up_u95168
to set this proxy to your X509_USER_PROXY environment variable for the example above, simply use the command:
cd $CMSSW_BASE/src/flashgg
. MetaData/scripts/proxy.sh x509up_u95168
where x590up_u95168 would be replaced by whatever your proxy name is.
cd flashgg
python Sub_Bkg_LowEvents.py --outDirec \<OutputDirectory\>
cd flashgg
python Sub_Bkg_allEvents.py --outDirec \<OutputDirectory\>
cd flashgg
python Sub_2018-NLO_LowEvents.py --outDirec \<OutputDirectory\>
cd flashgg
python Sub_2018-NLO_allEvents.py --outDirec \<OutputDirectory\>