Jpp
debug
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... | |
static bool | compare (const JProductIntegration_t &first, const JProductIntegration_t &second) |
Compare two product integrations. 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... | |
map_type | out |
link UPI to disintegrated 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 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.