7 : hitReadoutName_(
"CastorHits"),
10 castorAnalyzer_(
"CASTOR", 1., &simParameterMap_, &castorFilter_),
11 castorRecHitCollectionTag_(conf.getParameter<
edm::InputTag>(
"castorRecHitCollectionTag")) {}
14 template <
class Collection>
19 edm::LogError(
"CastorHitAnalyzer") <<
"Could not find Castor RecHitContainer ";
21 for (
unsigned i = 0;
i < recHits->size(); ++
i) {
22 analyzer.
analyze((*recHits)[
i].
id().rawId(), (*recHits)[
i].energy());
30 e.
getByLabel(
"mix",
"g4SimHitsCastorFI", castorcf);
CastorHitAnalyzer(edm::ParameterSet const &conf)
void analyze(int detId, double recEnergy)
to be called for each RecHit
void analyze(edm::Event const &e, edm::EventSetup const &c) override
edm::InputTag castorRecHitCollectionTag_
void fillHits(MixCollection< PCaloHit > &hits)
should be called each event
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
CaloHitAnalyzer castorAnalyzer_
T const * product() const