CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
TotemTimingRecHitProducer Class Reference
Inheritance diagram for TotemTimingRecHitProducer:
edm::stream::EDProducer<>

Public Member Functions

 TotemTimingRecHitProducer (const edm::ParameterSet &)
 
 ~TotemTimingRecHitProducer () override
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
bool hasAbilityToProduceInLumis () const final
 
bool hasAbilityToProduceInRuns () 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_
 
edm::EDGetTokenT< edm::DetSetVector< TotemTimingDigi > > digiToken_
 

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

Definition at line 33 of file TotemTimingRecHitProducer.cc.

Constructor & Destructor Documentation

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

Definition at line 49 of file TotemTimingRecHitProducer.cc.

49  :
50  digiToken_( consumes<edm::DetSetVector<TotemTimingDigi> >( iConfig.getParameter<edm::InputTag>( "digiTag" ) ) ),
51  algo_( iConfig )
52 {
53  produces<edm::DetSetVector<TotemTimingRecHit> >();
54 }
T getParameter(std::string const &) const
TotemTimingRecHitProducerAlgorithm algo_
edm::EDGetTokenT< edm::DetSetVector< TotemTimingDigi > > digiToken_
TotemTimingRecHitProducer::~TotemTimingRecHitProducer ( )
override

Definition at line 56 of file TotemTimingRecHitProducer.cc.

57 {}

Member Function Documentation

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

Definition at line 79 of file TotemTimingRecHitProducer.cc.

References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), DEFINE_FWK_MODULE, MillePedeFileConverter_cfg::e, and AlCaHLTBitMon_QueryRunRegistry::string.

80 {
82 
83  desc.add<edm::InputTag>( "digiTag", edm::InputTag( "totemTimingRawToDigi", "TotemTiming" ) )
84  ->setComment( "input digis collection to retrieve" );
85  desc.add<std::string>( "calibrationFile", "/dev/null" )
86  ->setComment( "file with SAMPIC calibrations, ADC and INL; if /dev/null or corrupted, no calibration will be applied" );
87  desc.add<int>( "baselinePoints", 8 )
88  ->setComment( "number of points to be used for the baseline" );
89  desc.add<double>( "saturationLimit", 0.85 )
90  ->setComment( "all signals with max > saturationLimit will be considered as saturated" );
91  desc.add<double>( "cfdFraction", 0.5 )
92  ->setComment( "fraction of the CFD" );
93  desc.add<int>( "smoothingPoints", 20 )
94  ->setComment( "number of points to be used for the smoothing using sinc (lowpass)" );
95  desc.add<double>( "lowPassFrequency", 0 )
96  ->setComment( "Frequency (in GHz) for CFD smoothing, 0 for disabling the filter" );
97  desc.add<double>( "hysteresis", 5e-3 )
98  ->setComment( "hysteresis of the discriminator" );
99 
100 
101  descr.add( "totemTimingRecHits", desc );
102 }
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void TotemTimingRecHitProducer::produce ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivate

Definition at line 60 of file TotemTimingRecHitProducer.cc.

References algo_, TotemTimingRecHitProducerAlgorithm::build(), digiToken_, geometry, edm::EventSetup::get(), edm::Event::getByToken(), eostools::move(), edm::ESHandle< T >::product(), and edm::Event::put().

61 {
62  std::unique_ptr<edm::DetSetVector<TotemTimingRecHit> > pOut( new edm::DetSetVector<TotemTimingRecHit> );
63 
64  // get the digi collection
66  iEvent.getByToken( digiToken_, digis );
67 
68  // get the geometry
70  iSetup.get<VeryForwardRealGeometryRecord>().get( geometry );
71 
72  // produce the rechits collection
73  algo_.build( geometry.product(), *( digis ), *( pOut ) );
74 
75  iEvent.put( std::move( pOut ) );
76 }
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:137
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:579
Event setup record containing the real (actual) geometry information.
ESHandle< TrackerGeometry > geometry
TotemTimingRecHitProducerAlgorithm algo_
T get() const
Definition: EventSetup.h:63
void build(const CTPPSGeometry *, const edm::DetSetVector< TotemTimingDigi > &, edm::DetSetVector< TotemTimingRecHit > &)
edm::EDGetTokenT< edm::DetSetVector< TotemTimingDigi > > digiToken_
T const * product() const
Definition: ESHandle.h:86
def move(src, dest)
Definition: eostools.py:510

Member Data Documentation

TotemTimingRecHitProducerAlgorithm TotemTimingRecHitProducer::algo_
private

Definition at line 46 of file TotemTimingRecHitProducer.cc.

Referenced by produce().

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

Definition at line 44 of file TotemTimingRecHitProducer.cc.

Referenced by produce().