CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
< SiStripMatchedRecHit2DCollection
matchedrecHitsToken_
 
edm::EDGetTokenT
< SiStripRecHit2DCollection
rphirecHitsToken_
 
edm::EDGetTokenT
< SiStripRecHit2DCollection
stereorecHitsToken_
 

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 ( 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 }
edm::EDGetTokenT< SiStripRecHit2DCollection > rphirecHitsToken_
SeedGeneratorForCRack cosmic_seed
Log< level::Info, false > LogInfo
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
edm::EDGetTokenT< SiStripMatchedRecHit2DCollection > matchedrecHitsToken_
edm::EDGetTokenT< SiStripRecHit2DCollection > stereorecHitsToken_
CRackSeedGenerator::~CRackSeedGenerator ( )
override

Definition at line 27 of file CRackSeedGenerator.cc.

27 {}

Member Function Documentation

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

Definition at line 30 of file CRackSeedGenerator.cc.

References cosmic_seed, edm::Event::getByToken(), SeedGeneratorForCRack::init(), LogDebug, matchedrecHitsToken_, eostools::move(), convertSQLitetoXML_cfg::output, edm::Event::put(), rphirecHitsToken_, SeedGeneratorForCRack::run(), and stereorecHitsToken_.

30  {
31  // get Inputs
33  ev.getByToken(rphirecHitsToken_, rphirecHits);
35  ev.getByToken(stereorecHitsToken_, stereorecHits);
37  ev.getByToken(matchedrecHitsToken_, matchedrecHits);
38 
39  auto output = std::make_unique<TrajectorySeedCollection>();
40  //
41 
42  cosmic_seed.init(*stereorecHits, *rphirecHits, *matchedrecHits, es);
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 }
bool ev
edm::EDGetTokenT< SiStripRecHit2DCollection > rphirecHitsToken_
def move
Definition: eostools.py:511
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_
#define LogDebug(id)

Member Data Documentation

SeedGeneratorForCRack CRackSeedGenerator::cosmic_seed
private

Definition at line 21 of file CRackSeedGenerator.h.

Referenced by produce().

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

Definition at line 22 of file CRackSeedGenerator.h.

Referenced by CRackSeedGenerator(), and produce().

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

Definition at line 23 of file CRackSeedGenerator.h.

Referenced by CRackSeedGenerator(), and produce().

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

Definition at line 24 of file CRackSeedGenerator.h.

Referenced by CRackSeedGenerator(), and produce().