16 namespace JDATABASE {}
17 namespace JPP {
using namespace JDATABASE; }
33 static const char DOT =
'.';
74 if (i0 != -1) { push_back(i0); }
75 if (i1 != -1) { push_back(i1); }
76 if (i2 != -1) { push_back(i2); }
77 if (i3 != -1) { push_back(i3); }
78 if (i4 != -1) { push_back(i4); }
79 if (i5 != -1) { push_back(i5); }
80 if (i6 != -1) { push_back(i6); }
81 if (i7 != -1) { push_back(i7); }
82 if (i8 != -1) { push_back(i8); }
83 if (i9 != -1) { push_back(i9); }
92 JPBS(
const std::string& input)
94 std::istringstream
is(input);
107 return static_cast<const JPBS&
>(*this);
118 return !this->empty();
131 if (first.size() == second.size()) {
133 for (const_iterator p = first.begin(), q = second.begin(); p != first.end(); ++p, ++q) {
155 for (const_iterator p = first.begin(), q = second.begin(); p != first.end() && q != second.end(); ++p, ++q) {
161 return first.size() < second.size();
182 object.push_back(pbs);
185 if (in.ignore() && in >> pbs)
186 object.push_back(pbs);
188 in.setstate(ios::failbit);
193 in.setstate(ios::failbit);
214 if (!
object.empty()) {
216 const_iterator i =
object.begin();
220 while (++i !=
object.end()) {
225 return out << os.str();
241 static const JPBS PMT (3, 4, 2, 3);
242 static const JPBS CLB (3, 4, 3, 2);
245 static const JPBS FPGA (3, 4, 3, 2, 2);
248 static const JPBS AHRS (3, 4, 3, 4);
static const JPBS NANO_BEACON(3, 4, 3, 7)
friend std::ostream & operator<<(std::ostream &out, const JPBS &object)
Write PBS to output stream.
static const JPBS POWER_BOARD(3, 4, 3, 5)
const JPBS & getPBS() const
Get PBS.
friend bool operator==(const JPBS &first, const JPBS &second)
Equality operator.
esac print_variable DETECTOR INPUT_FILE OUTPUT_FILE CDF for TYPE in
JPBS(const int i0, const int i1=-1, const int i2=-1, const int i3=-1, const int i4=-1, const int i5=-1, const int i6=-1, const int i7=-1, const int i8=-1, const int i9=-1)
Constructor.
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
static const JPBS BASE_CONTAINER(3, 2, 2)
static const JPBS FPGA(3, 4, 3, 2, 2)
static const JPBS DETECTION_UNIT(3)
friend bool operator<(const JPBS &first, const JPBS &second)
Less-than operator.
static const JPBS H_SENSOR(3, 4, 3, 2, 1, 2)
JPBS(const std::string &input)
Constructor.
static const JPBS DOM(3, 4)
Product breakdown structure (PBS).
static const JPBS BASE(3, 2)
JDAQPMTIdentifier PMT
Command line options.
static const char DOT
Separator between PBS values.
static const JPBS T_SENSOR(3, 4, 3, 2, 1, 1)
friend std::istream & operator>>(std::istream &in, JPBS &object)
Read PBS from input stream.
static const JPBS AHRS(3, 4, 3, 4)
bool is_valid() const
Check validity.
JPBS()
Default constructor.
static const char SEPARATOR
Separator between PBS and variant.
static const JPBS CLB(3, 4, 3, 2)