Jpp
|
PMT simulation based on run-by-run information. More...
#include <JPMTRunByRunSimulator.hh>
Public Types | |
typedef JKey_t | key_type |
typedef JValue_t | mapped_type |
typedef std::pair< JKey_t, JValue_t > | value_type |
typedef JEvaluator_t | evaluator_type |
typedef std::vector< value_type > | container_type |
typedef container_type::const_iterator | const_iterator |
typedef container_type::const_reverse_iterator | const_reverse_iterator |
typedef container_type::iterator | iterator |
typedef container_type::reverse_iterator | reverse_iterator |
typedef std::pair < const_iterator, bool > | pair_type |
Public Member Functions | |
JPMTRunByRunSimulator (const JSummaryRouter &router, const JPMTParametersMap ¶meters, const JDetector &detector, const JPMTRateRange &range_Hz) | |
Constructor. More... | |
const JPMTRateRange & | getPMTRateRange () const |
Get PMT rate range. More... | |
void | setPMTRateRange (const JPMTRateRange &range_Hz) |
Set PMT rate range. More... | |
virtual bool | getPMTstatus (const JPMTIdentifier &id) const |
Get PMT status. More... | |
virtual const JPMTSignalProcessorInterface & | getPMTSignalProcessor (const JPMTIdentifier &pmt) const |
Get PMT signal processor. More... | |
virtual void | processHits (const JPMTIdentifier &id, const JCalibration &calibration, const JPMTData< JPMTSignal > &input, JPMTData< JPMTPulse > &output) const |
Process hits. More... | |
virtual void | clear () |
Clear. More... | |
virtual mapped_type & | get (typename JClass< key_type >::argument_type key) |
Get mapped value. More... | |
const mapped_type & | get (typename JClass< key_type >::argument_type key) const |
Get mapped value. More... | |
pair_type | insert (const value_type &element) |
Insert element. More... | |
void | erase (iterator pos) |
Erase element at given position. More... | |
void | erase (iterator __begin, iterator __end) |
Erase elements in given range. More... | |
bool | erase (typename JClass< key_type >::argument_type key) const |
Erase element. More... | |
bool | has (typename JClass< key_type >::argument_type key) const |
Test whether key is present. More... | |
const JComparator & | getComparator () const |
Get comparator. More... | |
mapped_type & | operator[] (typename JClass< key_type >::argument_type key) |
Get mapped value. More... | |
void | put (typename JClass< key_type >::argument_type key, typename JClass< mapped_type >::argument_type value) |
Put pair-wise element (key,value) into collection. More... | |
Public Attributes | |
JEvaluator_t | getValue |
Function object for evaluation of key. More... | |
Protected Attributes | |
const JSummaryRouter & | summary_router |
JPMTRateRange | range |
[Hz] More... | |
JComparator | compare |
Function object for comparison. More... | |
JRouter< int > | router |
PMT simulation based on run-by-run information.
This class overwrites the method JPMTDefaultSimulator::getPMTstatus. The actual PMT status is determined from summary data. The frequency range corresponds to the acceptable range of singles rates. Outside this range, the PMT is considered default.
Definition at line 32 of file JPMTRunByRunSimulator.hh.
|
inherited |
Definition at line 59 of file JHashMap.hh.
|
inherited |
Definition at line 60 of file JHashMap.hh.
|
inherited |
Definition at line 61 of file JHashMap.hh.
|
inherited |
Definition at line 62 of file JHashMap.hh.
|
inherited |
Definition at line 64 of file JHashMap.hh.
|
inherited |
Definition at line 66 of file JHashMap.hh.
|
inherited |
Definition at line 67 of file JHashMap.hh.
|
inherited |
Definition at line 68 of file JHashMap.hh.
|
inherited |
Definition at line 69 of file JHashMap.hh.
|
inherited |
Definition at line 71 of file JHashMap.hh.
|
inline |
Constructor.
router | summary router |
parameters | PMT parameters |
detector | detector |
range_Hz | PMT rate range [Hz] |
Definition at line 44 of file JPMTRunByRunSimulator.hh.
|
inline |
Get PMT rate range.
Definition at line 59 of file JPMTRunByRunSimulator.hh.
|
inline |
Set PMT rate range.
range_Hz | PMT rate range [Hz] |
Definition at line 70 of file JPMTRunByRunSimulator.hh.
|
inlinevirtual |
Get PMT status.
If PMT status is false, the method JPMTDefaultSimulatorInterface::processHits does not produce any hits.
id | PMT identifier |
Reimplemented from JDETECTOR::JPMTDefaultSimulatorInterface.
Definition at line 84 of file JPMTRunByRunSimulator.hh.
|
inlinevirtualinherited |
Get PMT signal processor.
pmt | PMT identifier |
Reimplemented from JDETECTOR::JPMTDefaultSimulatorInterface.
Definition at line 102 of file JPMTDefaultSimulator.hh.
|
inlinevirtualinherited |
Process hits.
id | PMT identifier |
calibration | PMT calibration |
input | PMT signals |
output | PMT hits |
Implements JDETECTOR::JPMTSimulator.
Definition at line 36 of file JPMTDefaultSimulatorInterface.hh.
|
inlinevirtualinherited |
Clear.
Implements JTOOLS::JMappableCollection< JKey_t, JValue_t >.
Definition at line 141 of file JHashMap.hh.
|
inlinevirtualinherited |
Get mapped value.
key | key |
Implements JTOOLS::JMappableCollection< JKey_t, JValue_t >.
Definition at line 159 of file JHashMap.hh.
|
inlineinherited |
Get mapped value.
This method will throw an exception if given key is not present following the prerequisite of constness.
key | key |
Definition at line 179 of file JHashMap.hh.
|
inlineinherited |
Insert element.
element | element |
Definition at line 196 of file JHashMap.hh.
|
inlineinherited |
Erase element at given position.
pos | valid position |
Definition at line 226 of file JHashMap.hh.
|
inlineinherited |
Erase elements in given range.
__begin | begin position (included) |
__end | end position (excluded) |
Definition at line 246 of file JHashMap.hh.
|
inlineinherited |
Erase element.
key | key |
Definition at line 269 of file JHashMap.hh.
|
inlineinherited |
Test whether key is present.
key | key |
Definition at line 298 of file JHashMap.hh.
|
inlineinherited |
Get comparator.
Definition at line 309 of file JHashMap.hh.
|
inlineinherited |
Get mapped value.
key | key |
Definition at line 64 of file JMappableCollection.hh.
|
inlineinherited |
Put pair-wise element (key,value) into collection.
key | key |
value | value |
Definition at line 76 of file JMappableCollection.hh.
|
protected |
Definition at line 100 of file JPMTRunByRunSimulator.hh.
|
protected |
[Hz]
Definition at line 101 of file JPMTRunByRunSimulator.hh.
|
inherited |
Function object for evaluation of key.
Definition at line 366 of file JHashMap.hh.
|
protectedinherited |
Function object for comparison.
Definition at line 373 of file JHashMap.hh.
|
protectedinherited |
Definition at line 375 of file JHashMap.hh.