|
Jpp
18.0.1-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. More... | |
| void | configure (const std::string &detid, const bool option=false) |
| Configure detector integration for given detector identifier. More... | |
| const JProductIntegration_t & | trace (const JUPI_t &upi, const JPBS_t &pbs=PBS::DETECTOR) const |
| Trace product up to given integration level. More... | |
| void | print (std::ostream &out, const JUPI_t &upi) const |
| Print product trace. More... | |
| void | print (std::ostream &out, const JProductIntegration_t &product) const |
| Print product trace. More... | |
| void | load (const char *const file_name, const std::string &separator=";") |
| Load detector integration from CSV formatted input file. More... | |
| range_type | find (const JUPI_t &upi) const |
| Find range of products with given UPI. More... | |
| range_type | find (const JPBS_t &pbs) const |
| Find range of products with given PBS. More... | |
| range_type | get (const JUPI_t &upi) const |
| Get components of product with given UPI. More... | |
Static Public Member Functions | |
| static const char *const | getName () |
| Table name. More... | |
Protected Member Functions | |
| void | configure (JProductIntegration_t &product, const JPeriod_t &period) |
| Configure detector integration for given detector identifier. More... | |
Protected Attributes | |
| map_type | up |
| up link UPI to integration data More... | |
| map_type | down |
| down link UPI to integration data More... | |
Friends | |
| bool | operator>> (ResultSet &rs, JDetectorIntegration_t &detector) |
| Read detector integration from result set. More... | |
| std::istream & | operator>> (std::istream &in, JDetectorIntegration_t &object) |
| Read detector integration from input stream. More... | |
| std::ostream & | operator<< (std::ostream &out, const JDetectorIntegration_t &object) |
| Write detector integration to output stream. More... | |
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.
| typedef std::multimap<JUPI_t, int> JDATABASE::JDetectorIntegration_t::map_type |
Definition at line 192 of file JDetectorIntegration_t.hh.
| typedef std::pair<map_type::const_iterator, map_type::const_iterator> JDATABASE::JDetectorIntegration_t::range_type |
Definition at line 194 of file JDetectorIntegration_t.hh.
| typedef map_type::const_iterator JDATABASE::JDetectorIntegration_t::range_const_iterator |
Definition at line 195 of file JDetectorIntegration_t.hh.
| typedef 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 269 of file JDetectorIntegration_t.hh.
|
inline |
Print product trace.
| out | output stream |
| upi | UPI |
Definition at line 310 of file JDetectorIntegration_t.hh.
|
inline |
Print product trace.
| out | output stream |
| product | product |
Definition at line 339 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 394 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 484 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 498 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 519 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 533 of file JDetectorIntegration_t.hh.
|
friend |
Read detector integration from result set.
| rs | result set |
| detector | detector |
Definition at line 366 of file JDetectorIntegration_t.hh.
|
friend |
Read detector integration from input stream.
| in | input stream |
| object | detector integration |
Definition at line 443 of file JDetectorIntegration_t.hh.
|
friend |
Write detector integration to output stream.
| out | output stream |
| object | detector integration |
Definition at line 466 of file JDetectorIntegration_t.hh.
|
protected |
up link UPI to integration data
Definition at line 559 of file JDetectorIntegration_t.hh.
|
protected |
down link UPI to integration data
Definition at line 560 of file JDetectorIntegration_t.hh.
1.8.5