◆ MTDUncalibratedRecHitProducer()
MTDUncalibratedRecHitProducer::MTDUncalibratedRecHitProducer |
( |
const edm::ParameterSet & |
ps | ) |
|
|
explicit |
◆ ~MTDUncalibratedRecHitProducer()
MTDUncalibratedRecHitProducer::~MTDUncalibratedRecHitProducer |
( |
| ) |
|
|
override |
◆ produce()
Definition at line 54 of file MTDUncalibratedRecHitProducer.cc.
References barrel_, endcap_, ftlbDigis_, ftlbInstance_, ftleDigis_, ftleInstance_, edm::Event::getByToken(), edm::HandleBase::isValid(), eostools::move(), edm::Event::put(), and edm::SortedCollection< T, SORT >::size().
63 auto barrelRechits = std::make_unique<FTLUncalibratedRecHitCollection>();
64 auto endcapRechits = std::make_unique<FTLUncalibratedRecHitCollection>();
68 if (hBarrel.isValid()) {
69 barrelRechits->reserve(hBarrel->size() / 2);
70 for (
const auto& digi : *hBarrel) {
71 barrelRechits->emplace_back(
barrel_->makeRecHit(digi));
74 edm::LogWarning(
"MTDReco") <<
"MTDUncalibratedRecHitProducer: Missing BTL Digi Collection";
80 endcapRechits->reserve(hEndcap->
size() / 2);
81 for (
const auto& digi : *hEndcap) {
82 endcapRechits->emplace_back(
endcap_->makeRecHit(digi));
85 edm::LogWarning(
"MTDReco") <<
"MTDUncalibratedRecHitProducer: Missing ETL Digi Collection";
const edm::EDGetTokenT< ETLDigiCollection > ftleDigis_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
const std::string ftlbInstance_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::unique_ptr< ETLUncalibratedRecHitAlgoBase > endcap_
const std::string ftleInstance_
const edm::EDGetTokenT< BTLDigiCollection > ftlbDigis_
std::unique_ptr< BTLUncalibratedRecHitAlgoBase > barrel_
Log< level::Warning, false > LogWarning
◆ barrel_
◆ endcap_
◆ ftlbDigis_
◆ ftlbInstance_
const std::string MTDUncalibratedRecHitProducer::ftlbInstance_ |
|
private |
◆ ftleDigis_
◆ ftleInstance_
const std::string MTDUncalibratedRecHitProducer::ftleInstance_ |
|
private |