69 if ( ! tpIn.isValid() ) {
82 chit = chStatus->find(
id );
84 if ( chit != chStatus->end() ) {
85 code = (*chit).getStatusCode() & 0x001F;
93 edm::LogError(
"EcalDetIdToBeRecoveredProducer") <<
"No channel status found for xtal "
95 <<
"! something wrong with EcalChannelStatus in your DB? ";
107 chit = chStatus->find(
id );
109 if ( chit != chStatus->end() ) {
110 code = (*chit).getStatusCode() & 0x001F;
118 edm::LogError(
"EcalDetIdToBeRecoveredProducer") <<
"No channel status found for xtal "
120 <<
"! something wrong with EcalChannelStatus in your DB? ";
126 LogInfo(
"EcalTPSkimmer") <<
"total # of TP inserted: " << tpOut->size();
141 if ( tpIt != tpIn->end() ) {
static EEDetId detIdFromDenseIndex(uint32_t din)
T getParameter(std::string const &) const
std::vector< uint32_t > chStatusToSelectTP_
#define DEFINE_FWK_MODULE(type)
EcalTPSkimmer(const edm::ParameterSet &ps)
edm::InputTag tpInputCollection_
std::vector< T >::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)
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_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
std::vector< Item >::const_iterator const_iterator
bool alreadyInserted(EcalTrigTowerDetId ttId)
void insertTP(EcalTrigTowerDetId ttId, edm::Handle< EcalTrigPrimDigiCollection > &in, EcalTrigPrimDigiCollection &out)
unsigned ttId(const DetId &)
static bool validDenseIndex(uint32_t din)
virtual void produce(edm::Event &evt, const edm::EventSetup &es)
static bool validDenseIndex(uint32_t din)