produce a subset of TP information
- Author
- Federico Ferri, CEA/Saclay Irfu/SPP
Definition at line 22 of file EcalTPSkimmer.h.
Definition at line 40 of file EcalTPSkimmer.cc.
References alreadyInserted(), chStatusToSelectTP_, EBDetId::detIdFromDenseIndex(), EEDetId::detIdFromDenseIndex(), doBarrel_, doEndcap_, EcalCondObjectContainer< T >::end(), spr::find(), EcalCondObjectContainer< T >::find(), edm::EventSetup::get(), edm::Event::getByToken(), mps_fire::i, insertedTP_, insertTP(), EBDetId::kSizeForDenseIndexing, EEDetId::kSizeForDenseIndexing, eostools::move(), edm::Event::put(), skipModule_, hgcalTowerProducer_cfi::tower, EcalTrigTowerConstituentsMap::towerOf(), tpInputToken_, tpOutputCollection_, ttMap_, EBDetId::validDenseIndex(), and EEDetId::validDenseIndex().
48 auto tpOut = std::make_unique<EcalTrigPrimDigiCollection>();
68 chit = chStatus->
find(
id);
70 if (chit != chStatus->
end()) {
71 code = (*chit).getStatusCode();
80 edm::LogError(
"EcalDetIdToBeRecoveredProducer") <<
"No channel status found for xtal " <<
id.rawId()
81 <<
"! something wrong with EcalChannelStatus in your DB? ";
93 chit = chStatus->
find(
id);
95 if (chit != chStatus->
end()) {
96 code = (*chit).getStatusCode();
105 edm::LogError(
"EcalDetIdToBeRecoveredProducer") <<
"No channel status found for xtal " <<
id.rawId()
106 <<
"! something wrong with EcalChannelStatus in your DB? ";
112 LogInfo(
"EcalTPSkimmer") <<
"total # of TP inserted: " << tpOut->size();
static EEDetId detIdFromDenseIndex(uint32_t din)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
std::vector< uint32_t > chStatusToSelectTP_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::set< EcalTrigTowerDetId > insertedTP_
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
EcalTrigTowerDetId towerOf(const DetId &id) const
Get the tower id for this det id (or null if not known)
static EBDetId detIdFromDenseIndex(uint32_t di)
edm::ESHandle< EcalTrigTowerConstituentsMap > ttMap_
std::string tpOutputCollection_
std::vector< Item >::const_iterator const_iterator
bool alreadyInserted(EcalTrigTowerDetId ttId)
void insertTP(EcalTrigTowerDetId ttId, edm::Handle< EcalTrigPrimDigiCollection > &in, EcalTrigPrimDigiCollection &out)
static bool validDenseIndex(uint32_t din)
edm::EDGetTokenT< EcalTrigPrimDigiCollection > tpInputToken_
const_iterator find(uint32_t rawId) const
const_iterator end() const
static bool validDenseIndex(uint32_t din)