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
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 

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<>
typedef CacheContexts< T... > CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T... > HasAbility
 
typedef CacheTypes::LuminosityBlockCache LuminosityBlockCache
 
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCacheLuminosityBlockContext
 
typedef CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache, GlobalCacheRunContext
 
typedef CacheTypes::RunSummaryCache 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(), 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:52
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:89281
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
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
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
iEvent
int iEvent
Definition: GenABIO.cc:224
edm::EventSetup::getHandle
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Definition: EventSetup.h:155
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