CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ctppsRawToDigi_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # trigger data
4 from EventFilter.CTPPSRawToDigi.totemTriggerRawToDigi_cfi import totemTriggerRawToDigi
5 totemTriggerRawToDigi.rawDataTag = cms.InputTag("rawDataCollector")
6 
7 
8 # Si strips
9 totemDAQMappingESSourceXML_TrackingStrip = cms.ESSource("TotemDAQMappingESSourceXML",
10  verbosity = cms.untracked.uint32(0),
11  subSystem = cms.untracked.string("TrackingStrip"),
12  configuration = cms.VPSet(
13  # before TS2 (2016)
14  cms.PSet(
15  validityRange = cms.EventRange("1:min - 280385:max"),
16  mappingFileNames = cms.vstring("CondFormats/CTPPSReadoutObjects/xml/mapping_tracking_strip_to_fill_5288.xml"),
17  maskFileNames = cms.vstring()
18  ),
19  # during TS2 (2016)
20  cms.PSet(
21  validityRange = cms.EventRange("280386:min - 281600:max"),
22  mappingFileNames = cms.vstring(),
23  maskFileNames = cms.vstring()
24  ),
25  # after TS2 (2016)
26  cms.PSet(
27  validityRange = cms.EventRange("281601:min - 999999999:max"),
28  mappingFileNames = cms.vstring("CondFormats/CTPPSReadoutObjects/xml/mapping_tracking_strip_from_fill_5330.xml"),
29  maskFileNames = cms.vstring()
30  )
31  )
32 )
33 
34 from EventFilter.CTPPSRawToDigi.totemRPRawToDigi_cfi import totemRPRawToDigi
35 totemRPRawToDigi.rawDataTag = cms.InputTag("rawDataCollector")
36 
37 
38 # diamonds
39 totemDAQMappingESSourceXML_TimingDiamond = cms.ESSource("TotemDAQMappingESSourceXML",
40  verbosity = cms.untracked.uint32(0),
41  subSystem = cms.untracked.string("TimingDiamond"),
42  configuration = cms.VPSet(
43  # before diamonds inserted in DAQ
44  cms.PSet(
45  validityRange = cms.EventRange("1:min - 283819:max"),
46  mappingFileNames = cms.vstring(),
47  maskFileNames = cms.vstring()
48  ),
49  # after diamonds inserted in DAQ
50  cms.PSet(
51  validityRange = cms.EventRange("283820:min - 999999999:max"),
52  mappingFileNames = cms.vstring("CondFormats/CTPPSReadoutObjects/xml/mapping_timing_diamond.xml"),
53  maskFileNames = cms.vstring()
54  )
55  )
56 )
57 
58 from EventFilter.CTPPSRawToDigi.ctppsDiamondRawToDigi_cfi import ctppsDiamondRawToDigi
59 ctppsDiamondRawToDigi.rawDataTag = cms.InputTag("rawDataCollector")
60 
61 
62 # raw-to-digi sequence
63 ctppsRawToDigi = cms.Sequence(
64  totemTriggerRawToDigi *
65  totemRPRawToDigi *
66  ctppsDiamondRawToDigi
67 )