CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/DQM/TrackingMonitor/python/TrackingMonitor_cfi.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 from DQM.TrackingMonitor.BXlumiParameters_cfi import BXlumiSetup
00004 
00005 TrackMon = cms.EDAnalyzer("TrackingMonitor",
00006     
00007     # input tags
00008     TrackProducer    = cms.InputTag("generalTracks"),
00009     SeedProducer     = cms.InputTag("initialStepSeeds"),
00010     TCProducer       = cms.InputTag("initialStepTrackCandidates"),
00011     ClusterLabels    = cms.vstring('Tot'), # to decide which Seeds-Clusters correlation plots to have default is Total other options 'Strip', 'Pix'
00012     beamSpot         = cms.InputTag("offlineBeamSpot"),
00013     primaryVertex    = cms.InputTag('offlinePrimaryVertices'),
00014 
00015     BXlumiSetup      = BXlumiSetup.clone(),                              
00016 #    lumi             = cms.InputTag('lumiProducer'),
00017 #  # taken from 
00018 #  # DPGAnalysis/SiStripTools/src/DigiLumiCorrHistogramMaker.cc
00019 #  # the scale factor 6.37 should follow the lumi prescriptions
00020 #  # AS SOON AS THE CORRECTED LUMI WILL BE AVAILABLE IT HAS TO BE SET TO 1.
00021 #    lumiScale     = cms.double(6.37),
00022                           
00023     # PU monitoring
00024     primaryVertexInputTags    = cms.VInputTag(),
00025     selPrimaryVertexInputTags = cms.VInputTag(),
00026     pvLabels = cms.vstring(),
00027                           
00028     # output parameters
00029     OutputMEsInRootFile = cms.bool(False),
00030     AlgoName            = cms.string('GenTk'),
00031     Quality             = cms.string(''),
00032     OutputFileName      = cms.string('MonitorTrack.root'),
00033     FolderName          = cms.string('Tracking/GlobalParameters'),
00034     BSFolderName        = cms.string('Tracking/ParametersVsBeamSpot'),
00035     PVFolderName        = cms.string('Tracking/PrimaryVertices'),
00036 
00037     # determines where to evaluate track parameters
00038     # options: 'default'      --> straight up track parametes
00039     #              'ImpactPoint'  --> evalutate at impact point 
00040     #              'InnerSurface' --> evalutate at innermost measurement state 
00041     #              'OuterSurface' --> evalutate at outermost measurement state 
00042 
00043     MeasurementState = cms.string('ImpactPoint'),
00044     
00045     # which plots to do
00046     doTestPlots                         = cms.bool(False),
00047     doAllPlots                          = cms.bool(True),
00048     doTrackerSpecific                   = cms.bool(False),
00049     doBeamSpotPlots                     = cms.bool(False),
00050     doSeedParameterHistos               = cms.bool(False),
00051     doTrackCandHistos                   = cms.bool(False),
00052     doDCAPlots                          = cms.bool(False),
00053     doDCAwrt000Plots                    = cms.bool(False),
00054     doGeneralPropertiesPlots            = cms.bool(False),
00055     doHitPropertiesPlots                = cms.bool(False),              
00056     doGoodTrackPlots                    = cms.bool(False),
00057     doMeasurementStatePlots             = cms.bool(True),
00058     doProfilesVsLS                      = cms.bool(False),
00059     doRecHitVsPhiVsEtaPerTrack          = cms.bool(False),
00060     doGoodTrackRecHitVsPhiVsEtaPerTrack = cms.bool(False),                          
00061     doLayersVsPhiVsEtaPerTrack          = cms.bool(False),
00062     doGoodTrackLayersVsPhiVsEtaPerTrack = cms.bool(False),
00063     doGoodTrack2DChi2Plots              = cms.bool(False),
00064     doThetaPlots                        = cms.bool(False),
00065     doTrackPxPyPlots                    = cms.bool(False),
00066     doPUmonitoring                      = cms.bool(False),
00067     doPlotsVsBXlumi                     = cms.bool(False),
00068     doPlotsVsGoodPVtx                   = cms.bool(False),
00069                               
00070                           
00071     #which seed plots to do
00072     doSeedNumberHisto = cms.bool(False),
00073     doSeedVsClusterHisto = cms.bool(False),
00074     doSeedPTHisto = cms.bool(False),
00075     doSeedETAHisto = cms.bool(False),
00076     doSeedPHIHisto = cms.bool(False),
00077     doSeedPHIVsETAHisto = cms.bool(False),
00078     doSeedThetaHisto = cms.bool(False),
00079     doSeedQHisto = cms.bool(False),
00080     doSeedDxyHisto= cms.bool(False),
00081     doSeedDzHisto= cms.bool(False),
00082     doSeedNRecHitsHisto= cms.bool(False),
00083     doSeedNVsPhiProf= cms.bool(False),
00084     doSeedNVsEtaProf= cms.bool(False),
00085 
00086     TTRHBuilder = cms.string('WithTrackAngle'),
00087 
00088     # Luminosity based analysis
00089     doLumiAnalysis = cms.bool(False),                       
00090     # For plots vs LS
00091     LSBin = cms.int32(2000),
00092     LSMin = cms.double(0),
00093     LSMax = cms.double(2000.),
00094 
00095     # paramters of the Track
00096     # ============================================================ 
00097     
00098     # chi2
00099     Chi2Bin = cms.int32(50),
00100     Chi2Max = cms.double(199.5),
00101     Chi2Min = cms.double(-0.5),
00102 
00103     # chi2 dof
00104     Chi2NDFBin = cms.int32(50),
00105     Chi2NDFMax = cms.double(19.5),
00106     Chi2NDFMin = cms.double(-0.5),
00107 
00108     # chi^2 probability
00109     Chi2ProbBin = cms.int32(100),
00110     Chi2ProbMax = cms.double(1.0),
00111     Chi2ProbMin = cms.double(0.0),
00112 
00113     # Number of Tracks per Event
00114     TkSizeBin = cms.int32(100),
00115     TkSizeMax = cms.double(99.5),                        
00116     TkSizeMin = cms.double(-0.5),
00117 
00118     # Number of seeds per Event
00119     TkSeedSizeBin = cms.int32(150),
00120     TkSeedSizeMax = cms.double(149.5),                        
00121     TkSeedSizeMin = cms.double(-0.5),
00122 
00123     # Number of Track Cadidates per Event
00124     TCSizeBin = cms.int32(150),
00125     TCSizeMax = cms.double(149.5),
00126     TCSizeMin = cms.double(-0.5),
00127 
00128     # num rec hits
00129     TrackQBin = cms.int32(8),
00130     TrackQMax = cms.double(2.5),
00131     TrackQMin = cms.double(-2.5),
00132 
00133     # num rec hits in seed
00134     SeedHitBin = cms.int32(6),
00135     SeedHitMax = cms.double(5.5),
00136     SeedHitMin = cms.double(-0.5),
00137 
00138     # num rec hits per track candidate
00139     TCHitBin = cms.int32(40),
00140     TCHitMax = cms.double(39.5),
00141     TCHitMin = cms.double(-0.5),
00142 
00143     # num rec hits
00144     RecHitBin = cms.int32(40),
00145     RecHitMax = cms.double(39.5),                        
00146     RecHitMin = cms.double(-0.5),
00147 
00148     # mean rec hits
00149     MeanHitBin = cms.int32(30),
00150     MeanHitMax = cms.double(29.5),
00151     MeanHitMin = cms.double(-0.5),
00152 
00153     # num TOB rec hits
00154     TOBHitBin = cms.int32(15),
00155     TOBHitMax = cms.double(14.5),
00156     TOBHitMin = cms.double(-0.5),
00157 
00158     # num TIB rec hits
00159     TIBHitBin = cms.int32(15),
00160     TIBHitMax = cms.double(14.5),
00161     TIBHitMin = cms.double(-0.5),
00162 
00163     # num TID rec hits
00164     TIDHitBin = cms.int32(15),
00165     TIDHitMax = cms.double(14.5),
00166     TIDHitMin = cms.double(-0.5),
00167 
00168     # num TEC rec hits
00169     TECHitBin = cms.int32(25),
00170     TECHitMax = cms.double(24.5),
00171     TECHitMin = cms.double(-0.5),
00172 
00173     # num PXB rec hits
00174     PXBHitBin = cms.int32(10),
00175     PXBHitMax = cms.double(9.5),
00176     PXBHitMin = cms.double(-0.5),
00177 
00178     # num PXF rec hits
00179     PXFHitBin = cms.int32(10),
00180     PXFHitMax = cms.double(9.5),
00181     PXFHitMin = cms.double(-0.5),
00182 
00183     # num rec hits lost
00184     RecLostBin = cms.int32(10),
00185     RecLostMax = cms.double(9.5),
00186     RecLostMin = cms.double(-0.5),
00187 
00188     # num layers 
00189     RecLayBin = cms.int32(25),
00190     RecLayMax = cms.double(24.5),
00191     RecLayMin = cms.double(-0.5),
00192 
00193     # mean layers
00194     MeanLayBin = cms.int32(20),
00195     MeanLayMax = cms.double(19.5),
00196     MeanLayMin = cms.double(-0.5),
00197 
00198     # num TOB Layers
00199     TOBLayBin = cms.int32(10),
00200     TOBLayMax = cms.double(9.5),
00201     TOBLayMin = cms.double(-0.5),
00202 
00203     # num TIB Layers
00204     TIBLayBin = cms.int32(6),
00205     TIBLayMax = cms.double(5.5),
00206     TIBLayMin = cms.double(-0.5),
00207 
00208     # num TID Layers
00209     TIDLayBin = cms.int32(6),
00210     TIDLayMax = cms.double(5.5),
00211     TIDLayMin = cms.double(-0.5),
00212 
00213     # num TEC Layers
00214     TECLayBin = cms.int32(15),
00215     TECLayMax = cms.double(14.5),
00216     TECLayMin = cms.double(-0.5),
00217 
00218     # num PXB Layers
00219     PXBLayBin = cms.int32(6),
00220     PXBLayMax = cms.double(5.5),
00221     PXBLayMin = cms.double(-0.5),
00222 
00223     # num PXF Layers
00224     PXFLayBin = cms.int32(6),
00225     PXFLayMax = cms.double(5.5),
00226     PXFLayMin = cms.double(-0.5),
00227 
00228     # Track |p|
00229     TrackPBin = cms.int32(100),
00230     TrackPMax = cms.double(100),
00231     TrackPMin = cms.double(0),
00232 
00233     # Track pT
00234     TrackPtBin = cms.int32(100),
00235     TrackPtMax = cms.double(100),                        
00236     TrackPtMin = cms.double(0.1),
00237     
00238     # Track px
00239     TrackPxBin = cms.int32(50),
00240     TrackPxMax = cms.double(50.0),                        
00241     TrackPxMin = cms.double(-50.0),
00242     
00243     # Track py
00244     TrackPyBin = cms.int32(50),
00245     TrackPyMax = cms.double(50.0),                        
00246     TrackPyMin = cms.double(-50.0),
00247     
00248     # Track pz
00249     TrackPzBin = cms.int32(50),
00250     TrackPzMax = cms.double(50.0),                        
00251     TrackPzMin = cms.double(-50.0),
00252                             
00253     # track theta
00254     ThetaBin = cms.int32(32),
00255     ThetaMax = cms.double(3.2),
00256     ThetaMin = cms.double(0.0),
00257 
00258     # track eta
00259     EtaBin = cms.int32(26),
00260     EtaMax = cms.double(2.5),
00261     EtaMin = cms.double(-2.5),
00262 
00263     # track phi
00264     PhiBin = cms.int32(32),
00265     PhiMax = cms.double(3.141592654),
00266     PhiMin = cms.double(-3.141592654),
00267 
00268     # Track |p| error
00269     pErrBin = cms.int32(50),
00270     pErrMax = cms.double(1.0),
00271     pErrMin = cms.double(0.0),
00272 
00273     # Track pT error
00274     ptErrBin = cms.int32(50),
00275     ptErrMax = cms.double(1.0),
00276     ptErrMin = cms.double(0.0),
00277     
00278     # Track px error
00279     pxErrBin = cms.int32(50),
00280     pxErrMax = cms.double(1.0),
00281     pxErrMin = cms.double(0.0),
00282     
00283     # Track py error
00284     pyErrBin = cms.int32(50),
00285     pyErrMax = cms.double(1.0),
00286     pyErrMin = cms.double(0.0),
00287     
00288     # Track pz error
00289     pzErrBin = cms.int32(50),
00290     pzErrMax = cms.double(1.0),
00291     pzErrMin = cms.double(0.0),
00292 
00293     # track eta error
00294     etaErrBin = cms.int32(50),
00295     etaErrMax = cms.double(0.1),
00296     etaErrMin = cms.double(0.0),
00297     
00298     # track phi Error
00299     phiErrBin = cms.int32(50),
00300     phiErrMax = cms.double(0.1),
00301     phiErrMin = cms.double(0.0),
00302 
00303     # PCA x position
00304     VXBin = cms.int32(100),
00305     VXMax = cms.double(0.5),                        
00306     VXMin = cms.double(-0.5),
00307     
00308     # PCA y position
00309     VYBin = cms.int32(100),
00310     VYMax = cms.double(0.5),                        
00311     VYMin = cms.double(-0.5),
00312     
00313     # PCA z position
00314     VZBin = cms.int32(100),
00315     VZMax = cms.double(30.0),                        
00316     VZMin = cms.double(-30.0),
00317     
00318     # PCA x position for 2D plot
00319     X0Bin = cms.int32(100),
00320     X0Max = cms.double(0.5),                        
00321     X0Min = cms.double(-0.5),
00322     
00323     # PCA y position for 2D plot
00324     Y0Bin = cms.int32(100),
00325     Y0Max = cms.double(0.5),                        
00326     Y0Min = cms.double(-0.5),
00327     
00328     # PCA z position for 2D plot
00329     Z0Bin = cms.int32(120),
00330     Z0Max = cms.double(60.0),                        
00331     Z0Min = cms.double(-60.0),
00332     
00333     # Track dxy (transverse impact parameter)
00334     DxyBin = cms.int32(100),
00335     DxyMax = cms.double(0.5),
00336     DxyMin = cms.double(-0.5),                        
00337 
00338     # Seed dxy (transverse impact parameter)
00339     SeedDxyBin = cms.int32(100),
00340     SeedDxyMax = cms.double(0.5),
00341     SeedDxyMin = cms.double(-0.5),                        
00342 
00343     # Seed dz (longitudinal impact parameter)
00344     SeedDzBin = cms.int32(120),
00345     SeedDzMax = cms.double(30.0),
00346     SeedDzMin = cms.double(-30.0),                        
00347 
00348     # Track Candidate dxy (transverse impact parameter)
00349     TCDxyBin = cms.int32(100),
00350     TCDxyMax = cms.double(100.0),
00351     TCDxyMin = cms.double(-100.0),                                                
00352 
00353     # Track Candidate dz (transverse impact parameter)
00354     TCDzBin = cms.int32(100),
00355     TCDzMax = cms.double(400.0),
00356     TCDzMin = cms.double(-400.0),                                                
00357 
00358 #######################################
00359 ## needed for tracksVScluster and seedVScluster
00360 
00361     # NCluster Pixel
00362     NClusPxBin = cms.int32(200),
00363     NClusPxMax = cms.double(19999.5),                      
00364     NClusPxMin = cms.double(-0.5),
00365 
00366     # NCluster Strip
00367     NClusStrBin = cms.int32(500),
00368     NClusStrMax = cms.double(99999.5),                      
00369     NClusStrMin = cms.double(-0.5),
00370 
00371     # NCluster Vs Tracks
00372     NTrk2DBin     = cms.int32(50),
00373     NTrk2DMax     = cms.double(1999.5),                      
00374     NTrk2DMin     = cms.double(-0.5),
00375 
00376     # PU monitoring
00377     # Nunmber of Good Primary Vertices
00378     GoodPVtxBin = cms.int32(60),
00379     GoodPVtxMin = cms.double( 0.),
00380     GoodPVtxMax = cms.double(60.),
00381 
00382 #    # BXlumi                          
00383 #    BXlumiBin = cms.int32(400),
00384 #    BXlumiMin = cms.double(2000),
00385 #    BXlumiMax = cms.double(6000),
00386                           
00387 )