Jpp
15.0.0
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) |
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... | |
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::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 configure should be used to set up the integration data for a specific detector.
Definition at line 173 of file JDetectorIntegration_t.hh.
typedef std::multimap<JUPI_t, int> JDATABASE::JDetectorIntegration_t::map_type |
Definition at line 178 of file JDetectorIntegration_t.hh.
typedef std::pair<map_type::const_iterator, map_type::const_iterator> JDATABASE::JDetectorIntegration_t::range_type |
Definition at line 180 of file JDetectorIntegration_t.hh.
typedef map_type::const_iterator JDATABASE::JDetectorIntegration_t::range_const_iterator |
Definition at line 181 of file JDetectorIntegration_t.hh.
typedef map_type::const_iterator JDATABASE::JDetectorIntegration_t::range_iterator |
Definition at line 182 of file JDetectorIntegration_t.hh.
|
inline |
|
inlinestatic |
Table name.
Definition at line 176 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:
detid | detector identifier |
Definition at line 202 of file JDetectorIntegration_t.hh.
|
inline |
Trace product up to given integration level.
upi | UPI |
pbs | PBS |
Definition at line 247 of file JDetectorIntegration_t.hh.
|
inline |
Print product trace.
out | output stream |
upi | UPI |
Definition at line 288 of file JDetectorIntegration_t.hh.
|
inline |
Print product trace.
out | output stream |
product | product |
Definition at line 317 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 389 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 403 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 424 of file JDetectorIntegration_t.hh.
|
inlineprotected |
Configure detector integration for given detector identifier.
This method sets the status all related products.
product | product |
period | validity period |
Definition at line 438 of file JDetectorIntegration_t.hh.
|
friend |
Read detector integration from result set.
rs | result set |
detector | detector |
Definition at line 344 of file JDetectorIntegration_t.hh.
|
friend |
Write detector integration to output stream.
out | output stream |
object | detector integration |
Definition at line 371 of file JDetectorIntegration_t.hh.
|
protected |
up link UPI to integration data
Definition at line 477 of file JDetectorIntegration_t.hh.
|
protected |
down link UPI to integration data
Definition at line 478 of file JDetectorIntegration_t.hh.