Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:07:36

0001 # Specify detector coordinates of LED calibration channels
0002 import FWCore.ParameterSet.Config as cms
0003 
0004 # Coordinates as python tuples, (ieta, iphi, depth)
0005 led_calibration_channels_tuple = {
0006     "HB":{},
0007     "HE":{
0008         (-16, 48, 10),
0009         (-16, 112, 10),
0010         (-17, 48, 10),
0011         (-17, 112, 10),
0012         (-18, 48, 10),
0013         (-18, 112, 10),
0014         (-19, 48, 10),
0015         (-19, 112, 10),
0016         (-20, 48, 10),
0017         (-20, 112, 10),
0018         (-21, 48, 10),
0019         (-21, 112, 10),
0020         (-22, 48, 10),
0021         (-22, 112, 10),
0022         (-23, 48, 10),
0023         (-23, 112, 10),
0024         (-24, 48, 10),
0025         (-24, 112, 10),
0026         (-48, 48, 10),
0027         (-48, 112, 10),
0028         (-49, 48, 10),
0029         (-49, 112, 10),
0030         (-50, 48, 10),
0031         (-50, 112, 10),
0032         (-51, 48, 10),
0033         (-51, 112, 10),
0034         (-52, 48, 10),
0035         (-52, 112, 10),
0036         (-53, 48, 10),
0037         (-53, 112, 10),
0038         (-54, 48, 10),
0039         (-54, 112, 10),
0040         (-55, 48, 10),
0041         (-55, 112, 10),
0042         (-56, 48, 10),
0043         (-56, 112, 10),
0044     }, 
0045 
0046     "HO":{},
0047     "HF":{
0048         (-16, 16, 12),
0049         (-18, 48, 12),
0050         (-20, 80, 12),
0051         (-22, 112, 12),
0052         (-50, 48, 12),
0053         (-52, 80, 12),
0054         (-54, 112, 12),
0055         (-54, 120, 12),
0056     },
0057 }
0058 
0059 # Convert tuples to CMSSW objects
0060 ledCalibrationChannels = cms.VPSet()
0061 for subdet in ["HB", "HE", "HO", "HF"]:
0062     subdet_channels = cms.untracked.PSet(
0063         ieta = cms.untracked.vint32(),
0064         iphi = cms.untracked.vint32(),
0065         depth = cms.untracked.vint32()
0066     )
0067     for channel in led_calibration_channels_tuple[subdet]:
0068         subdet_channels.ieta.append(channel[0])
0069         subdet_channels.iphi.append(channel[1])
0070         subdet_channels.depth.append(channel[2])
0071     ledCalibrationChannels.append(subdet_channels)