|
Jpp 20.0.0-27-g39925593c-D
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. | |
| bool | hasK40Simulator () const |
| Check availability of K40 simulator. | |
| bool | hasPMTSimulator () const |
| Check availability of PMT simulator. | |
| bool | hasCLBSimulator () const |
| Check availability of CLB simulator. | |
| const JK40Simulator & | getK40Simulator () const |
| Get K40 simulator. | |
| const JPMTSimulator & | getPMTSimulator () const |
| Get PMT simulator. | |
| const JCLBSimulator & | getCLBSimulator () const |
| Get CLB simulator. | |
| void | reset (JK40Simulator *k40Simulator) |
| Reset K40 simulator. | |
| void | reset (JPMTSimulator *pmtSimulator) |
| Reset PMT simulator. | |
| void | reset (JCLBSimulator *clbSimulator) |
| Reset CLB simulator. | |
| virtual void | generateHits (const JModule &module, const JTimeRange &period, JModuleData &output) const override |
| Generate hits. | |
| virtual void | processHits (const JPMTIdentifier &ID, const JCalibration &calibration, const JStatus &status, const JPMTData< JPMTSignal > &input, JPMTData< JPMTPulse > &output) const override |
| Process hits. | |
| virtual void | processData (const JModuleIdentifier &id, const JCLBInput &input, JDAQSuperFrame &output) const override |
| Process data. | |
| virtual void | operator() (const JModule &module, JModuleData &input, JDAQSuperFrame &output) const |
| Process module data in one step. | |
| const JPMTRouter & | getPMTRouter () const |
| Get PMT router. | |
| const JPMTAddress & | getAddress (const JObjectID &id) const |
| Get address of PMT. | |
| const JPMT & | getPMT (const JPMTAddress &address) const |
| Get PMT. | |
| const JPMT & | getPMT (const JObjectID &id) const |
| Get PMT. | |
| bool | hasPMT (const JObjectID &id) const |
| Has PMT. | |
| JPMTIdentifier | getIdentifier (const JPMTAddress &address) const |
| Get identifier of PMT. | |
| JPMTIdentifier | getIdentifier (const JObjectID &id) const |
| Get identifier of PMT. | |
| const JModule & | getModule (const JModuleAddress &address) const |
| Get module. | |
| const JModule & | getParentModule (const JObjectID &id) const |
| Get parent module. | |
| int | getParentModuleID (const JObjectID &id) const |
| Get parent module identifier. | |
| JPMTChannel | getPMTChannel (const JPMTAddress &address) const |
| Get PMT channel. | |
| JPMTChannel | getPMTChannel (const JObjectID &id) const |
| Get PMT channel. | |
| JUTMPosition | getUTMPosition (const JObjectID &id) const |
| Get UTM position of given PMT identifier. | |
| const JClass_t & | getReference () const |
| Get reference to object. | |
| JClass_t & | getReference () |
| Get reference to object. | |
| bool | is_valid () const |
| Check validity of reference. | |
| const JClass_t * | operator-> () const |
| Smart pointer. | |
| JClass_t * | operator-> () |
| Smart pointer. | |
| const JClass_t & | operator* () const |
| Dereference operator. | |
| JClass_t & | operator* () |
| Dereference operator. | |
| virtual bool | hasCLB (const JModuleIdentifier &id) const |
| Check if CLB exist. | |
Protected Attributes | |
| std::unique_ptr< JK40Simulator > | k40Simulator |
| std::unique_ptr< JPMTSimulator > | pmtSimulator |
| std::unique_ptr< JCLBSimulator > | clbSimulator |
| JClass_t & | __object |
Private Types | |
| typedef JReference< const JDetector > | JReference_t |
Private Member Functions | |
| JDetectorSimulator (const JDetectorSimulator &) | |
| Make copy constructor inaccesible. | |
| JDetectorSimulator & | operator= (const JDetectorSimulator &) |
| Make assignment operator inaccesible. | |
Private Attributes | |
| JTOOLS::JRouter< JPMTAddress > | router |
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 34 of file JDetectorSimulator.hh.
|
privateinherited |
Definition at line 39 of file JPMTRouter.hh.
|
inherited |
Definition at line 43 of file JPMTRouter.hh.
|
private |
Make copy constructor inaccesible.
Constructor.
| detector | detector |
Definition at line 59 of file JDetectorSimulator.hh.
|
private |
Make assignment operator inaccesible.
|
inline |
Check availability of K40 simulator.
Definition at line 69 of file JDetectorSimulator.hh.
|
inline |
Check availability of PMT simulator.
Definition at line 81 of file JDetectorSimulator.hh.
|
inline |
Check availability of CLB simulator.
Definition at line 92 of file JDetectorSimulator.hh.
|
inline |
Get K40 simulator.
Definition at line 103 of file JDetectorSimulator.hh.
|
inline |
Get PMT simulator.
Definition at line 117 of file JDetectorSimulator.hh.
|
inline |
Get CLB simulator.
Definition at line 131 of file JDetectorSimulator.hh.
|
inline |
Reset K40 simulator.
| k40Simulator | K40 simulator |
Definition at line 145 of file JDetectorSimulator.hh.
|
inline |
Reset PMT simulator.
| pmtSimulator | PMT simulator |
Definition at line 157 of file JDetectorSimulator.hh.
|
inline |
Reset CLB simulator.
| clbSimulator | CLB simulator |
Definition at line 168 of file JDetectorSimulator.hh.
|
inlineoverridevirtual |
Generate hits.
| module | module |
| period | time window [ns] |
| output | background data |
Implements JDETECTOR::JK40Simulator.
Definition at line 181 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 198 of file JDetectorSimulator.hh.
|
inlineoverridevirtual |
Process data.
| id | module identifier |
| input | PMT data |
| output | CLB data |
Implements JDETECTOR::JCLBSimulator.
Definition at line 215 of file JDetectorSimulator.hh.
|
inlinevirtual |
Process module data in one step.
| module | module |
| input | PMT signals |
| output | CLB data |
Definition at line 228 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.
|
inlineinherited |
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 |
Get reference to object.
Definition at line 38 of file JReference.hh.
|
inlineinherited |
|
inlineinherited |
Check validity of reference.
Definition at line 60 of file JReference.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlinevirtualinherited |
Check if CLB exist.
| id | module identifier |
Reimplemented in JTRIGGER::JCLBRunByRunSimulator.
Definition at line 67 of file JCLBSimulator.hh.
|
protected |
Definition at line 256 of file JDetectorSimulator.hh.
|
protected |
Definition at line 257 of file JDetectorSimulator.hh.
|
protected |
Definition at line 258 of file JDetectorSimulator.hh.
|
privateinherited |
Definition at line 218 of file JPMTRouter.hh.
|
protectedinherited |
Definition at line 110 of file JReference.hh.