Algorithm class for sorting standard geo::XXXGeo objects for SBND.
More...
Go to the source code of this file.
|
static const double | tol = 1e-4 |
|
Algorithm class for sorting standard geo::XXXGeo objects for SBND.
- Date
- April 6, 2017
- Author
- petri.nosp@m.llo@.nosp@m.fnal..nosp@m.gov
Definition in file GeoObjectSorterSBND.cxx.
bool equal |
( |
double |
a, |
|
|
double |
b |
|
) |
| |
|
inline |
Comparison tolerance, in centimeters.
Returns whether the two values are equal (including some tolerance).
Definition at line 33 of file GeoObjectSorterSBND.cxx.
Definition at line 48 of file GeoObjectSorterSBND.cxx.
50 double xyz1[3] = {0.}, xyz2[3] = {0.};
51 double local[3] = {0.};
52 t1.LocalToWorld(local, xyz1);
53 t2.LocalToWorld(local, xyz2);
55 if(xyz1[2] != xyz2[2])
56 return xyz1[2] < xyz2[2];
57 else if(xyz1[1] != xyz2[1])
58 return xyz1[1] < xyz2[1];
60 return xyz1[0] < xyz2[0];
Definition at line 93 of file GeoObjectSorterSBND.cxx.
106 decltype(
auto) p1c =
p1.GetBoxCenter();
107 decltype(auto) p2c = p2.GetBoxCenter();
double std(const std::vector< short > &wf, const double ped_mean, size_t start, size_t nsample)
then echo echo For and will not be changed by echo further linking echo echo B echo The symbol is in the uninitialized data multiple common symbols may appear with the echo same name If the symbol is defined the common echo symbols are treated as undefined references For more echo details on common see the discussion of warn common echo in *Note Linker see the discussion of warn common echo in *Note Linker such as a global int variable echo as opposed to a large global array echo echo I echo The symbol is an indirect reference to another symbol This echo is a GNU extension to the a out object file format which is echo rarely used echo echo N echo The symbol is a debugging symbol echo echo R echo The symbol is in a read only data section echo echo S echo The symbol is in an uninitialized data section for small echo objects echo echo T echo The symbol is in the the normal defined echo symbol is used with no error When a weak undefined symbol echo is linked and the symbol is not the value of the echo weak symbol becomes zero with no error echo echo W echo The symbol is a weak symbol that has not been specifically echo tagged as a weak object symbol When a weak defined symbol echo is linked with a normal defined the normal defined echo symbol is used with no error When a weak undefined symbol echo is linked and the symbol is not the value of the echo weak symbol becomes zero with no error echo echo echo The symbol is a stabs symbol in an a out object file In echo this the next values printed are the stabs other echo the stabs desc and the stab type Stabs symbols are echo used to hold debugging information For more echo see *Note or object file format specific echo echo For Mac OS X
physics associatedGroupsWithLeft p1
Definition at line 64 of file GeoObjectSorterSBND.cxx.
74 if (!
equal(t1.CenterZ(), t2.CenterZ()))
75 return t1.CenterZ() < t2.CenterZ();
78 if (!
equal(t1.CenterY(), t2.CenterY()))
79 return t1.CenterY() < t2.CenterY();
85 return t1.CenterX() < t2.CenterX();
bool equal(double a, double b)
Comparison tolerance, in centimeters.
Definition at line 123 of file GeoObjectSorterSBND.cxx.
184 decltype(
auto) c1 = w1.GetCenter(), c2 = w2.GetCenter();
189 if (!
equal(c1.Z(), c2.Z())) return c1.Z() < c2.Z();
196 decltype(
auto)
e1 = w1.GetEnd();
204 bool const decreasingY = ((
e1.Y() - c1.Y()) > 0) == ((
e1.Z() - c1.Z()) > 0);
205 if (decreasingY) return c1.Y() > c2.Y();
206 else return c1.Y() < c2.Y();
214 throw cet::exception(
"GeoObjectSorterSBND")
215 <<
"Wires differ only for x coordinate... this is not SBND any more!\n";
then if[["$THISISATEST"==1]]
then echo echo For and will not be changed by echo further linking echo echo B echo The symbol is in the uninitialized data multiple common symbols may appear with the echo same name If the symbol is defined the common echo symbols are treated as undefined references For more echo details on common see the discussion of warn common echo in *Note Linker see the discussion of warn common echo in *Note Linker such as a global int variable echo as opposed to a large global array echo echo I echo The symbol is an indirect reference to another symbol This echo is a GNU extension to the a out object file format which is echo rarely used echo echo N echo The symbol is a debugging symbol echo echo R echo The symbol is in a read only data section echo echo S echo The symbol is in an uninitialized data section for small echo objects echo echo T echo The symbol is in the the normal defined echo symbol is used with no error When a weak undefined symbol echo is linked and the symbol is not the value of the echo weak symbol becomes zero with no error echo echo W echo The symbol is a weak symbol that has not been specifically echo tagged as a weak object symbol When a weak defined symbol echo is linked with a normal defined the normal defined echo symbol is used with no error When a weak undefined symbol echo is linked and the symbol is not the value of the echo weak symbol becomes zero with no error echo echo echo The symbol is a stabs symbol in an a out object file In echo this the next values printed are the stabs other echo the stabs desc and the stab type Stabs symbols are echo used to hold debugging information For more echo see *Note or object file format specific echo echo For Mac OS X
bool equal(double a, double b)
Comparison tolerance, in centimeters.