CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ctppsDiamondLocalTracks_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 ctppsDiamondLocalTracks = cms.EDProducer("CTPPSDiamondLocalTrackFitter",
4  verbosity = cms.int32(0),
5  recHitsTag = cms.InputTag("ctppsDiamondRecHits"),
6  trackingAlgorithmParams = cms.PSet(
7  threshold = cms.double(1.5),
8  thresholdFromMaximum = cms.double(0.5),
9  resolution = cms.double(0.01), # in mm
10  sigma = cms.double(0.1), # see below
11  startFromX = cms.double(-0.5), # in mm
12  stopAtX = cms.double(19.5), # in mm
13  pixelEfficiencyFunction = cms.string("(TMath::Erf((x-[0]+0.5*[1])/([2]/4)+2)+1)*TMath::Erfc((x-[0]-0.5*[1])/([2]/4)-2)/4"),
14  yPosition = cms.double(0.0),
15  yWidth = cms.double(0.0),
16  ),
17 )
18 
19 #
20 # NOTE: pixelEfficiencyFunction can be defined as following:
21 #
22 # Precise:
23 # "(TMath::Erf((x-[0]+0.5*[1])/([2]/4)+2)+1)*TMath::Erfc((x-[0]-0.5*[1])/([2]/4)-2)/4"
24 # Fast:
25 # "(x>[0]-0.5*[1])*(x<[0]+0.5*[1])+((x-[0]+0.5*[1]+[2])/[2])*(x>[0]-0.5*[1]-[2])*(x<[0]-0.5*[1])+(2-(x-[0]-0.5*[1]+[2])/[2])*(x>[0]+0.5*[1])*(x<[0]+0.5*[1]+[2])"
26 # Legacy:
27 # "(1/(1+exp(-(x-[0]+0.5*[1])/[2])))*(1/(1+exp((x-[0]-0.5*[1])/[2])))"
28 #
29 # with:
30 # [0]: centre of pad
31 # [1]: width of pad
32 # [2]: sigma: distance between efficiency ~100 -> 0 outside width
33 #