8 : hitReadoutName_(
"CastorHits"),
11 castorAnalyzer_(
"CASTOR", 1., &simParameterMap_, &castorFilter_),
12 castorRecHitCollectionTag_(conf.getParameter<edm::
InputTag>(
"castorRecHitCollectionTag"))
17 namespace CastorHitAnalyzerImpl {
18 template<
class Collection>
23 edm::LogError(
"CastorHitAnalyzer") <<
"Could not find Castor RecHitContainer ";
25 for(
unsigned i = 0 ;
i < recHits->size(); ++
i) {
35 e.
getByLabel(
"mix",
"g4SimHitsCastorFI", castorcf);
CastorHitAnalyzer(edm::ParameterSet const &conf)
void analyze(int detId, double recEnergy)
to be called for each RecHit
virtual void analyze(edm::Event const &e, edm::EventSetup const &c)
void analyze(edm::Event const &e, CaloHitAnalyzer &analyzer, edm::InputTag &tag)
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