1 #ifndef __JDB__JDETECTORINTEGRATION_T__ 
    2 #define __JDB__JDETECTORINTEGRATION_T__ 
   18 #include "dbclient/KM3NeTDBClient.h" 
   24 namespace JDATABASE {}
 
   25 namespace JPP { 
using namespace JDATABASE; }
 
   48     return out << 
"(" << 
object.getLowerLimit() << 
"," << 
object.getUpperLimit() << 
")";
 
  126               this->position  == product.
position);
 
  141       out << 
object.operation          << 
' ' 
  142           << 
object.container.getUPI() << 
' ' 
  143           << 
object.content  .getUPI() << 
' ' 
  144           << 
object.position           << 
' ' 
  145           << 
object.start_date         << 
' ' 
  179     typedef  std::pair<map_type::const_iterator,
 
  209       for (
size_t index = 0; index != this->size(); ++index) {
 
  219       for (
iterator product = this->begin(); product != this->end(); ++product) {
 
  220         if (product->operation == detid) {
 
  228       for (
size_t index = 0; index != this->size(); ++index) {
 
  256         switch (
distance(range.first, range.second)) {
 
  296       for (map_type::const_iterator i = 
range.first; i != 
range.second; ++i) {
 
  298         out << upi << 
" -> ";
 
  300         print(out, (*
this)[i->second]);
 
  303       range = down.equal_range(upi);
 
  306         out << 
"<- " << (*this)[i->second] << endl; 
 
  327       for (map_type::const_iterator i = 
range.first; i != 
range.second; ++i) {
 
  328         print(out, (*
this)[i->second]);
 
  352         detector.
up  .insert(make_pair(product.
content  .
getUPI(), detector.size()));
 
  355         detector.push_back(product);
 
  373       for (const_iterator i = 
object.begin(); i != 
object.end(); ++i) {
 
  374         out << *i << std::endl;
 
  391       return up.equal_range(upi);
 
  408       while (q != up.end() && (*this)[q->second].content.getPBS() <= 
pbs) {
 
  426       return down.equal_range(upi);
 
  450         if ((*
this)[i->second].start_date <= period.
getLowerLimit()) {
 
  456             if ((*
this)[*p].overlap((*
this)[i->second])) {
 
  460               if ((*
this)[i->second].start_date > (*this)[*p].start_date) {
 
  467             buffer.push_back(i->second);
 
bool has() const 
Has status. 
 
void unset()
Unset status. 
 
std::vector< T >::difference_type distance(typename std::vector< T >::const_iterator first, typename PhysicsEvent::const_iterator< T > second)
Specialisation of STL distance. 
 
JProductIntegration_t(const JProductIntegration &input)
Constructor. 
 
friend std::ostream & operator<<(std::ostream &out, const JDetectorIntegration_t &object)
Write detector integration to output stream. 
 
bool overlap(const JProductIntegration_t &product) const 
Check whether there is an overlap between products. 
 
map_type up
up link UPI to integration data 
 
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message. 
 
void configure(JProductIntegration_t &product, const JPeriod_t &period)
Configure detector integration for given detector identifier. 
 
void print(std::ostream &out, const JUPI_t &upi) const 
Print product trace. 
 
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
 
Universal product identifier (UPI). 
 
range_type find(const JPBS_t &pbs) const 
Find range of products with given PBS. 
 
JProductIntegration_t()
Default constructor. 
 
const JPBS_t & getPBS() const 
Get PBS. 
 
const JUPI_t & getUPI() const 
Get UPI. 
 
std::pair< map_type::const_iterator, map_type::const_iterator > range_type
 
map_type::const_iterator range_const_iterator
 
static const char *const getName()
Table name. 
 
const JProductIntegration_t & trace(const JUPI_t &upi, const JPBS_t &pbs=PBS::DETECTOR) const 
Trace product up to given integration level. 
 
JTOOLS::JRange< JDate_t > JPeriod_t
Type definition of period. 
 
friend bool operator>>(ResultSet &rs, JDetectorIntegration_t &detector)
Read detector integration from result set. 
 
range_type find(const JUPI_t &upi) const 
Find range of products with given UPI. 
 
std::multimap< JUPI_t, int > map_type
 
z range($ZMAX-$ZMIN)< $MINIMAL_DZ." fi fi mv $WORKDIR/fit.root $MODULE_ROOT typeset -Z 4 STRING typeset -Z 2 FLOOR JPlot1D -f $
 
JDetectorIntegration_t()
Default constructor. 
 
map_type down
down link UPI to integration data 
 
Auxiliary class to define a range between two values. 
 
map_type::const_iterator range_iterator
 
then $JPP_DIR software JDB JAsciiDB q upi pbs
 
Product breakdown structure (PBS). 
 
do set_variable DETECTOR_TXT $WORKDIR detector
 
static const char *const getName()
Table name. 
 
friend std::ostream & operator<<(std::ostream &out, const JProductIntegration_t &object)
Write product integration to output stream. 
 
void configure(const std::string &detid)
Configure detector integration for given detector identifier. 
 
void print(std::ostream &out, const JProductIntegration_t &product) const 
Print product trace. 
 
Auxiliary class for product integration data.