CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HSCParticleProducer_cff.py
Go to the documentation of this file.
2 
3 ####################################################################################
4 # BEAMSPOT + TRAJECTORY BUILDERS
5 ####################################################################################
6 
9 
10 
11 
12 
13 
14 ####################################################################################
15 # DEDX ESTIMATORS
16 ####################################################################################
17 
18 dedxHarm2 = cms.EDProducer("DeDxEstimatorProducer",
19  tracks = cms.InputTag("TrackRefitter"),
20  trajectoryTrackAssociation = cms.InputTag("TrackRefitter"),
21 
22  estimator = cms.string('generic'),
23  exponent = cms.double(-2.0),
24 
25  UseStrip = cms.bool(True),
26  UsePixel = cms.bool(True),
27  MeVperADCStrip = cms.double(3.61e-06*265),
28  MeVperADCPixel = cms.double(3.61e-06),
29 
30  MisCalib_Mean = cms.untracked.double(1.0),
31  MisCalib_Sigma = cms.untracked.double(0.00),
32 
33  UseCalibration = cms.bool(False),
34  calibrationPath = cms.string(""),
35  ShapeTest = cms.bool(True),
36 )
37 
38 dedxTru40 = cms.EDProducer("DeDxEstimatorProducer",
39  tracks = cms.InputTag("TrackRefitter"),
40  trajectoryTrackAssociation = cms.InputTag("TrackRefitter"),
41 
42  estimator = cms.string('truncated'),
43  fraction = cms.double(0.4),
44 
45  UseStrip = cms.bool(True),
46  UsePixel = cms.bool(True),
47  MeVperADCStrip = cms.double(3.61e-06*265),
48  MeVperADCPixel = cms.double(3.61e-06),
49 
50  MisCalib_Mean = cms.untracked.double(1.0),
51  MisCalib_Sigma = cms.untracked.double(0.00),
52 
53  UseCalibration = cms.bool(False),
54  calibrationPath = cms.string(""),
55  ShapeTest = cms.bool(True),
56 )
57 
58 dedxNPHarm2 = dedxHarm2.clone()
59 dedxNPHarm2.UsePixel = cms.bool(False)
60 
61 dedxNPTru40 = dedxTru40.clone()
62 dedxNPTru40.UsePixel = cms.bool(False)
63 
64 dedxNSHarm2 = dedxHarm2.clone()
65 dedxNSHarm2.UseStrip = cms.bool(False)
66 
67 dedxNSTru40 = dedxTru40.clone()
68 dedxNSTru40.UseStrip = cms.bool(False)
69 
70 
71 ####################################################################################
72 # DEDX DISCRIMINATORS
73 ####################################################################################
74 
75 dedxProd = cms.EDProducer("DeDxDiscriminatorProducer",
76  tracks = cms.InputTag("TrackRefitter"),
77  trajectoryTrackAssociation = cms.InputTag("TrackRefitter"),
78 
79  Reccord = cms.untracked.string("SiStripDeDxMip_3D_Rcd"),
80  Formula = cms.untracked.uint32(0),
81 # ProbabilityMode = cms.untracked.string("Integral"),
82  ProbabilityMode = cms.untracked.string("Accumulation"),
83 
84 
85  UseStrip = cms.bool(True),
86  UsePixel = cms.bool(True),
87  MeVperADCStrip = cms.double(3.61e-06*265),
88  MeVperADCPixel = cms.double(3.61e-06),
89 
90  MisCalib_Mean = cms.untracked.double(1.0),
91  MisCalib_Sigma = cms.untracked.double(0.00),
92 
93  UseCalibration = cms.bool(False),
94  calibrationPath = cms.string("file:Gains.root"),
95  ShapeTest = cms.bool(True),
96 
97  MaxNrStrips = cms.untracked.uint32(255)
98 )
99 
100 dedxASmi = dedxProd.clone()
101 dedxASmi.Formula = cms.untracked.uint32(3)
102 
103 dedxNPProd = dedxProd.clone()
104 dedxNPProd.UsePixel = cms.bool(False)
105 
106 dedxNPASmi = dedxASmi.clone()
107 dedxNPASmi.UsePixel = cms.bool(False)
108 
109 
110 ####################################################################################
111 # MUON TIMING
112 ####################################################################################
113 
115 muontiming.MuonCollection = cms.InputTag("muons")
116 muontiming.TimingFillerParameters.UseECAL=False
117 
118 ####################################################################################
119 # HSCParticle Producer
120 ####################################################################################
121 
122 #ALL THIS IS NEEDED BY ECAL BETA CALCULATOR (TrackAssociator)
139 
140 
142 
143 
144 
145 HSCParticleProducer = cms.EDFilter("HSCParticleProducer",
146  TrackAssociatorParameterBlock, #Needed for ECAL/Track Matching
147 
148  #DOES THE PRODUCER ACT AS AN EDFILTER?
149  filter = cms.bool(True),
150 
151  #WHAT (BETA) INFORMATION TO COMPUTE
152  useBetaFromTk = cms.bool(True),
153  useBetaFromMuon = cms.bool(True),
154  useBetaFromRpc = cms.bool(True),
155  useBetaFromEcal = cms.bool(True),
156 
157  #TAG OF THE REQUIRED INPUT COLLECTION (ONLY ACTIVATED CALCULATOR)
158  tracks = cms.InputTag("TrackRefitter"),
159  tracksIsolation = cms.InputTag("generalTracks"),
160  muons = cms.InputTag("muons"),
161  EBRecHitCollection = cms.InputTag("ecalRecHit:EcalRecHitsEB"),
162  EERecHitCollection = cms.InputTag("ecalRecHit:EcalRecHitsEE"),
163  rpcRecHits = cms.InputTag("rpcRecHits"),
164 
165  #TRACK SELECTION FOR THE HSCP SEED
166  minMuP = cms.double(25),
167  minTkP = cms.double(25),
168  maxTkChi2 = cms.double(5),
169  minTkHits = cms.uint32(3),
170 
171  #MUON/TRACK MATCHING THRESHOLDS (ONLY IF NO MUON INNER TRACK)
172  minDR = cms.double(0.1),
173  maxInvPtDiff = cms.double(0.005),
174 
175  #SELECTION ON THE PRODUCED HSCP CANDIDATES (WILL STORE ONLY INTERESTING CANDIDATES)
176  SelectionParameters = cms.VPSet(
177  HSCPSelectionDefault,
178  ),
179 )
180 
181 
182 ####################################################################################
183 # HSCParticle Selector (Just an Example of what we can do)
184 ####################################################################################
185 
186 HSCParticleSelector = cms.EDFilter("HSCParticleSelector",
187  source = cms.InputTag("HSCParticleProducer"),
188  filter = cms.bool(True),
189 
190  SelectionParameters = cms.VPSet(
191  HSCPSelectionHighdEdx, #THE OR OF THE TWO SELECTION WILL BE APPLIED
192  HSCPSelectionHighTOF,
193  ),
194 )
195 
196 ####################################################################################
197 # HSCP Candidate Sequence
198 ####################################################################################
199 
200 HSCParticleProducerSeq = cms.Sequence(offlineBeamSpot + TrackRefitter + dedxHarm2 + dedxTru40 + dedxNPHarm2 + dedxNPTru40 + dedxNSHarm2 + dedxNSTru40 + dedxProd + dedxASmi + dedxNPProd + dedxNPASmi + muontiming + HSCParticleProducer)
201 
202