34 : hitReadoutName_(
"CastorHits"),
37 castorAnalyzer_(
"CASTOR", 1., &simParameterMap_, &castorFilter_),
38 castorRecHitCollectionTag_(conf.getParameter<edm::
InputTag>(
"castorRecHitCollectionTag")) {}
40 namespace CastorHitAnalyzerImpl {
41 template <
class Collection>
46 edm::LogError(
"CastorHitAnalyzer") <<
"Could not find Castor RecHitContainer ";
48 for (
unsigned i = 0;
i < recHits->size(); ++
i) {
57 e.
getByLabel(
"mix",
"g4SimHitsCastorFI", castorcf);
CastorHitAnalyzer(edm::ParameterSet const &conf)
const edm::EventSetup & c
void analyze(int detId, double recEnergy)
to be called for each RecHit
#define DEFINE_FWK_MODULE(type)
Log< level::Error, false > LogError
CastorHitFilter castorFilter_
void analyze(edm::Event const &e, edm::EventSetup const &c) override
void analyze(edm::Event const &e, CaloHitAnalyzer &analyzer, edm::InputTag &tag)
edm::InputTag castorRecHitCollectionTag_
void fillHits(MixCollection< PCaloHit > &hits)
should be called each event
CastorSimParameterMap simParameterMap_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
CaloHitAnalyzer castorAnalyzer_
std::string hitReadoutName_
T const * product() const