doesn't have to be a producer. Can act as an analyzer, too. More...
#include <SubsystemNeutronWriter.h>
Public Member Functions | |
virtual bool | accept (const edm::PSimHitContainer &cluster) const =0 |
decides whether this cluster is good enough to be included More... | |
virtual int | chamberId (int globalDetId) const =0 |
virtual int | chamberType (int globalDetId) const =0 |
void | initialize (int chamberType) |
good practice to do once for each chamber type More... | |
virtual int | localDetId (int globalDetId) const =0 |
void | printStats () |
void | produce (edm::Event &e, edm::EventSetup const &c) override |
SubsystemNeutronWriter (edm::ParameterSet const &pset) | |
~SubsystemNeutronWriter () override | |
destructor prints statistics on number of events written More... | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
EDProducer (const EDProducer &)=delete | |
bool | hasAbilityToProduceInBeginLumis () const final |
bool | hasAbilityToProduceInBeginProcessBlocks () const final |
bool | hasAbilityToProduceInBeginRuns () const final |
bool | hasAbilityToProduceInEndLumis () const final |
bool | hasAbilityToProduceInEndProcessBlocks () const final |
bool | hasAbilityToProduceInEndRuns () const final |
const EDProducer & | operator= (const EDProducer &)=delete |
Protected Member Functions | |
void | adjust (PSimHit &h, float timeOffset, float smearing) |
helper to add time offsets and local det ID More... | |
void | updateCount (int chamberType) |
updates the counter More... | |
void | writeCluster (int chamberType, const edm::PSimHitContainer &cluster) |
virtual void | writeHits (int chamberType, edm::PSimHitContainer &chamberHits, CLHEP::HepRandomEngine *) |
Private Attributes | |
const edm::EDGetTokenT< edm::PSimHitContainer > | hitToken_ |
bool | initialized |
std::map< int, int > | theCountPerChamberType |
NeutronWriter * | theHitWriter |
const edm::InputTag | theInputTag |
const double | theNeutronTimeCut |
int | theNEvents |
const double | theT0 |
const double | theTimeWindow |
bool | useLocalDetId_ |
bool | useRandFlat |
Additional Inherited Members | |
Public Types inherited from edm::stream::EDProducer<> | |
using | CacheTypes = CacheContexts< T... > |
using | GlobalCache = typename CacheTypes::GlobalCache |
using | HasAbility = AbilityChecker< T... > |
using | InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache |
using | LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache |
using | LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > |
using | LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache |
using | RunCache = typename CacheTypes::RunCache |
using | RunContext = RunContextT< RunCache, GlobalCache > |
using | RunSummaryCache = typename CacheTypes::RunSummaryCache |
doesn't have to be a producer. Can act as an analyzer, too.
Definition at line 28 of file SubsystemNeutronWriter.h.
|
explicit |
Definition at line 24 of file SubsystemNeutronWriter.cc.
References Exception, edm::Service< T >::isAvailable(), muonDTDigis_cfi::pset, theHitWriter, useLocalDetId_, useRandFlat, and convertToRaw::writer.
|
override |
destructor prints statistics on number of events written
Definition at line 60 of file SubsystemNeutronWriter.cc.
References printStats(), and theHitWriter.
|
pure virtual |
decides whether this cluster is good enough to be included
Implemented in CSCNeutronWriter, RPCNeutronWriter, and DTNeutronWriter.
Referenced by esMonitoring.FDJsonServer::handle_accept(), and writeCluster().
|
protected |
helper to add time offsets and local det ID
Definition at line 153 of file SubsystemNeutronWriter.cc.
References hcalRecHitTable_cff::detId, h, localDetId(), simBeamSpotPI::timeOffset, and useLocalDetId_.
Referenced by writeHits().
|
pure virtual |
Implemented in CSCNeutronWriter, RPCNeutronWriter, and DTNeutronWriter.
Referenced by produce().
|
pure virtual |
Implemented in CSCNeutronWriter, RPCNeutronWriter, and DTNeutronWriter.
Referenced by initialize(), produce(), updateCount(), writeCluster(), and writeHits().
void SubsystemNeutronWriter::initialize | ( | int | chamberType | ) |
good practice to do once for each chamber type
Definition at line 101 of file SubsystemNeutronWriter.cc.
References chamberType(), NeutronWriter::initialize(), and theHitWriter.
Referenced by CSCNeutronWriter::CSCNeutronWriter().
|
pure virtual |
Implemented in CSCNeutronWriter, RPCNeutronWriter, and DTNeutronWriter.
Referenced by adjust().
void SubsystemNeutronWriter::printStats | ( | ) |
Definition at line 65 of file SubsystemNeutronWriter.cc.
References theCountPerChamberType, and theNEvents.
Referenced by ~SubsystemNeutronWriter().
|
override |
Definition at line 74 of file SubsystemNeutronWriter.cc.
References NeutronWriter::beginEvent(), DummyCfis::c, chamberId(), chamberType(), MillePedeFileConverter_cfg::e, NeutronWriter::endEvent(), edm::RandomNumberGenerator::getEngine(), hfClusterShapes_cfi::hits, hitToken_, theHitWriter, theNEvents, useRandFlat, and writeHits().
|
protected |
updates the counter
Definition at line 172 of file SubsystemNeutronWriter.cc.
References chamberType(), mps_splice::entry, and theCountPerChamberType.
Referenced by writeCluster().
|
protected |
Definition at line 146 of file SubsystemNeutronWriter.cc.
References accept(), chamberType(), theHitWriter, updateCount(), and NeutronWriter::writeCluster().
Referenced by writeHits().
|
protectedvirtual |
Definition at line 107 of file SubsystemNeutronWriter.cc.
References adjust(), chamberType(), mps_fire::i, LogDebug, jetUpdater_cfi::sort, beamSpotPI::startTime, theNeutronTimeCut, theT0, theTimeWindow, useRandFlat, and writeCluster().
Referenced by produce().
|
private |
Definition at line 69 of file SubsystemNeutronWriter.h.
Referenced by produce().
|
private |
Definition at line 71 of file SubsystemNeutronWriter.h.
|
private |
Definition at line 74 of file SubsystemNeutronWriter.h.
Referenced by printStats(), and updateCount().
|
private |
Definition at line 63 of file SubsystemNeutronWriter.h.
Referenced by initialize(), produce(), SubsystemNeutronWriter(), writeCluster(), and ~SubsystemNeutronWriter().
|
private |
Definition at line 65 of file SubsystemNeutronWriter.h.
|
private |
Definition at line 66 of file SubsystemNeutronWriter.h.
Referenced by writeHits().
|
private |
Definition at line 70 of file SubsystemNeutronWriter.h.
Referenced by printStats(), and produce().
|
private |
Definition at line 68 of file SubsystemNeutronWriter.h.
Referenced by writeHits().
|
private |
Definition at line 67 of file SubsystemNeutronWriter.h.
Referenced by writeHits().
|
private |
Definition at line 73 of file SubsystemNeutronWriter.h.
Referenced by adjust(), and SubsystemNeutronWriter().
|
private |
Definition at line 64 of file SubsystemNeutronWriter.h.
Referenced by produce(), SubsystemNeutronWriter(), and writeHits().