Go to the documentation of this file. 1 #ifndef SubsystemNeutronWriter_h
2 #define SubsystemNeutronWriter_h
22 class HepRandomEngine;
39 virtual int localDetId(
int globalDetId)
const = 0;
43 virtual int chamberId(
int globalDetId)
const = 0;
void initialize(int chamberType)
good practice to do once for each chamber type
~SubsystemNeutronWriter() override
destructor prints statistics on number of events written
virtual int localDetId(int globalDetId) const =0
void writeCluster(int chamberType, const edm::PSimHitContainer &cluster)
virtual int chamberId(int globalDetId) const =0
virtual bool accept(const edm::PSimHitContainer &cluster) const =0
decides whether this cluster is good enough to be included
virtual int chamberType(int globalDetId) const =0
void updateCount(int chamberType)
updates the counter
virtual void writeHits(int chamberType, edm::PSimHitContainer &chamberHits, CLHEP::HepRandomEngine *)
SubsystemNeutronWriter(edm::ParameterSet const &pset)
void produce(edm::Event &e, edm::EventSetup const &c) override
std::map< int, int > theCountPerChamberType
edm::InputTag theInputTag
doesn't have to be a producer. Can act as an analyzer, too.
NeutronWriter * theHitWriter
std::vector< PSimHit > PSimHitContainer
void adjust(PSimHit &h, float timeOffset, float smearing)
helper to add time offsets and local det ID