CMS 3D CMS Logo

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

#include <CRackSeedGenerator.h>

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

Public Member Functions

 CRackSeedGenerator (const edm::ParameterSet &conf)
 
void produce (edm::Event &e, const edm::EventSetup &c) override
 
 ~CRackSeedGenerator () override
 
- 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
 

Private Attributes

SeedGeneratorForCRack cosmic_seed
 
edm::EDGetTokenT< SiStripMatchedRecHit2DCollectionmatchedrecHitsToken_
 
edm::EDGetTokenT< SiStripRecHit2DCollectionrphirecHitsToken_
 
edm::EDGetTokenT< SiStripRecHit2DCollectionstereorecHitsToken_
 

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

Definition at line 12 of file CRackSeedGenerator.h.

Constructor & Destructor Documentation

◆ CRackSeedGenerator()

CRackSeedGenerator::CRackSeedGenerator ( const edm::ParameterSet conf)
explicit

Definition at line 17 of file CRackSeedGenerator.cc.

References edm::ParameterSet::getParameter(), matchedrecHitsToken_, rphirecHitsToken_, and stereorecHitsToken_.

17  : cosmic_seed(conf, consumesCollector()) {
18  edm::LogInfo("CRackSeedGenerator") << "Enter the CRackSeedGenerator";
19  matchedrecHitsToken_ = consumes<SiStripMatchedRecHit2DCollection>(conf.getParameter<edm::InputTag>("matchedRecHits"));
20  rphirecHitsToken_ = consumes<SiStripRecHit2DCollection>(conf.getParameter<edm::InputTag>("rphirecHits"));
21  stereorecHitsToken_ = consumes<SiStripRecHit2DCollection>(conf.getParameter<edm::InputTag>("stereorecHits"));
22 
23  produces<TrajectorySeedCollection>();
24 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
edm::EDGetTokenT< SiStripRecHit2DCollection > rphirecHitsToken_
SeedGeneratorForCRack cosmic_seed
Log< level::Info, false > LogInfo
edm::EDGetTokenT< SiStripMatchedRecHit2DCollection > matchedrecHitsToken_
edm::EDGetTokenT< SiStripRecHit2DCollection > stereorecHitsToken_

◆ ~CRackSeedGenerator()

CRackSeedGenerator::~CRackSeedGenerator ( )
override

Definition at line 27 of file CRackSeedGenerator.cc.

27 {}

Member Function Documentation

◆ produce()

void CRackSeedGenerator::produce ( edm::Event e,
const edm::EventSetup c 
)
override

Definition at line 30 of file CRackSeedGenerator.cc.

References cosmic_seed, makeMEIFBenchmarkPlots::ev, SeedGeneratorForCRack::init(), LogDebug, AlignmentTrackSelector_cfi::matchedrecHits, matchedrecHitsToken_, eostools::move(), convertSQLitetoXML_cfg::output, AlignmentTrackSelector_cfi::rphirecHits, rphirecHitsToken_, SeedGeneratorForCRack::run(), RecoTrackerTopBottom_cff::stereorecHits, and stereorecHitsToken_.

30  {
31  // get Inputs
33  ev.getByToken(rphirecHitsToken_, rphirecHits);
38 
39  auto output = std::make_unique<TrajectorySeedCollection>();
40  //
41 
43 
44  // invoke the seed finding algorithm
45  cosmic_seed.run(*output, es);
46 
47  // write output to file
48  LogDebug("CRackSeedGenerator") << " number of seeds = " << output->size();
49 
50  ev.put(std::move(output));
51 }
edm::EDGetTokenT< SiStripRecHit2DCollection > rphirecHitsToken_
SeedGeneratorForCRack cosmic_seed
void init(const SiStripRecHit2DCollection &collstereo, const SiStripRecHit2DCollection &collrphi, const SiStripMatchedRecHit2DCollection &collmatched, const edm::EventSetup &c)
edm::EDGetTokenT< SiStripMatchedRecHit2DCollection > matchedrecHitsToken_
void run(TrajectorySeedCollection &, const edm::EventSetup &c)
edm::EDGetTokenT< SiStripRecHit2DCollection > stereorecHitsToken_
def move(src, dest)
Definition: eostools.py:511
#define LogDebug(id)

Member Data Documentation

◆ cosmic_seed

SeedGeneratorForCRack CRackSeedGenerator::cosmic_seed
private

Definition at line 21 of file CRackSeedGenerator.h.

Referenced by produce().

◆ matchedrecHitsToken_

edm::EDGetTokenT<SiStripMatchedRecHit2DCollection> CRackSeedGenerator::matchedrecHitsToken_
private

Definition at line 22 of file CRackSeedGenerator.h.

Referenced by CRackSeedGenerator(), and produce().

◆ rphirecHitsToken_

edm::EDGetTokenT<SiStripRecHit2DCollection> CRackSeedGenerator::rphirecHitsToken_
private

Definition at line 23 of file CRackSeedGenerator.h.

Referenced by CRackSeedGenerator(), and produce().

◆ stereorecHitsToken_

edm::EDGetTokenT<SiStripRecHit2DCollection> CRackSeedGenerator::stereorecHitsToken_
private

Definition at line 24 of file CRackSeedGenerator.h.

Referenced by CRackSeedGenerator(), and produce().