Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:33:09

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 defaultMuonHistoParameters = cms.PSet(
0004 
0005     minNTracks = cms.int32(0), 
0006     maxNTracks = cms.int32(100),  
0007     nintNTracks = cms.int32(100),  
0008     #
0009     minFTracks = cms.int32(0),                                                                                                      
0010     maxFTracks = cms.int32(20),                                                                                                    
0011     nintFTracks = cms.int32(20),    
0012     #
0013     useFabsEta = cms.bool(False),
0014     minEta = cms.double(-2.5),
0015     maxEta = cms.double(2.5),
0016     nintEta = cms.int32(50),
0017     #
0018     minPt = cms.double(0.9),
0019     maxPt = cms.double(2000.),
0020     nintPt = cms.int32(50),
0021     useLogPt=cms.untracked.bool(True),
0022     useInvPt = cms.bool(False),
0023     #
0024     minPhi = cms.double(-3.1416),
0025     maxPhi = cms.double(3.1416),
0026     nintPhi = cms.int32(36),
0027     #
0028     minDxy = cms.double(-2.),
0029     maxDxy = cms.double(2.),
0030     nintDxy = cms.int32(40),
0031     #
0032     minDz = cms.double(-30.),
0033     maxDz = cms.double(30.),
0034     nintDz = cms.int32(60),
0035     #
0036     minRpos = cms.double(0.),
0037     maxRpos = cms.double(4.),
0038     nintRpos = cms.int32(40),
0039     #
0040     minZpos = cms.double(-30.),
0041     maxZpos = cms.double(30.),
0042     nintZpos = cms.int32(60),
0043     #
0044     minPU = cms.double(-0.5),                            
0045     maxPU = cms.double(199.5),
0046     nintPU = cms.int32(100),
0047     #
0048     # switches to be set according to the input Track collection to properly count the number of hits in Eff vs N(SimHits)
0049     usetracker = cms.bool(True),
0050     usemuon = cms.bool(True),
0051     #
0052     # here set for GLB tracks, redefined for TRK and STA tracks
0053     minNHit = cms.double(-0.5),                            
0054     maxNHit = cms.double(80.5),
0055     nintNHit = cms.int32(81),
0056     #
0057     # select doing TRK/MUO hits plots
0058     do_TRKhitsPlots = cms.bool(True),
0059     do_MUOhitsPlots = cms.bool(True),
0060     #
0061     minDTHit = cms.double(-0.5),                            
0062     maxDTHit = cms.double(50.5),
0063     nintDTHit = cms.int32(51),
0064     #
0065     minCSCHit = cms.double(-0.5),                            
0066     maxCSCHit = cms.double(50.5),
0067     nintCSCHit = cms.int32(51),
0068     #
0069     minRPCHit = cms.double(-0.5),                            
0070     maxRPCHit = cms.double(10.5),
0071     nintRPCHit = cms.int32(11),
0072     #
0073     minLayers = cms.double(-0.5),                            
0074     maxLayers = cms.double(20.5),
0075     nintLayers = cms.int32(21),
0076     #
0077     minPixels = cms.double(-0.5),                            
0078     maxPixels = cms.double(5.5),
0079     nintPixels = cms.int32(6),
0080     #
0081     ptRes_nbin = cms.int32(200),                 
0082     ptRes_rangeMin = cms.double(-0.5),
0083     ptRes_rangeMax = cms.double(0.5),
0084     #
0085     phiRes_nbin = cms.int32(200),
0086     phiRes_rangeMin = cms.double(-0.01),
0087     phiRes_rangeMax = cms.double(0.01),
0088     #
0089     etaRes_nbin = cms.int32(100),               
0090     etaRes_rangeMin = cms.double(-0.02),
0091     etaRes_rangeMax = cms.double(0.02),
0092     #
0093     cotThetaRes_nbin = cms.int32(100),
0094     cotThetaRes_rangeMin = cms.double(-0.01),
0095     cotThetaRes_rangeMax = cms.double(0.01),
0096     #
0097     dxyRes_nbin = cms.int32(100),         
0098     dxyRes_rangeMin = cms.double(-0.02), 
0099     dxyRes_rangeMax = cms.double(0.02),    
0100     #
0101     dzRes_nbin = cms.int32(100),             
0102     dzRes_rangeMin = cms.double(-0.05),
0103     dzRes_rangeMax = cms.double(0.05)
0104 )
0105 
0106 #####################################################################################
0107 # TRK tracks
0108 trkMuonHistoParameters =  defaultMuonHistoParameters.clone(
0109     usetracker = True,
0110     usemuon = False,
0111     nintNHit = 41,
0112     maxNHit = 40.5,
0113     do_TRKhitsPlots = True,
0114     do_MUOhitsPlots = False
0115 )
0116 #####################################################################################
0117 # GEMmuon tracks
0118 gemMuonHistoParameters =  trkMuonHistoParameters.clone(
0119     usetracker = True,
0120     usemuon = False,
0121     minEta = -2.8,
0122     maxEta = +2.8,
0123     nintEta = 48,
0124     #nintNHit = 41,   # this is the tracker default
0125     #maxNHit = 40.5,
0126     do_TRKhitsPlots = True,
0127     do_MUOhitsPlots = True  # is this used in the current code ?
0128 )
0129 #####################################################################################
0130 # ME0muon tracks
0131 me0MuonHistoParameters =  trkMuonHistoParameters.clone(
0132     usetracker = True,
0133     usemuon = False,
0134     minEta = -2.8,
0135     maxEta = +2.8,
0136     nintEta = 56,
0137     #nintNHit = 41,   # this is the tracker default
0138     #maxNHit = 40.5,
0139     do_TRKhitsPlots = True,
0140     do_MUOhitsPlots = True  # is this used in the current code ?
0141 )
0142 #####################################################################################
0143 # STA tracks
0144 staMuonHistoParameters = defaultMuonHistoParameters.clone(
0145     usetracker = False,
0146     usemuon = True,
0147     nintNHit = 61,
0148     maxNHit = 60.5,
0149     do_TRKhitsPlots = False,
0150     do_MUOhitsPlots = True,
0151     ##
0152     nintDxy = 40,
0153     minDxy = -10.,
0154     maxDxy = 10.,
0155     ##
0156     ptRes_nbin = 200,
0157     ptRes_rangeMin = -1.,
0158     ptRes_rangeMax = 5.,
0159     ##
0160     phiRes_nbin = 200,
0161     phiRes_rangeMin = -0.1,
0162     phiRes_rangeMax = 0.1,
0163     ##
0164     etaRes_nbin = 100,
0165     etaRes_rangeMin = -0.1,
0166     etaRes_rangeMax = 0.1,
0167     ##
0168     cotThetaRes_nbin = 100,
0169     cotThetaRes_rangeMin = -0.1,
0170     cotThetaRes_rangeMax = 0.1,
0171     ##
0172     dxyRes_nbin = 100,
0173     dxyRes_rangeMin = -10.,
0174     dxyRes_rangeMax = 10.,
0175     ##
0176     dzRes_nbin = 100,
0177     dzRes_rangeMin = -25.,
0178     dzRes_rangeMax = 25.
0179 )
0180 #####################################################################################
0181 # STA seeds (here hits are counting DT,CSC segments rather than individual hit layers)
0182 staSeedMuonHistoParameters = staMuonHistoParameters.clone(
0183     nintNHit = 7,
0184     maxNHit = 6.5,
0185     nintDTHit = 7,
0186     maxDTHit = 6.5,
0187     nintCSCHit = 7,
0188     maxCSCHit = 6.5,
0189     nintRPCHit = 7,
0190     maxRPCHit = 6.5
0191 )
0192 #####################################################################################
0193 # STA Upd tracks
0194 staUpdMuonHistoParameters = staMuonHistoParameters.clone(
0195     dxyRes_nbin = 100,
0196     dxyRes_rangeMin = -1.,
0197     dxyRes_rangeMax = 1.
0198 )
0199 #####################################################################################
0200 # GLB tracks
0201 glbMuonHistoParameters =  defaultMuonHistoParameters.clone(
0202     usetracker = True,
0203     usemuon = True,
0204     nintNHit = 81,
0205     maxNHit = 80.5,
0206     do_TRKhitsPlots = True,
0207     do_MUOhitsPlots = True
0208 )
0209 #####################################################################################                                             
0210 # Reco Muon tracks                                                                                                                
0211 recoMuonHistoParameters =  defaultMuonHistoParameters.clone(                                                                     
0212     usetracker = True,                                                                                         
0213     usemuon = True,                                                                                        
0214     nintNHit = 81,                                                                                             
0215     maxNHit = 80.5,                                                                                            
0216     do_TRKhitsPlots = True,                                                                                    
0217     do_MUOhitsPlots = True         
0218 )
0219 #####################################################################################
0220 # Displaced TRK tracks
0221 displacedTrkMuonHistoParameters = trkMuonHistoParameters.clone(
0222     nintDxy = 85,
0223     minDxy = -85.,
0224     maxDxy = 85.,
0225     #
0226     nintDz = 84,
0227     minDz = -210.,
0228     maxDz = 210.,
0229     #
0230     nintRpos = 85,
0231     minRpos = 0.,
0232     maxRpos = 85.,
0233     #
0234     nintZpos = 84,
0235     minZpos = -210.,
0236     maxZpos = 210.
0237 )
0238 #####################################################################################
0239 # Displaced muons: STA tracks
0240 displacedStaMuonHistoParameters = staMuonHistoParameters.clone(
0241     nintDxy = 85,
0242     minDxy = -85.,
0243     maxDxy = 85.,
0244     #
0245     nintDz = 84,
0246     minDz = -210.,
0247     maxDz = 210.,
0248     #
0249     nintRpos = 85,
0250     minRpos = 0.,
0251     maxRpos = 85.,
0252     #
0253     nintZpos = 84,
0254     minZpos = -210.,
0255     maxZpos = 210.
0256 )
0257 #####################################################################################
0258 # Displaced muons: STA seeds (here hits are counting DT,CSC segments rather than individual hit layers)
0259 displacedStaSeedMuonHistoParameters = displacedStaMuonHistoParameters.clone(
0260     nintNHit = 7,
0261     maxNHit = 6.5,
0262     nintDTHit = 7,
0263     maxDTHit = 6.5,
0264     nintCSCHit = 7,
0265     maxCSCHit = 6.5,
0266     nintRPCHit = 7,
0267     maxRPCHit = 6.5
0268 )
0269 #####################################################################################
0270 # Displaced muons: GLB tracks
0271 displacedGlbMuonHistoParameters = glbMuonHistoParameters.clone(
0272     nintDxy = 85,
0273     minDxy = -85.,
0274     maxDxy = 85.,
0275     #
0276     nintDz = 84,
0277     minDz = -210.,
0278     maxDz = 210.,
0279     #
0280     nintRpos = 85,
0281     minRpos = 0.,
0282     maxRpos = 85.,
0283     #
0284     nintZpos = 84,
0285     minZpos = -210.,
0286     maxZpos = 210.
0287 )
0288 #####################################################################################
0289 # COSMIC muons
0290 #####################################################################################
0291 # cosmics: TRK tracks (2-legs)
0292 trkCosmicMuonHistoParameters = trkMuonHistoParameters.clone(
0293     nintDxy = 40,
0294     minDxy = -10., 
0295     maxDxy = 10.,
0296     #
0297     nintDz = 50,
0298     minDz = -50.,
0299     maxDz = 50.,
0300     #
0301     nintRpos = 40, 
0302     minRpos = 0.,
0303     maxRpos = 10.,
0304     #
0305     nintZpos = 50,
0306     minZpos = -50.,
0307     maxZpos = 50.
0308 )
0309 #####################################################################################
0310 # cosmics: STA tracks (2-legs)
0311 staCosmicMuonHistoParameters = staMuonHistoParameters.clone(
0312     nintDxy = 40,
0313     minDxy = -10., 
0314     maxDxy = 10.,
0315     #,
0316     nintDz = 50,
0317     minDz = -50.,
0318     maxDz = 50.,
0319     #
0320     nintRpos = 40, 
0321     minRpos = 0.,
0322     maxRpos = 10.,
0323     #
0324     nintZpos = 50,
0325     minZpos = -50.,
0326     maxZpos = 50.
0327 )
0328 #####################################################################################
0329 # cosmics: GLB tracks (2-legs)
0330 glbCosmicMuonHistoParameters = glbMuonHistoParameters.clone(
0331     nintDxy = 40,
0332     minDxy = -10., 
0333     maxDxy = 10.,
0334     #
0335     nintDz = 50,
0336     minDz = -50.,
0337     maxDz = 50.,
0338     #
0339     nintRpos = 40, 
0340     minRpos = 0.,
0341     maxRpos = 10.,
0342     #
0343     nintZpos = 50,
0344     minZpos = -50.,
0345     maxZpos = 50.
0346 )
0347 #####################################################################################
0348 # cosmics: TRK tracks (1-leg)
0349 trkCosmic1LegMuonHistoParameters = trkCosmicMuonHistoParameters.clone(
0350     nintNHit = 81,
0351     maxNHit = 80.5,
0352     #
0353     nintLayers = 31,
0354     maxLayers = 30.5,
0355     #
0356     nintPixels = 11,
0357     maxPixels = 10.5
0358 )
0359 #####################################################################################
0360 # cosmics: STA tracks (1-leg)
0361 staCosmic1LegMuonHistoParameters = staCosmicMuonHistoParameters.clone(
0362     nintNHit = 121,
0363     maxNHit = 120.5,
0364     #
0365     nintDTHit = 101,
0366     maxDTHit = 100.5,
0367     #
0368     nintCSCHit = 101,
0369     maxCSCHit = 100.5,
0370     #
0371     nintRPCHit = 21,
0372     maxRPCHit = 20.5
0373 )
0374 #####################################################################################
0375 # cosmics: GLB tracks (1-leg)
0376 glbCosmic1LegMuonHistoParameters = glbCosmicMuonHistoParameters.clone(
0377     nintNHit = 161,
0378     maxNHit = 160.5,
0379     #
0380     nintDTHit = 101,
0381     maxDTHit = 100.5,
0382     #
0383     nintCSCHit = 101,
0384     maxCSCHit = 100.5,
0385     #
0386     nintRPCHit = 21,
0387     maxRPCHit = 20.5,
0388     #
0389     nintLayers = 31, 
0390     maxLayers = 30.5,
0391     #
0392     nintPixels = 11,
0393     maxPixels = 10.5
0394 )
0395 
0396 ## Customize ranges for phase 2 samples 
0397 # TRK tracks                                                                                                                     
0398 trkMuonHistoParameters_phase2 = trkMuonHistoParameters.clone(
0399     minPU = 150,
0400     maxPU = 250
0401 )
0402 # GEMmuon tracks                                                                                                                 
0403 gemMuonHistoParameters_phase2 = gemMuonHistoParameters.clone(       
0404     minPU = 150,
0405     maxPU = 250,
0406     maxNTracks = 150,
0407     nintNTracks = 100,
0408     maxFTracks = 50,
0409     nintFTracks = 50
0410 )
0411 # STA tracks                                                                                                                      
0412 staMuonHistoParameters_phase2 = staMuonHistoParameters.clone(
0413     minPU = 150,
0414     maxPU = 250
0415 )
0416 # STA seeds (here hits are counting DT,CSC segments rather than individual hit layers)                                            
0417 staSeedMuonHistoParameters_phase2 = staSeedMuonHistoParameters.clone(
0418     minPU = 150,
0419     maxPU = 250
0420 )
0421 # STA Upd tracks                                                                                                                  
0422 staUpdMuonHistoParameters_phase2 = staUpdMuonHistoParameters.clone(
0423     minPU = 150, 
0424     maxPU = 250
0425 )
0426 # GLB tracks                                                                                                                      
0427 glbMuonHistoParameters_phase2 = glbMuonHistoParameters.clone(
0428     minPU = 150,
0429     maxPU = 250
0430 )
0431 #RecoMuon tracks
0432 recoMuonHistoParameters_phase2 = recoMuonHistoParameters.clone(
0433     minPU = 150,
0434     maxPU = 250,
0435     maxNTracks = 150,
0436     nintNTracks = 100,
0437     maxFTracks = 50,
0438     nintFTracks = 50
0439 )
0440 # Displaced TRK tracks  
0441 displacedTrkMuonHistoParameters_phase2 = displacedTrkMuonHistoParameters.clone(
0442     minPU = 150,
0443     maxPU = 250
0444 )
0445 # Displaced muons: STA tracks                                                                                                    
0446 displacedStaMuonHistoParameters_phase2 = displacedStaMuonHistoParameters.clone(
0447     minPU = 150,
0448     maxPU = 250
0449 )
0450 # Displaced muons: GLB tracks                                                                                                     
0451 displacedGlbMuonHistoParameters_phase2 = displacedGlbMuonHistoParameters.clone(
0452     minPU = 150,
0453     maxPU = 250
0454 )