Jpp
18.2.0
the software that should make you happy
|
Detector simulation. More...
#include <JDetectorSimulator.hh>
Public Types | |
typedef JDetector::const_iterator | const_iterator |
Public Member Functions | |
JDetectorSimulator (const JDetector &detector) | |
Constructor. More... | |
bool | hasK40Simulator () const |
Check availability of K40 simulator. More... | |
bool | hasPMTSimulator () const |
Check availability of PMT simulator. More... | |
bool | hasCLBSimulator () const |
Check availability of CLB simulator. More... | |
const JK40Simulator & | getK40Simulator () const |
Get K40 simulator. More... | |
const JPMTSimulator & | getPMTSimulator () const |
Get PMT simulator. More... | |
const JCLBSimulator & | getCLBSimulator () const |
Get CLB simulator. More... | |
void | reset (JK40Simulator *k40Simulator) |
Reset K40 simulator. More... | |
void | reset (JPMTSimulator *pmtSimulator) |
Reset PMT simulator. More... | |
void | reset (JCLBSimulator *clbSimulator) |
Reset CLB simulator. More... | |
virtual void | generateHits (const JModule &module, const JTimeRange &period, JModuleData &output) const override |
Generate hits. More... | |
virtual void | processHits (const JPMTIdentifier &ID, const JCalibration &calibration, const JStatus &status, const JPMTData< JPMTSignal > &input, JPMTData< JPMTPulse > &output) const override |
Process hits. More... | |
virtual void | processData (const JModuleIdentifier &id, const JCLBInput &input, JDAQSuperFrame &output) const override |
Process data. More... | |
virtual void | operator() (const JModule &module, JModuleData &input, JDAQSuperFrame &output) const |
Process module data in one step. More... | |
const JPMTRouter & | getPMTRouter () const |
Get PMT router. More... | |
const JPMTAddress & | getAddress (const JObjectID &id) const |
Get address of PMT. More... | |
const JPMT & | getPMT (const JPMTAddress &address) const |
Get PMT. More... | |
const JPMT & | getPMT (const JObjectID &id) const |
Get PMT. More... | |
bool | hasPMT (const JObjectID &id) const |
Has PMT. More... | |
JPMTIdentifier | getIdentifier (const JPMTAddress &address) const |
Get identifier of PMT. More... | |
JPMTIdentifier | getIdentifier (const JObjectID &id) const |
Get identifier of PMT. More... | |
const JModule & | getModule (const JModuleAddress &address) const |
Get module. More... | |
const JModule & | getParentModule (const JObjectID &id) const |
Get parent module. More... | |
int | getParentModuleID (const JObjectID &id) const |
Get parent module identifier. More... | |
JPMTChannel | getPMTChannel (const JPMTAddress &address) const |
Get PMT channel. More... | |
JPMTChannel | getPMTChannel (const JObjectID &id) const |
Get PMT channel. More... | |
JUTMPosition | getUTMPosition (const JObjectID &id) const |
Get UTM position of given PMT identifier. More... | |
const JClass_t & | getReference () const |
Get reference to object. More... | |
JClass_t & | getReference () |
Get reference to object. More... | |
bool | is_valid () const |
Check validity of reference. More... | |
const JClass_t * | operator-> () const |
Smart pointer. More... | |
JClass_t * | operator-> () |
Smart pointer. More... | |
const JClass_t & | operator* () const |
Dereference operator. More... | |
JClass_t & | operator* () |
Dereference operator. More... | |
Protected Attributes | |
JLANG::JSinglePointer < JK40Simulator > | k40Simulator |
JLANG::JSinglePointer < JPMTSimulator > | pmtSimulator |
JLANG::JSinglePointer < JCLBSimulator > | clbSimulator |
JClass_t & | __object |
Private Member Functions | |
JDetectorSimulator (const JDetectorSimulator &) | |
Make copy constructor inaccesible. More... | |
JDetectorSimulator & | operator= (const JDetectorSimulator &) |
Make assignment operator inaccesible. More... | |
Private Attributes | |
JCLBInput | buffer |
Detector simulation.
This class implements the JK40Simulator, JPMTSimulator and JCLBSimulator interfaces. The implementations of these interfaces should be provided via pointers to corresponding objects.
N.B: This class owns the objects pointed to using class JLANG::JSinglePointer.
Definition at line 33 of file JDetectorSimulator.hh.
|
inherited |
Definition at line 43 of file JPMTRouter.hh.
|
private |
Make copy constructor inaccesible.
|
inline |
Constructor.
detector | detector |
Definition at line 58 of file JDetectorSimulator.hh.
|
private |
Make assignment operator inaccesible.
|
inline |
Check availability of K40 simulator.
Definition at line 68 of file JDetectorSimulator.hh.
|
inline |
Check availability of PMT simulator.
Definition at line 80 of file JDetectorSimulator.hh.
|
inline |
Check availability of CLB simulator.
Definition at line 91 of file JDetectorSimulator.hh.
|
inline |
Get K40 simulator.
Definition at line 102 of file JDetectorSimulator.hh.
|
inline |
Get PMT simulator.
Definition at line 116 of file JDetectorSimulator.hh.
|
inline |
Get CLB simulator.
Definition at line 130 of file JDetectorSimulator.hh.
|
inline |
Reset K40 simulator.
k40Simulator | K40 simulator |
Definition at line 144 of file JDetectorSimulator.hh.
|
inline |
Reset PMT simulator.
pmtSimulator | PMT simulator |
Definition at line 156 of file JDetectorSimulator.hh.
|
inline |
Reset CLB simulator.
clbSimulator | CLB simulator |
Definition at line 167 of file JDetectorSimulator.hh.
|
inlineoverridevirtual |
Generate hits.
module | module |
period | time window [ns] |
output | background data |
Implements JDETECTOR::JK40Simulator.
Definition at line 180 of file JDetectorSimulator.hh.
|
inlineoverridevirtual |
Process hits.
ID | PMT identifier |
calibration | PMT calibration |
status | PMT status |
input | PMT signals |
output | PMT hits |
Implements JDETECTOR::JPMTSimulator.
Definition at line 197 of file JDetectorSimulator.hh.
|
inlineoverridevirtual |
Process data.
id | module identifier |
input | PMT data |
output | CLB data |
Implements JDETECTOR::JCLBSimulator.
Definition at line 214 of file JDetectorSimulator.hh.
|
inlinevirtual |
Process module data in one step.
module | module |
input | PMT signals |
output | CLB data |
Definition at line 227 of file JDetectorSimulator.hh.
|
inlineinherited |
Get PMT router.
Definition at line 68 of file JPMTRouter.hh.
|
inlineinherited |
Get address of PMT.
id | PMT identifier |
Definition at line 80 of file JPMTRouter.hh.
|
inlineinherited |
Get PMT.
address | PMT address |
Definition at line 92 of file JPMTRouter.hh.
Get PMT.
id | PMT identifier |
Definition at line 104 of file JPMTRouter.hh.
|
inlineinherited |
Has PMT.
id | PMT identifier |
Definition at line 116 of file JPMTRouter.hh.
|
inlineinherited |
Get identifier of PMT.
address | PMT address |
Definition at line 128 of file JPMTRouter.hh.
|
inlineinherited |
Get identifier of PMT.
id | PMT identifier |
Definition at line 140 of file JPMTRouter.hh.
|
inlineinherited |
Get module.
address | module address |
Definition at line 152 of file JPMTRouter.hh.
Get parent module.
id | PMT identifier |
Definition at line 164 of file JPMTRouter.hh.
|
inlineinherited |
Get parent module identifier.
id | PMT identifier |
Definition at line 176 of file JPMTRouter.hh.
|
inlineinherited |
Get PMT channel.
address | PMT address |
Definition at line 188 of file JPMTRouter.hh.
|
inlineinherited |
Get PMT channel.
id | PMT identifier |
Definition at line 200 of file JPMTRouter.hh.
|
inlineinherited |
Get UTM position of given PMT identifier.
id | PMT identifier |
Definition at line 212 of file JPMTRouter.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
protected |
Definition at line 255 of file JDetectorSimulator.hh.
|
protected |
Definition at line 256 of file JDetectorSimulator.hh.
|
protected |
Definition at line 257 of file JDetectorSimulator.hh.
|
mutableprivate |
Definition at line 260 of file JDetectorSimulator.hh.
|
protectedinherited |
Definition at line 110 of file JReference.hh.