Skip to content

Commit

Permalink
put sampic subdet id behind the era modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher committed Jun 9, 2022
1 parent 3b1b1c2 commit dcbd1d4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CalibPPS/ESProducers/plugins/TotemDAQMappingESSourceXML.cc
Expand Up @@ -88,6 +88,9 @@ class TotemDAQMappingESSourceXML : public edm::ESProducer, public edm::EventSetu
/// label of the CTPPS sub-system
string subSystemName;

//subdetector id for sampic
unsigned int sampicSubDetId;

/// the mapping files
std::vector<std::string> mappingFileNames;

Expand Down Expand Up @@ -245,6 +248,7 @@ const string TotemDAQMappingESSourceXML::tagTotemTimingPlane = "timing_plane";
TotemDAQMappingESSourceXML::TotemDAQMappingESSourceXML(const edm::ParameterSet &conf)
: verbosity(conf.getUntrackedParameter<unsigned int>("verbosity", 0)),
subSystemName(conf.getUntrackedParameter<string>("subSystem")),
sampicSubDetId(conf.getUntrackedParameter<unsigned int>("sampicSubDetId",5)),
currentBlock(0),
currentBlockValid(false) {
for (const auto &it : conf.getParameter<vector<ParameterSet>>("configuration")) {
Expand Down Expand Up @@ -760,7 +764,7 @@ void TotemDAQMappingESSourceXML::ParseTreeTotemTiming(ParseType pType,
RpNum,
0,
TotemTimingDetId::ID_NOT_SET,
TotemTimingDetId::sdTimingDiamond); //Dynamical: it is encoded in the frame
sampicSubDetId); //Dynamical: it is encoded in the frame

mapping->insert(framepos, vfatInfo);

Expand Down
2 changes: 2 additions & 0 deletions EventFilter/CTPPSRawToDigi/python/ctppsRawToDigi_cff.py
Expand Up @@ -104,6 +104,7 @@
totemDAQMappingESSourceXML_TotemTiming = cms.ESSource("TotemDAQMappingESSourceXML",
verbosity = cms.untracked.uint32(10),
subSystem = cms.untracked.string("TotemTiming"),
sampicSubDetId = cms.untracked.uint32(5),
configuration = cms.VPSet(
# 2017, before detector inserted in DAQ
cms.PSet(
Expand Down Expand Up @@ -137,6 +138,7 @@
from Configuration.Eras.Modifier_ctpps_2017_cff import ctpps_2017
from Configuration.Eras.Modifier_ctpps_2018_cff import ctpps_2018
(ctpps_2016 | ctpps_2017 | ctpps_2018).toModify(ctppsPixelDigis, isRun3 = False )
(ctpps_2016 | ctpps_2017 | ctpps_2018).toModify(totemDAQMappingESSourceXML_TotemTiming, sampicSubDetId = cms.untracked.uint32(6) )

# raw-to-digi task and sequence
ctppsRawToDigiTask = cms.Task(
Expand Down

0 comments on commit dcbd1d4

Please sign in to comment.