CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
TotemTimingRecHitProducer Class Reference

TOTEM/PPS timing detectors digi-to-rechits conversion module. More...

Inheritance diagram for TotemTimingRecHitProducer:
edm::stream::EDProducer<>

Public Member Functions

 TotemTimingRecHitProducer (const edm::ParameterSet &)
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &)
 

Private Member Functions

void produce (edm::Event &, const edm::EventSetup &) override
 

Private Attributes

TotemTimingRecHitProducerAlgorithm algo_
 Digi-to-rechits transformation algorithm. More...
 
edm::ESWatcher< PPSTimingCalibrationRcdcalibWatcher_
 Timing calibration parameters watcher. More...
 
edm::EDGetTokenT< edm::DetSetVector< TotemTimingDigi > > digiToken_
 Input digi collection. More...
 
edm::ESGetToken< CTPPSGeometry, VeryForwardRealGeometryRecordgeometryToken_
 
edm::ESGetToken< PPSTimingCalibration, PPSTimingCalibrationRcdtimingCalibrationToken_
 EventSetup Tokens. More...
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer<>
using CacheTypes = CacheContexts< T... >
 
using GlobalCache = typename CacheTypes::GlobalCache
 
using HasAbility = AbilityChecker< T... >
 
using InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache
 
using LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache
 
using LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache >
 
using LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache
 
using RunCache = typename CacheTypes::RunCache
 
using RunContext = RunContextT< RunCache, GlobalCache >
 
using RunSummaryCache = typename CacheTypes::RunSummaryCache
 

Detailed Description

TOTEM/PPS timing detectors digi-to-rechits conversion module.

Definition at line 37 of file TotemTimingRecHitProducer.cc.

Constructor & Destructor Documentation

◆ TotemTimingRecHitProducer()

TotemTimingRecHitProducer::TotemTimingRecHitProducer ( const edm::ParameterSet iConfig)
explicit

Definition at line 57 of file TotemTimingRecHitProducer.cc.

59  timingCalibrationToken_(esConsumes<PPSTimingCalibration, PPSTimingCalibrationRcd>(
60  edm::ESInputTag(iConfig.getParameter<std::string>("timingCalibrationTag")))),
61  geometryToken_(esConsumes<CTPPSGeometry, VeryForwardRealGeometryRecord>()),
62  algo_(iConfig) {
63  produces<edm::DetSetVector<TotemTimingRecHit> >();
64 }

Member Function Documentation

◆ fillDescriptions()

void TotemTimingRecHitProducer::fillDescriptions ( edm::ConfigurationDescriptions descr)
static

Definition at line 91 of file TotemTimingRecHitProducer.cc.

91  {
93 
94  desc.add<edm::InputTag>("digiTag", edm::InputTag("totemTimingRawToDigi", "TotemTiming"))
95  ->setComment("input digis collection to retrieve");
96  desc.add<std::string>("timingCalibrationTag", "GlobalTag:TotemTimingCalibration")
97  ->setComment("input tag for timing calibrations retrieval");
98  desc.add<int>("baselinePoints", 8)->setComment("number of points to be used for the baseline");
99  desc.add<double>("saturationLimit", 0.85)
100  ->setComment("all signals with max > saturationLimit will be considered as saturated");
101  desc.add<double>("cfdFraction", 0.3)->setComment("fraction of the CFD");
102  desc.add<int>("smoothingPoints", 20)
103  ->setComment("number of points to be used for the smoothing using sinc (lowpass)");
104  desc.add<double>("lowPassFrequency", 0.7)
105  ->setComment("Frequency (in GHz) for CFD smoothing, 0 for disabling the filter");
106  desc.add<double>("hysteresis", 5.e-3)->setComment("hysteresis of the discriminator");
107  desc.add<bool>("mergeTimePeaks", true)->setComment("if time peaks schould be merged");
108 
109  descr.add("totemTimingRecHits", desc);
110 }

References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, HLT_FULL_cff::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.

◆ produce()

void TotemTimingRecHitProducer::produce ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivate

Definition at line 66 of file TotemTimingRecHitProducer.cc.

66  {
67  std::unique_ptr<edm::DetSetVector<TotemTimingRecHit> > pOut(new edm::DetSetVector<TotemTimingRecHit>);
68 
69  // get the digi collection
71  iEvent.getByToken(digiToken_, digis);
72 
73  // do not retrieve the calibration parameters if no digis were found
74  if (!digis->empty()) {
75  // check for timing calibration parameters update
76  if (calibWatcher_.check(iSetup)) {
78  algo_.setCalibration(*hTimingCalib);
79  }
80 
81  // get the geometry
83 
84  // produce the rechits collection
85  algo_.build(*geometry, *digis, *pOut);
86  }
87 
88  iEvent.put(std::move(pOut));
89 }

