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 hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () 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::ESInputTag timingCalibrationTag_
 Label to timing calibration tag. 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 36 of file TotemTimingRecHitProducer.cc.

Constructor & Destructor Documentation

◆ TotemTimingRecHitProducer()

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

Definition at line 55 of file TotemTimingRecHitProducer.cc.

57  timingCalibrationTag_(iConfig.getParameter<std::string>("timingCalibrationTag")),
58  algo_(iConfig) {
59  produces<edm::DetSetVector<TotemTimingRecHit> >();
60 }

Member Function Documentation

◆ fillDescriptions()

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

Definition at line 89 of file TotemTimingRecHitProducer.cc.

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

References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), HLT_2018_cff::InputTag, edm::ParameterDescriptionNode::setComment(), and AlCaHLTBitMon_QueryRunRegistry::string.

◆ produce()

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

Definition at line 62 of file TotemTimingRecHitProducer.cc.

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

References algo_, TotemTimingRecHitProducerAlgorithm::build(), calibWatcher_, edm::ESWatcher< T >::check(), digiToken_, geometry, edm::EventSetup::get(), get, iEvent, eostools::move(), TotemTimingRecHitProducerAlgorithm::setCalibration(), and timingCalibrationTag_.

Member Data Documentation

◆ algo_

TotemTimingRecHitProducerAlgorithm TotemTimingRecHitProducer::algo_
private

Digi-to-rechits transformation algorithm.

Definition at line 56 of file TotemTimingRecHitProducer.cc.

Referenced by produce().

◆ calibWatcher_

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

Timing calibration parameters watcher.

Definition at line 58 of file TotemTimingRecHitProducer.cc.

Referenced by produce().

◆ digiToken_

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

Input digi collection.

Definition at line 52 of file TotemTimingRecHitProducer.cc.

Referenced by produce().

◆ timingCalibrationTag_

edm::ESInputTag TotemTimingRecHitProducer::timingCalibrationTag_
private

Label to timing calibration tag.

Definition at line 54 of file TotemTimingRecHitProducer.cc.

Referenced by produce().

TotemTimingRecHitProducer::timingCalibrationTag_
edm::ESInputTag timingCalibrationTag_
Label to timing calibration tag.
Definition: TotemTimingRecHitProducer.cc:54
edm::ESWatcher::check
bool check(const edm::EventSetup &iSetup)
Definition: ESWatcher.h:52
VeryForwardRealGeometryRecord
Event setup record containing the real (actual) geometry information.
Definition: VeryForwardRealGeometryRecord.h:22
edm::DetSetVector
Definition: DetSetVector.h:61
geometry
ESHandle< TrackerGeometry > geometry
Definition: TkLasBeamFitter.cc:200
edm::ParameterSetDescription::add
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Definition: ParameterSetDescription.h:95
TotemTimingRecHitProducerAlgorithm::build
void build(const CTPPSGeometry &, const edm::DetSetVector< TotemTimingDigi > &, edm::DetSetVector< TotemTimingRecHit > &)
Definition: TotemTimingRecHitProducerAlgorithm.cc:34
geometry
Definition: geometry.py:1
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
TotemTimingRecHitProducer::digiToken_
edm::EDGetTokenT< edm::DetSetVector< TotemTimingDigi > > digiToken_
Input digi collection.
Definition: TotemTimingRecHitProducer.cc:52
edm::Handle
Definition: AssociativeIterator.h:50
TotemTimingRecHitProducerAlgorithm::setCalibration
void setCalibration(const PPSTimingCalibration &)
Definition: TotemTimingRecHitProducerAlgorithm.cc:28
edm::EventSetup::get
T get() const
Definition: EventSetup.h:73
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
HLT_2018_cff.InputTag
InputTag
Definition: HLT_2018_cff.py:79016
iEvent
int iEvent
Definition: GenABIO.cc:224
PPSTimingCalibrationRcd
EventSetup record for TOTEM/PPS timing calibration information.
Definition: PPSTimingCalibrationRcd.h:14
get
#define get
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
eostools.move
def move(src, dest)
Definition: eostools.py:511
TotemTimingRecHitProducer::calibWatcher_
edm::ESWatcher< PPSTimingCalibrationRcd > calibWatcher_
Timing calibration parameters watcher.
Definition: TotemTimingRecHitProducer.cc:58
edm::ParameterDescriptionNode::setComment
void setComment(std::string const &value)
Definition: ParameterDescriptionNode.cc:106
TotemTimingRecHitProducer::algo_
TotemTimingRecHitProducerAlgorithm algo_
Digi-to-rechits transformation algorithm.
Definition: TotemTimingRecHitProducer.cc:56
edm::InputTag
Definition: InputTag.h:15