1 #ifndef __JDB__JPRODUCTROUTER__
2 #define __JDB__JPRODUCTROUTER__
20 namespace JDATABASE {}
21 namespace JPP {
using namespace JDATABASE; }
66 if (this->
string == location.
string) {
75 return this->
string < location.
string;
92 return out <<
FILL(3,
'0') <<
object.string <<
'.'
93 <<
FILL(2,
'0') <<
object.floor <<
'.'
94 <<
FILL(2,
'0') <<
object.position <<
FILL();
171 if (p != inverse_map.end())
194 if (pbs.size() >= 3) {
198 if (trace.size() == pbs.size()) {
203 map.insert (make_pair(upi, loc));
204 inverse_map.insert(make_pair(loc, upi));
std::map< JUPI, JLocation_t > map
JLocation_t(const int string, const int floor, const int position)
Constructor.
const_iterator end() const
end of integration data
bool less(const JLocation_t &location) const
Less-than method.
static const JPBS BASE_CONTAINER(3, 2, 2)
Auxiliary class to trace product.
static const JPBS DETECTION_UNIT(3)
data_type::const_iterator const_iterator
int floor
position in string
JLocation_t getLocation(const JUPI &upi) const
Get location of product with given UPI.
I/O formatting auxiliaries.
JProductRouter(const JDetectorIntegration_t &detector)
Constructor.
Auxiliary class to map UPI to location in detector.
JUPI getUPI(const JLocation_t &location) const
Get UPI of product with given location.
Auxiliary data structure for location of product in detector.
JLocation_t()
Default constructor.
std::map< JLocation_t, JUPI > inverse_map
Auxiliary methods to convert data members or return values of member methods of a set of objects to a...
static const JPBS DOM(3, 4)
Template definition of auxiliary base class for comparison of data structures.
Auxiliary data structure for sequence of same character.
static const JPBS BASE(3, 2)
friend std::ostream & operator<<(std::ostream &out, const JLocation_t &object)
Write location to output stream.
Universal product identifier (UPI).
int position
position in floor
bool insert(const JDetectorIntegration_t &detector, const JProductIntegration_t &product, const std::vector< JPBS > &pbs)
Insert product.
const JUPI & getUPI() const
Get UPI.
int string
position in detector
static const JPBS CLB(3, 4, 3, 2)
const_iterator begin() const
begin of integration data
Auxiliary class for product integration data.