Go to the documentation of this file.
29 ttMapToken_ = esConsumes<EcalTrigTowerConstituentsMap, IdealGeometryRecord>();
31 chStatusToken_ = esConsumes<EcalChannelStatus, EcalChannelStatusRcd>();
46 auto tpOut = std::make_unique<EcalTrigPrimDigiCollection>();
65 chit = chStatus->
find(
id);
67 if (chit != chStatus->
end()) {
68 code = (*chit).getStatusCode();
77 edm::LogError(
"EcalDetIdToBeRecoveredProducer") <<
"No channel status found for xtal " <<
id.rawId()
78 <<
"! something wrong with EcalChannelStatus in your DB? ";
90 chit = chStatus->
find(
id);
92 if (chit != chStatus->
end()) {
93 code = (*chit).getStatusCode();
102 edm::LogError(
"EcalDetIdToBeRecoveredProducer") <<
"No channel status found for xtal " <<
id.rawId()
103 <<
"! something wrong with EcalChannelStatus in your DB? ";
109 LogInfo(
"EcalTPSkimmer") <<
"total # of TP inserted: " << tpOut->size();
120 if (tpIt != tpIn->
end()) {
const_iterator end() const
std::vector< T >::const_iterator const_iterator
unsigned ttId(DetId const &, EcalElectronicsMapping const *)
edm::EDGetTokenT< EcalTrigPrimDigiCollection > tpInputToken_
Log< level::Info, false > LogInfo
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
void push_back(T const &t)
edm::ESGetToken< EcalTrigTowerConstituentsMap, IdealGeometryRecord > ttMapToken_
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.
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Log< level::Error, false > LogError
EcalTPSkimmer(const edm::ParameterSet &ps)
edm::ESGetToken< EcalChannelStatus, EcalChannelStatusRcd > chStatusToken_
EcalTrigTowerDetId towerOf(const DetId &id) const
Get the tower id for this det id (or null if not known)
iterator find(key_type k)
std::vector< uint32_t > chStatusToSelectTP_
T getParameter(std::string const &) const
std::vector< Item >::const_iterator const_iterator
void produce(edm::Event &evt, const edm::EventSetup &es) override
std::set< EcalTrigTowerDetId > insertedTP_