CT-PPS CEP Studies

  • CT-PPS Twiki: here
  • CT-PPS Test Beam 2015: here
  • CT-PPS On Line Software: here
  • CT-PPS Reconstruction Software: here
  • CT-PPS Fast Simulation: here
  • Private code Repository: here

  • ExHuME: A Monte Carlo Event Generator for Exclusive Diffraction here
  • FPMC: a generator for forward physics here

  • Add paper 1
  • Add paper 2

Software Goal

Goal is...

Getting Started

Text background color convention

In this page, the following text background color convention is used:

GREY: For commands.
GREEN: For the output example of the executed commands (nearly what the user should see in his/her terminal).
PINK: For CMSSW parameter-set configuration files.
BLUE: For configuration files.
YELLOW: For any other type of file.

Checkout PPS FastSim Package

cmsrel CMSSW_8_0_0_pre5 # or later
cd CMSSW_8_0_0_pre5/src
git clone  git@github.com:CTPPS/CTPPSFastSim.git .
scram b -j 8

Git Commands

CRAB3 Quick Start

For more details check: CRAB3 Tutorial

For LXPLUS users:

ssh -XY <username>@lxplus.cern.ch

Setup CRAB3 by sourcing:

source /cvmfs/cms.cern.ch/crab3/crab.sh

There is also an alternative way to do this by using the light client script. The crab_light.sh script sources the crab.sh script without polluting the environment with extra variables. The sourced CRAB3 Client is the same with both scripts.

source /cvmfs/cms.cern.ch/crab3/crab_light.sh

Check the version being used by executing:

which crab

Get a CMS VO proxy

voms-proxy-init --voms cms --valid 168:00

To submit a task, execute the following CRAB command:

crab submit -c crabConfig.py

To check the status of a task, execute the following CRAB command:

crab status --dir/-d <CRAB-project-directory>

CRAB allows the user to resubmit a task, which will actually resubmit only the failed jobs in the task. The resubmission command is as follows:

crab resubmit --dir/-d <CRAB-project-directory>

In case one wants to retrieve some output ROOT files of a task, one can do so with the following CRAB command:

crab getoutput --dir/-d <CRAB-project-directory> [--jobids <comma-separated-list-of-jobs-and/or-job-ranges>]

Monte Carlo Private Samples

Minimum Bias Sample

  • Release: CMSSW_8_0_0_pre5

  • Number of events: 3775000

  • DAS Direct Link: here

  • cmsDriver command:
cmsDriver.py MinBias_13TeV_pythia8_TuneCUETP8M1_cfi -n 1000 --fast --conditions auto:run2_mc --magField 38T_PostLS1 //
--beamspot Realistic50ns13TeVCollision -s GEN,SIM,RECOBEFMIX --eventcontent FASTPU --datatier GEN-SIM-RECO //
--era Run2_25ns --fileout minbias.root --no_exec

CEP Dijets


CT-PPS Tools

The goal of this private package is to provide a set of useful tools for CEP studies using the CT-PPS detector.


This filter does the following:

  • Checks if there are protons in trk1+trk2+ToFDet acceptance, in both CT-PPS arms;
  • Checks which proton combination reconstruct a vertex compatible (in z) with the hardest vertex in the event, putting their indexes in a std::pair<size_t fwd_proton_idx,size_t bkw_proton_idx>;
  • All combinations found are put in the event inside a std::vector<std::pair<size_t,size_t> >.

To get the filter:

$ cd CMSSW_8_0_12/src
$ cmsenv
$ git clone git@github.com:uerj-cms-cep-studies/CTPPSTools.git
$ git clone git@github.com:uerj-cms-cep-studies/DataUtils.git
$ scram b -j 8

On your configuration file add the follow statements:

process.doubleArmFilter.vertices = 'offlineSlimmedPrimaryVertices'
process.doubleArmFilter.tofRes = 50   #ToF resolution in ps

process.p1 = cms.Path(process.doubleArmFilter * [anything] )

To get the protons in your analyzer:

edm::EDGetTokenT<std::vector<std::pair<size_t,size_t> > > token;
edm::Handle<std::vector<std::pair<size_t,size_t> > > protons;
token = consumes<std::vector<std::pair<size_t,size_t> > >(edm::InputTag("doubleArmFilter","protons"))); // in your constructor
event.getByToken(token, protons); // in the event loop


How to access CERNBox directly from lxplus

source /afs/cern.ch/project/eos/installation/user/etc/setup.sh
export EOS_MGM_URL=root://eosuser.cern.ch
eosmount $HOME/eos

if it works, you will see something like this:

.... trying to create ... /afs/cern.ch/user/m/mdealmei/eos
===> Mountpoint   : /afs/cern.ch/user/m/mdealmei/eos
===> Fuse-Options : kernel_cache,attr_timeout=30,entry_timeout=30,max_readahead=131072,max_write=4194304,fsname=eosuser.cern.ch root://eosuser.cern.ch//eos/
===> xrootd ra             : 131072
===> xrootd cache          : 393216
===> fuse debug            : 0
===> fuse write-cache      : 1
===> fuse write-cache-size : 100000000

-- MarcoPacheco - 2016-06-24

Edit | Attach | Watch | Print version | History: r12 | r10 < r9 < r8 < r7 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r8 - 2016-07-15 - MarcoPacheco
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox All webs login

  • Edit
  • Attach
This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback