Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:06:37

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 # simple cut: three bins, any partition
0004 
0005 absbxincycle1 = cms.EDFilter("EventWithHistoryEDFilter",
0006                        commonConfiguration = cms.untracked.PSet(
0007                            historyProduct = cms.untracked.InputTag("consecutiveHEs"),
0008                            APVPhaseLabel = cms.untracked.string("APVPhases")
0009                        ),
0010                        filterConfigurations = cms.untracked.VPSet(
0011                          cms.PSet(
0012                             absBXInCycleRangeLtcyAware = cms.untracked.vint32(5,7),
0013                             partitionName = cms.untracked.string("Any")
0014                          )
0015                        )
0016                      )
0017                              
0018 # four bins across the boundary: "Any" partition
0019 
0020 absbxincycle2 = cms.EDFilter("EventWithHistoryEDFilter",
0021                        commonConfiguration = cms.untracked.PSet(
0022                            historyProduct = cms.untracked.InputTag("consecutiveHEs"),
0023                            APVPhaseLabel = cms.untracked.string("APVPhases")
0024                        ),
0025                        filterConfigurations = cms.untracked.VPSet(
0026                          cms.PSet(
0027                             absBXInCycleRangeLtcyAware = cms.untracked.vint32(68,1),
0028                             partitionName = cms.untracked.string("Any")
0029                          )
0030                        )
0031                      )
0032 
0033 # OR of the two filter above using the VPSet mechanism
0034 
0035 absbxincycle3 = cms.EDFilter("EventWithHistoryEDFilter",
0036                        commonConfiguration = cms.untracked.PSet(
0037                            historyProduct = cms.untracked.InputTag("consecutiveHEs"),
0038                            APVPhaseLabel = cms.untracked.string("APVPhases")
0039                        ),
0040                        filterConfigurations = cms.untracked.VPSet(
0041                          cms.PSet(
0042                             absBXInCycleRangeLtcyAware = cms.untracked.vint32(68,1),
0043                             partitionName = cms.untracked.string("Any")
0044                          ),
0045                          cms.PSet(
0046                             absBXInCycleRangeLtcyAware = cms.untracked.vint32(5,7),
0047                             partitionName = cms.untracked.string("Any")
0048                          )
0049                        )
0050                      )
0051 
0052 # with one negative boundary: "Any" partition
0053 
0054 absbxincycle4 = cms.EDFilter("EventWithHistoryEDFilter",
0055                        commonConfiguration = cms.untracked.PSet(
0056                            historyProduct = cms.untracked.InputTag("consecutiveHEs"),
0057                            APVPhaseLabel = cms.untracked.string("APVPhases")
0058                        ),
0059                        filterConfigurations = cms.untracked.VPSet(
0060                          cms.PSet(
0061                             absBXInCycleRangeLtcyAware = cms.untracked.vint32(-1,3),
0062                             partitionName = cms.untracked.string("Any")
0063                          )
0064                        )
0065                       )
0066 
0067 # another with one negative boundary: "Any" partition
0068 
0069 absbxincycle5 = cms.EDFilter("EventWithHistoryEDFilter",
0070                        commonConfiguration = cms.untracked.PSet(
0071                            historyProduct = cms.untracked.InputTag("consecutiveHEs"),
0072                            APVPhaseLabel = cms.untracked.string("APVPhases")
0073                        ),
0074                        filterConfigurations = cms.untracked.VPSet(
0075                          cms.PSet(
0076                             absBXInCycleRangeLtcyAware = cms.untracked.vint32(65,-1),
0077                             partitionName = cms.untracked.string("Any")
0078                          )
0079                        )
0080                       )
0081 
0082 # OR with negative boundaries: "Any" partition
0083 
0084 absbxincycle6 = cms.EDFilter("EventWithHistoryEDFilter",
0085                        commonConfiguration = cms.untracked.PSet(
0086                            historyProduct = cms.untracked.InputTag("consecutiveHEs"),
0087                            APVPhaseLabel = cms.untracked.string("APVPhases")
0088                        ),
0089                        filterConfigurations = cms.untracked.VPSet(
0090                          cms.PSet(
0091                             absBXInCycleRangeLtcyAware = cms.untracked.vint32(65,-1),
0092                             partitionName = cms.untracked.string("Any")
0093                          ),
0094                          cms.PSet(
0095                             absBXInCycleRangeLtcyAware = cms.untracked.vint32(20,20),
0096                             partitionName = cms.untracked.string("Any")
0097                          ),
0098                          cms.PSet(
0099                             absBXInCycleRangeLtcyAware = cms.untracked.vint32(-1,3),
0100                             partitionName = cms.untracked.string("Any")
0101                          )
0102                        )
0103                      )
0104 
0105 # now a set of filters which are NOT Latency Aware
0106 
0107                        
0108 absbxincycle11 = cms.EDFilter("EventWithHistoryEDFilter",
0109                        commonConfiguration = cms.untracked.PSet(
0110                            historyProduct = cms.untracked.InputTag("consecutiveHEs"),
0111                            APVPhaseLabel = cms.untracked.string("APVPhases")
0112                        ),
0113                        filterConfigurations = cms.untracked.VPSet(
0114                          cms.PSet(
0115                             absBXInCycleRange = cms.untracked.vint32(5,7),
0116                             partitionName = cms.untracked.string("Any")
0117                          )
0118                        )
0119                      )
0120 
0121 # four bins across the boundary: "Any" partition
0122 
0123 absbxincycle12 = cms.EDFilter("EventWithHistoryEDFilter",
0124                        commonConfiguration = cms.untracked.PSet(
0125                            historyProduct = cms.untracked.InputTag("consecutiveHEs"),
0126                            APVPhaseLabel = cms.untracked.string("APVPhases")
0127                        ),
0128                        filterConfigurations = cms.untracked.VPSet(
0129                          cms.PSet(
0130                             absBXInCycleRange = cms.untracked.vint32(68,1),
0131                             partitionName = cms.untracked.string("Any")
0132                          )
0133                        )
0134                      )
0135 
0136 # OR of the two filter above using the VPSet mechanism
0137 
0138 absbxincycle13 = cms.EDFilter("EventWithHistoryEDFilter",
0139                        commonConfiguration = cms.untracked.PSet(
0140                            historyProduct = cms.untracked.InputTag("consecutiveHEs"),
0141                            APVPhaseLabel = cms.untracked.string("APVPhases")
0142                        ),
0143                        filterConfigurations = cms.untracked.VPSet(
0144                          cms.PSet(
0145                             absBXInCycleRange = cms.untracked.vint32(68,1),
0146                             partitionName = cms.untracked.string("Any")
0147                          ),
0148                          cms.PSet(
0149                             absBXInCycleRange = cms.untracked.vint32(5,7),
0150                             partitionName = cms.untracked.string("Any")
0151                          )
0152                        )
0153                      )
0154 
0155 # with one negative boundary: "Any" partition
0156 
0157 absbxincycle14 = cms.EDFilter("EventWithHistoryEDFilter",
0158                        commonConfiguration = cms.untracked.PSet(
0159                            historyProduct = cms.untracked.InputTag("consecutiveHEs"),
0160                            APVPhaseLabel = cms.untracked.string("APVPhases")
0161                        ),
0162                        filterConfigurations = cms.untracked.VPSet(
0163                          cms.PSet(
0164                             absBXInCycleRange = cms.untracked.vint32(-1,3),
0165                             partitionName = cms.untracked.string("Any")
0166                          )
0167                        )
0168                      )
0169 
0170 # another with one negative boundary: "Any" partition
0171 
0172 absbxincycle15 = cms.EDFilter("EventWithHistoryEDFilter",
0173                        commonConfiguration = cms.untracked.PSet(
0174                            historyProduct = cms.untracked.InputTag("consecutiveHEs"),
0175                            APVPhaseLabel = cms.untracked.string("APVPhases")
0176                        ),
0177                        filterConfigurations = cms.untracked.VPSet(
0178                          cms.PSet(
0179                             absBXInCycleRange = cms.untracked.vint32(65,-1),
0180                             partitionName = cms.untracked.string("Any")
0181                          )
0182                        )
0183                      )
0184 
0185 # OR with negative boundaries: "Any" partition
0186 
0187 absbxincycle16 = cms.EDFilter("EventWithHistoryEDFilter",
0188                        commonConfiguration = cms.untracked.PSet(
0189                            historyProduct = cms.untracked.InputTag("consecutiveHEs"),
0190                            APVPhaseLabel = cms.untracked.string("APVPhases")
0191                        ),
0192                        filterConfigurations = cms.untracked.VPSet(
0193                          cms.PSet(
0194                             absBXInCycleRange = cms.untracked.vint32(65,-1),
0195                             partitionName = cms.untracked.string("Any")
0196                          ),
0197                          cms.PSet(
0198                             absBXInCycleRange = cms.untracked.vint32(20,20),
0199                             partitionName = cms.untracked.string("Any")
0200                          ),
0201                          cms.PSet(
0202                             absBXInCycleRange = cms.untracked.vint32(-1,3),
0203                             partitionName = cms.untracked.string("Any")
0204                          )
0205                        )
0206                      )
0207 # a few combined filters between Latency Aware and not Latency Aware cuts
0208 
0209 absbxincycle21 = cms.EDFilter("EventWithHistoryEDFilter",
0210                        commonConfiguration = cms.untracked.PSet(
0211                            historyProduct = cms.untracked.InputTag("consecutiveHEs"),
0212                            APVPhaseLabel = cms.untracked.string("APVPhases")
0213                        ),
0214                        filterConfigurations = cms.untracked.VPSet(
0215                          cms.PSet(
0216                             absBXInCycleRangeLtcyAware = cms.untracked.vint32(65,-1),
0217                             partitionName = cms.untracked.string("Any")
0218                          ),
0219                          cms.PSet(
0220                             absBXInCycleRange = cms.untracked.vint32(20,20),
0221                             partitionName = cms.untracked.string("Any")
0222                          ),
0223                          cms.PSet(
0224                             absBXInCycleRangeLtcyAware = cms.untracked.vint32(5,8),
0225                             partitionName = cms.untracked.string("Any")
0226                          )
0227                        )
0228                      )
0229 
0230 # partition name in the common part
0231 
0232 absbxincycle22 = cms.EDFilter("EventWithHistoryEDFilter",
0233                        commonConfiguration = cms.untracked.PSet(
0234                            historyProduct = cms.untracked.InputTag("consecutiveHEs"),
0235                            APVPhaseLabel = cms.untracked.string("APVPhases"),
0236                            partitionName = cms.untracked.string("Any")
0237                        ),
0238                        filterConfigurations = cms.untracked.VPSet(
0239                          cms.PSet(
0240                             absBXInCycleRangeLtcyAware = cms.untracked.vint32(65,-1),
0241                          ),
0242                          cms.PSet(
0243                             absBXInCycleRange = cms.untracked.vint32(20,20),
0244                          ),
0245                          cms.PSet(
0246                             absBXInCycleRangeLtcyAware = cms.untracked.vint32(5,8),
0247                          )
0248                        )
0249                      )
0250 
0251 # a combined filter with different partitions
0252 
0253 absbxincycle31 = cms.EDFilter("EventWithHistoryEDFilter",
0254                        commonConfiguration = cms.untracked.PSet(
0255                            historyProduct = cms.untracked.InputTag("consecutiveHEs"),
0256                            APVPhaseLabel = cms.untracked.string("APVPhases")
0257                        ),
0258                        filterConfigurations = cms.untracked.VPSet(
0259                          cms.PSet(
0260                             absBXInCycleRange = cms.untracked.vint32(20,20),
0261                             partitionName = cms.untracked.string("TO")
0262                          ),
0263                          cms.PSet(
0264                             absBXInCycleRangeLtcyAware = cms.untracked.vint32(5,8),
0265                             partitionName = cms.untracked.string("TM")
0266                          )
0267                        )
0268                      )
0269 
0270 
0271 import DPGAnalysis.SiStripTools.eventtimedistribution_cfi
0272 
0273 etdabsbxincycle1 = DPGAnalysis.SiStripTools.eventtimedistribution_cfi.eventtimedistribution.clone()
0274 etdabsbxincycle2 = DPGAnalysis.SiStripTools.eventtimedistribution_cfi.eventtimedistribution.clone()
0275 etdabsbxincycle3 = DPGAnalysis.SiStripTools.eventtimedistribution_cfi.eventtimedistribution.clone()
0276 etdabsbxincycle4 = DPGAnalysis.SiStripTools.eventtimedistribution_cfi.eventtimedistribution.clone()
0277 etdabsbxincycle5 = DPGAnalysis.SiStripTools.eventtimedistribution_cfi.eventtimedistribution.clone()
0278 etdabsbxincycle6 = DPGAnalysis.SiStripTools.eventtimedistribution_cfi.eventtimedistribution.clone()
0279 
0280 etdabsbxincycle11 = DPGAnalysis.SiStripTools.eventtimedistribution_cfi.eventtimedistribution.clone()
0281 etdabsbxincycle12 = DPGAnalysis.SiStripTools.eventtimedistribution_cfi.eventtimedistribution.clone()
0282 etdabsbxincycle13 = DPGAnalysis.SiStripTools.eventtimedistribution_cfi.eventtimedistribution.clone()
0283 etdabsbxincycle14 = DPGAnalysis.SiStripTools.eventtimedistribution_cfi.eventtimedistribution.clone()
0284 etdabsbxincycle15 = DPGAnalysis.SiStripTools.eventtimedistribution_cfi.eventtimedistribution.clone()
0285 etdabsbxincycle16 = DPGAnalysis.SiStripTools.eventtimedistribution_cfi.eventtimedistribution.clone()
0286 
0287 etdabsbxincycle21 = DPGAnalysis.SiStripTools.eventtimedistribution_cfi.eventtimedistribution.clone()
0288 etdabsbxincycle22 = DPGAnalysis.SiStripTools.eventtimedistribution_cfi.eventtimedistribution.clone()
0289 
0290 etdabsbxincycle31 = DPGAnalysis.SiStripTools.eventtimedistribution_cfi.eventtimedistribution.clone()
0291 
0292 absbxincycles1 = cms.Sequence(absbxincycle1 + etdabsbxincycle1)
0293 absbxincycles2 = cms.Sequence(absbxincycle2 + etdabsbxincycle2)
0294 absbxincycles3 = cms.Sequence(absbxincycle3 + etdabsbxincycle3)
0295 absbxincycles4 = cms.Sequence(absbxincycle4 + etdabsbxincycle4)
0296 absbxincycles5 = cms.Sequence(absbxincycle5 + etdabsbxincycle5)
0297 absbxincycles6 = cms.Sequence(absbxincycle6 + etdabsbxincycle6)
0298 
0299 absbxincycles11 = cms.Sequence(absbxincycle11 + etdabsbxincycle11)
0300 absbxincycles12 = cms.Sequence(absbxincycle12 + etdabsbxincycle12)
0301 absbxincycles13 = cms.Sequence(absbxincycle13 + etdabsbxincycle13)
0302 absbxincycles14 = cms.Sequence(absbxincycle14 + etdabsbxincycle14)
0303 absbxincycles15 = cms.Sequence(absbxincycle15 + etdabsbxincycle15)
0304 absbxincycles16 = cms.Sequence(absbxincycle16 + etdabsbxincycle16)
0305 
0306 absbxincycles21 = cms.Sequence(absbxincycle21 + etdabsbxincycle21)
0307 absbxincycles22 = cms.Sequence(absbxincycle22 + etdabsbxincycle22)
0308 
0309 absbxincycles31 = cms.Sequence(absbxincycle31 + etdabsbxincycle31)