|
Jpp 19.3.0-rc.2
the software that should make you happy
|
Detector integration. More...
#include <JDetectorIntegration_t.hh>
Public Types | |
| typedef std::multimap< JUPI_t, int > | map_type |
| typedef std::pair< map_type::const_iterator, map_type::const_iterator > | range_type |
| typedef map_type::const_iterator | range_const_iterator |
| typedef map_type::const_iterator | range_iterator |
Public Member Functions | |
| JDetectorIntegration_t () | |
| Default constructor. | |
| void | configure (const std::string &detid, const bool option=false) |
| Configure detector integration for given detector identifier. | |
| const JProductIntegration_t & | trace (const JUPI_t &upi, const JPBS_t &pbs=PBS::DETECTOR) const |
| Trace product up to given integration level. | |
| void | print (std::ostream &out, const JUPI_t &upi) const |
| Print product trace. | |
| void | print (std::ostream &out, const JProductIntegration_t &product) const |
| Print product trace. | |
| void | load (const char *const file_name, const std::string &separator=";") |
| Load detector integration from CSV formatted input file. | |
| range_type | find (const JUPI_t &upi) const |
| Find range of products with given UPI. | |
| range_type | find (const JPBS_t &pbs) const |
| Find range of products with given PBS. | |
| range_type | get (const JUPI_t &upi) const |
| Get components of product with given UPI. | |
Static Public Member Functions | |
| static const char *const | getName () |
| Table name. | |
| static bool | compare (const JProductIntegration_t &first, const JProductIntegration_t &second) |
| Compare two product integrations. | |
Protected Member Functions | |
| void | configure (JProductIntegration_t &product, const JPeriod_t &period) |
| Configure detector integration for given detector identifier. | |
Protected Attributes | |
| map_type | up |
| up link UPI to integration data | |
| map_type | down |
| down link UPI to integration data | |
| map_type | out |
| link UPI to disintegrated data | |
Friends | |
| bool | operator>> (ResultSet &rs, JDetectorIntegration_t &detector) |
| Read detector integration from result set. | |
| std::istream & | operator>> (std::istream &in, JDetectorIntegration_t &object) |
| Read detector integration from input stream. | |
| std::ostream & | operator<< (std::ostream &out, const JDetectorIntegration_t &object) |
| Write detector integration to output stream. | |
Detector integration.
This class is used
Note that the method JDetectorIntegration_t::configure should be used to set up the integration data for a specific detector.
Definition at line 187 of file JDetectorIntegration_t.hh.
Definition at line 192 of file JDetectorIntegration_t.hh.
| std::pair<map_type::const_iterator, map_type::const_iterator> JDATABASE::JDetectorIntegration_t::range_type |
Definition at line 194 of file JDetectorIntegration_t.hh.
| map_type::const_iterator JDATABASE::JDetectorIntegration_t::range_const_iterator |
Definition at line 195 of file JDetectorIntegration_t.hh.
| map_type::const_iterator JDATABASE::JDetectorIntegration_t::range_iterator |
Definition at line 196 of file JDetectorIntegration_t.hh.
|
inline |
|
inlinestatic |
Table name.
Definition at line 190 of file JDetectorIntegration_t.hh.
|
inline |
Configure detector integration for given detector identifier.
The components of the given detector are selected based on the following rules:
The option can be used to retain only those products that are part of the given detector.
| detid | detector identifier |
| option | option |
Definition at line 219 of file JDetectorIntegration_t.hh.
|
inline |
Trace product up to given integration level.
| upi | UPI |
| pbs | PBS |
Definition at line 277 of file JDetectorIntegration_t.hh.
|
inline |
Print product trace.
| out | output stream |
| upi | UPI |
Definition at line 318 of file JDetectorIntegration_t.hh.
|
inline |
Print product trace.
| out | output stream |
| product | product |
Definition at line 347 of file JDetectorIntegration_t.hh.
|
inline |
Load detector integration from CSV formatted input file.
The input should be conform output of JPrintDB -q "integration" -c ";" -W1.
| file_name | file name |
| separator | separator |
Definition at line 402 of file JDetectorIntegration_t.hh.
|
inline |
Find range of products with given UPI.
The returned range corresponds to the usual begin and end iterators, each pointing to an STL pair consisting of a UPI and index.
| upi | UPI |
Definition at line 492 of file JDetectorIntegration_t.hh.
|
inline |
Find range of products with given PBS.
The returned range corresponds to the usual begin and end iterators, each pointing to an STL pair consisting of a UPI and index.
| pbs | PBS |
Definition at line 506 of file JDetectorIntegration_t.hh.
|
inline |
Get components of product with given UPI.
The returned range corresponds to the usual begin and end iterators, each pointing to an STL pair consisting of a UPI and index.
| upi | UPI |
Definition at line 527 of file JDetectorIntegration_t.hh.
|
inlinestatic |
Compare two product integrations.
| first | first product integration |
| second | second product integration |
Definition at line 540 of file JDetectorIntegration_t.hh.
|
inlineprotected |
Configure detector integration for given detector identifier.
This method recursively sets the status all related products.
| product | product |
| period | validity period |
Definition at line 557 of file JDetectorIntegration_t.hh.
|
friend |
Read detector integration from result set.
| rs | result set |
| detector | detector |
Definition at line 374 of file JDetectorIntegration_t.hh.
|
friend |
Read detector integration from input stream.
| in | input stream |
| object | detector integration |
Definition at line 451 of file JDetectorIntegration_t.hh.
|
friend |
Write detector integration to output stream.
| out | output stream |
| object | detector integration |
Definition at line 474 of file JDetectorIntegration_t.hh.
|
protected |
up link UPI to integration data
Definition at line 599 of file JDetectorIntegration_t.hh.
|
protected |
down link UPI to integration data
Definition at line 600 of file JDetectorIntegration_t.hh.
|
protected |
link UPI to disintegrated data
Definition at line 601 of file JDetectorIntegration_t.hh.