Go to the documentation of this file.
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();
123 if (tpIt != tpIn->
end()) {
const_iterator end() const
std::vector< T >::const_iterator const_iterator
edm::EDGetTokenT< EcalTrigPrimDigiCollection > tpInputToken_
unsigned ttId(DetId const &)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
void push_back(T const &t)
static EEDetId detIdFromDenseIndex(uint32_t din)
static bool validDenseIndex(uint32_t din)
#define DEFINE_FWK_MODULE(type)
~EcalTPSkimmer() override
bool alreadyInserted(EcalTrigTowerDetId ttId)
void insertTP(EcalTrigTowerDetId ttId, edm::Handle< EcalTrigPrimDigiCollection > &in, EcalTrigPrimDigiCollection &out)
const_iterator find(uint32_t rawId) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::ESHandle< EcalTrigTowerConstituentsMap > ttMap_
const_iterator end() const
std::string tpOutputCollection_
static EBDetId detIdFromDenseIndex(uint32_t di)
static bool validDenseIndex(uint32_t din)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
EcalTPSkimmer(const edm::ParameterSet &ps)
EcalTrigTowerDetId towerOf(const DetId &id) const
Get the tower id for this det id (or null if not known)
T getParameter(std::string const &) const
iterator find(key_type k)
std::vector< uint32_t > chStatusToSelectTP_
std::vector< Item >::const_iterator const_iterator
void produce(edm::Event &evt, const edm::EventSetup &es) override
std::set< EcalTrigTowerDetId > insertedTP_