#include <SubsystemNeutronReader.h>
Public Member Functions | |
void | clear () |
void | generateChamberNoise (int chamberType, int chamberIndex, edm::PSimHitContainer &result, CLHEP::HepRandomEngine *) |
SubsystemNeutronReader (const edm::ParameterSet &pset) | |
virtual | ~SubsystemNeutronReader () |
Protected Member Functions | |
virtual int | detId (int chamberIndex, int localDetId)=0 |
Private Attributes | |
std::vector< int > | theChambersDone |
just makes sure chambers aren't done twice More... | |
float | theEndTime |
std::vector< double > | theEventOccupancy |
float | theEventsInWindow |
how many collsions happened between theStartTime and theEndTime More... | |
NeutronReader * | theHitReader |
float | theLuminosity |
in units of 10**34, set by Muon:NeutronLuminosity More... | |
float | theStartTime |
Definition at line 20 of file SubsystemNeutronReader.h.
SubsystemNeutronReader::SubsystemNeutronReader | ( | const edm::ParameterSet & | pset | ) |
the hits will be distributed flat in time between startTime and endTime eventOccupancy is the expected chamber occupancy from a single min bias event for each chamber type
Definition at line 13 of file SubsystemNeutronReader.cc.
References edm::ParameterSet::getParameter(), input, createfilelist::int, matplotRender::reader, theEndTime, theEventsInWindow, theHitReader, theLuminosity, and theStartTime.
|
virtual |
Definition at line 37 of file SubsystemNeutronReader.cc.
References theHitReader.
|
inline |
Definition at line 34 of file SubsystemNeutronReader.h.
|
protectedpure virtual |
detector-specific way to get the global detector ID, given the local one.
Implemented in CSCNeutronReader.
Referenced by generateChamberNoise().
void SubsystemNeutronReader::generateChamberNoise | ( | int | chamberType, |
int | chamberIndex, | ||
edm::PSimHitContainer & | result, | ||
CLHEP::HepRandomEngine * | engine | ||
) |
this class makes sure the same chamberIndex isn't called twice for an event
Definition at line 43 of file SubsystemNeutronReader.cc.
References detId(), PSimHit::detUnitId(), PSimHit::energyLoss(), PSimHit::entryPoint(), PSimHit::exitPoint(), spr::find(), mps_fire::i, PSimHit::pabs(), PSimHit::particleType(), PSimHit::phiAtEntry(), PSimHit::processType(), NeutronReader::readNextEvent(), theChambersDone, theEndTime, theEventOccupancy, theEventsInWindow, theHitReader, theStartTime, PSimHit::thetaAtEntry(), hgcalLayerClusters_cff::timeOffset, PSimHit::tof(), and PSimHit::trackId().
Referenced by CSCNeutronReader::addHits().
|
private |
just makes sure chambers aren't done twice
Definition at line 47 of file SubsystemNeutronReader.h.
Referenced by generateChamberNoise().
|
private |
Definition at line 53 of file SubsystemNeutronReader.h.
Referenced by generateChamberNoise(), and SubsystemNeutronReader().
|
private |
Definition at line 57 of file SubsystemNeutronReader.h.
Referenced by generateChamberNoise().
|
private |
how many collsions happened between theStartTime and theEndTime
Definition at line 55 of file SubsystemNeutronReader.h.
Referenced by generateChamberNoise(), and SubsystemNeutronReader().
|
private |
Definition at line 44 of file SubsystemNeutronReader.h.
Referenced by generateChamberNoise(), SubsystemNeutronReader(), and ~SubsystemNeutronReader().
|
private |
in units of 10**34, set by Muon:NeutronLuminosity
Definition at line 51 of file SubsystemNeutronReader.h.
Referenced by SubsystemNeutronReader().
|
private |
Definition at line 52 of file SubsystemNeutronReader.h.
Referenced by generateChamberNoise(), and SubsystemNeutronReader().