74 chit = chStatus->find(
id );
76 if ( chit != chStatus->end() ) {
77 code = (*chit).getStatusCode();
85 edm::LogError(
"EcalDetIdToBeRecoveredProducer") <<
"No channel status found for xtal "
87 <<
"! something wrong with EcalChannelStatus in your DB? ";
99 chit = chStatus->find(
id );
101 if ( chit != chStatus->end() ) {
102 code = (*chit).getStatusCode() ;
110 edm::LogError(
"EcalDetIdToBeRecoveredProducer") <<
"No channel status found for xtal "
112 <<
"! something wrong with EcalChannelStatus in your DB? ";
118 LogInfo(
"EcalTPSkimmer") <<
"total # of TP inserted: " << tpOut->size();
133 if ( tpIt != tpIn->end() ) {
static EEDetId detIdFromDenseIndex(uint32_t din)
T getParameter(std::string const &) const
std::vector< uint32_t > chStatusToSelectTP_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
EcalTPSkimmer(const edm::ParameterSet &ps)
std::vector< EcalTriggerPrimitiveDigi >::const_iterator const_iterator
void push_back(T const &t)
std::set< EcalTrigTowerDetId > insertedTP_
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
unsigned ttId(DetId const &)
static EBDetId detIdFromDenseIndex(uint32_t di)
edm::ESHandle< EcalTrigTowerConstituentsMap > ttMap_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
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_
virtual void produce(edm::Event &evt, const edm::EventSetup &es)
static bool validDenseIndex(uint32_t din)