CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
cscRecHitD_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # This object modifies the csc2DRecHits for running in Run 2
4 from Configuration.StandardSequences.Eras import eras
5 
6 # parameters for CSC rechit building
8 csc2DRecHits = cms.EDProducer("CSCRecHitDProducer",
9  #
10  # Parameters for coordinate and uncertainty calculations
11  # Data and MC parameters are (still) different
12  # Needs tuning
13  #
14  cscRecHitDParameters,
15  #
16  # Parameters for strip hits
17  #
18  CSCStripPeakThreshold = cms.double(10.0),
19  CSCStripClusterChargeCut = cms.double(25.0),
20  CSCStripxtalksOffset = cms.double(0.03),
21  #
22  # How to find SCA peak time?
23  #
24  UseAverageTime = cms.bool(False),
25  UseParabolaFit = cms.bool(False),
26  UseFivePoleFit = cms.bool(True),
27  #
28  # Parameters for wire hits
29  CSCWireClusterDeltaT = cms.int32(1),
30  #
31  # Calibration info:
32  CSCUseCalibrations = cms.bool(True),
33  # Pedestal treatment
34  CSCUseStaticPedestals = cms.bool(False),
35  CSCNoOfTimeBinsForDynamicPedestal = cms.int32(2),
36  #
37  # Which digis:
38  #
39  # When using data from unpacker
40  wireDigiTag = cms.InputTag("muonCSCDigis","MuonCSCWireDigi"),
41  stripDigiTag = cms.InputTag("muonCSCDigis","MuonCSCStripDigi"),
42  # When using data from simulation
43  # wireDigiTag = cms.InputTag("simMuonCSCDigis","MuonCSCWireDigi"),
44  # stripDigiTag = cms.InputTag("simMuonCSCDigis","MuonCSCStripDigi"),
45  #
46  # Use dead channels information
47  readBadChannels = cms.bool(True),
48  readBadChambers = cms.bool(True),
49  #
50  # Do we use the chip and chamber and L1A phase corrections when filling the recHit time?
51  #
52  CSCUseTimingCorrections = cms.bool(True),
53  #
54  # Do we correct the energy deposited for gas gains?
55  CSCUseGasGainCorrections = cms.bool(True),
56  #
57  # Parameters which are not used currently
58  #
59  CSCDebug = cms.untracked.bool(False),
60  # To be set once wire digis have proper timing info:
61  CSCstripWireDeltaTime = cms.int32(8),
62  # to be deleted
63  CSCStripClusterSize = cms.untracked.int32(3)
64 )
65 
66 ##
67 ## Modify for running in Run 2
68 ##
69 eras.run2_common.toModify( csc2DRecHits, readBadChannels = False )
70 eras.run2_common.toModify( csc2DRecHits, CSCUseGasGainCorrections = False )
71