References algo_, TotemTimingRecHitProducerAlgorithm::build(), calibWatcher_, edm::ESWatcher< T >::check(), digiToken_, geometryToken_, edm::EventSetup::getHandle(), iEvent, eostools::move(), L1TrackObjectNtupleMaker_cfg::pOut, TotemTimingRecHitProducerAlgorithm::setCalibration(), and timingCalibrationToken_.

Member Data Documentation

◆ algo_

TotemTimingRecHitProducerAlgorithm TotemTimingRecHitProducer::algo_
private

Digi-to-rechits transformation algorithm.

Definition at line 58 of file TotemTimingRecHitProducer.cc.

Referenced by produce().

◆ calibWatcher_

edm::ESWatcher<PPSTimingCalibrationRcd> TotemTimingRecHitProducer::calibWatcher_
private

Timing calibration parameters watcher.

Definition at line 60 of file TotemTimingRecHitProducer.cc.

Referenced by produce().

◆ digiToken_

edm::EDGetTokenT<edm::DetSetVector<TotemTimingDigi> > TotemTimingRecHitProducer::digiToken_
private

Input digi collection.

Definition at line 53 of file TotemTimingRecHitProducer.cc.

Referenced by produce().

◆ geometryToken_

edm::ESGetToken<CTPPSGeometry, VeryForwardRealGeometryRecord> TotemTimingRecHitProducer::geometryToken_
private

Definition at line 56 of file TotemTimingRecHitProducer.cc.

Referenced by produce().

◆ timingCalibrationToken_

edm::ESGetToken<PPSTimingCalibration, PPSTimingCalibrationRcd> TotemTimingRecHitProducer::timingCalibrationToken_
private

EventSetup Tokens.

Definition at line 55 of file TotemTimingRecHitProducer.cc.

Referenced by produce().

edm::ESWatcher::check
bool check(const edm::EventSetup &iSetup)
Definition: ESWatcher.h:57
edm::DetSetVector
Definition: DetSetVector.h:61
edm::ESInputTag
Definition: ESInputTag.h:87
TotemTimingRecHitProducerAlgorithm::build
void build(const CTPPSGeometry &, const edm::DetSetVector< TotemTimingDigi > &, edm::DetSetVector< TotemTimingRecHit > &)
Definition: TotemTimingRecHitProducerAlgorithm.cc:36
geometry
Definition: geometry.py:1
HLT_FULL_cff.InputTag
InputTag
Definition: HLT_FULL_cff.py:89301
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
L1TrackObjectNtupleMaker_cfg.pOut
pOut
Definition: L1TrackObjectNtupleMaker_cfg.py:172
TotemTimingRecHitProducer::timingCalibrationToken_
edm::ESGetToken< PPSTimingCalibration, PPSTimingCalibrationRcd > timingCalibrationToken_
EventSetup Tokens.
Definition: TotemTimingRecHitProducer.cc:55
TotemTimingRecHitProducer::digiToken_
edm::EDGetTokenT< edm::DetSetVector< TotemTimingDigi > > digiToken_
Input digi collection.
Definition: TotemTimingRecHitProducer.cc:53
edm::Handle
Definition: AssociativeIterator.h:50
TotemTimingRecHitProducerAlgorithm::setCalibration
void setCalibration(const PPSTimingCalibration &)
Definition: TotemTimingRecHitProducerAlgorithm.cc:30
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
edm::ESHandle
Definition: DTSurvey.h:22
iEvent
int iEvent
Definition: GenABIO.cc:224
edm::EventSetup::getHandle
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Definition: EventSetup.h:155
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
TotemTimingRecHitProducer::geometryToken_
edm::ESGetToken< CTPPSGeometry, VeryForwardRealGeometryRecord > geometryToken_
Definition: TotemTimingRecHitProducer.cc:56
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
eostools.move
def move(src, dest)
Definition: eostools.py:511
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
TotemTimingRecHitProducer::calibWatcher_
edm::ESWatcher< PPSTimingCalibrationRcd > calibWatcher_
Timing calibration parameters watcher.
Definition: TotemTimingRecHitProducer.cc:60
TotemTimingRecHitProducer::algo_
TotemTimingRecHitProducerAlgorithm algo_
Digi-to-rechits transformation algorithm.
Definition: TotemTimingRecHitProducer.cc:58
edm::InputTag
Definition: InputTag.h:15