First clone the repository in a CMSSW working area.
git clone https://github.com/PFCal-dev/HGCTPGNtupleProduction.git prod
In order to use crab configs available here, copy local_example.py into local.py and update the outLFNDirBase and storageSite