38 std::cout <<
" (" << lhs <<
" < " << rhs <<
"): " << ret << std::endl;
54 bool ret = !(
cmp(lhs,rhs) ||
cmp(rhs,lhs));
55 std::cout <<
" (" << lhs <<
" <> " << rhs <<
"): " << ret << std::endl;
67 std::cout <<
" !(" << x <<
" < " << x <<
"): " << ret << std::endl;
80 bool ret = ((a &&
b) && c) || (!(a &&
b));
97 std::cout <<
" (" << x <<
" < " << y <<
" && " << y <<
" < " << z
98 <<
") => " << x <<
" < " << z <<
" " 99 << (ret ?
"holds" :
"violated") << std::endl;
117 std::cout <<
" (" << x <<
" <> " << y <<
" && " << y <<
" <> " << z
118 <<
") => " << x <<
" <> " << z <<
" " 119 << (ret ?
"holds" :
"violated") << std::endl;
136 std::cout <<
"Is !(x < x): " << std::endl;
138 std::cout <<
"Does (x < y && y < z) imply x < z: " << std::endl;
147 std::cout <<
"Does !(x < y || x > y) && !(y < z || z > y) imply " 148 <<
"!(x < z || x > z)" << std::endl;
160 TFile* file =
TFile::Open(
"index.root",
"RECREATE");
161 file->WriteObject(&i1,
"i1");
167 file->GetObject(
"i1", i7);
169 std::cout << *i7 <<
" == " << i1 <<
": " << (*i7 == i1) << std::endl;
185 std::cout <<
"Is !(x < x): " << std::endl;
187 std::cout <<
"Does (x < y && y < z) imply x < z: " << std::endl;
196 std::cout <<
"Does !(x < y || x > y) && !(y < z || z > y) imply " 197 <<
"!(x < z || x > z)" << std::endl;
209 TFile* file =
TFile::Open(
"index.root",
"RECREATE");
217 std::cout << *i7 <<
" == " << i1 <<
": " << (*i7 == i1) << std::endl;
228 for (
size_t i = 0; i < 30; i++) {
229 UShort_t det = gRandom->Integer(3)+1;
230 Char_t ring = (gRandom->Uniform() > .5 ?
'O' :
'I');
231 UShort_t sec = gRandom->Integer(ring ==
'I' ? 20 : 40);
232 UShort_t str = gRandom->Integer(ring ==
'I' ? 512 : 256);
235 std::cout <<
"Before sort" << std::endl;
238 std::cout <<
"After sort" << std::endl;
TFile * Open(const char *filename, Long64_t &nevents)
std::ostream & operator<<(std::ostream &o, const AliFMDIndex &i)
bool cmp(const AliFMDIndex &lhs, const AliFMDIndex &rhs)
bool trans(const AliFMDIndex &x, const AliFMDIndex &y, const AliFMDIndex &z)
FMD detector coordinates.
FMD detector coordinates.
bool equiv(const AliFMDIndex &lhs, const AliFMDIndex &rhs)
const char * Name() const
bool imply(bool a, bool b, bool c)