10 #include "StThreeVectorD.hh"
11 #include "StEventTypes.h"
12 #include "StGetConfigValue.hh"
16 #include "StiMapUtilities.h"
17 #include "StiCompositeTreeNode.h"
18 #include "StiPlacement.h"
19 #include "StiDetector.h"
20 #include "StiTrackNode.h"
26 bool HitMapKey::operator==(
const HitMapKey& key2)
const
29 return (this->refangle==key2.refangle && this->position==key2.position);
38 if ( fabs(key1.refangle-key2.refangle) < reftolerance) {
41 if ( fabs(key1.position-key2.position) < postolerance) {
45 else if (key1.position < key2.position) {val =
true;}
49 else if (key1.refangle < key2.refangle) {val =
true;}
60 cout <<
"StiDetectorNodeLessThan::operator(). ERROR:\t" <<
"null data. Return false"<<endl;
65 return lhsp->getNormalRadius()<rhsp->getNormalRadius();
71 bool NameMapKey::operator==(
const NameMapKey& key2)
const{
73 return( name ==key2.name );
77 bool NameMapKey::operator<(
const NameMapKey& key2)
const{
79 return( name < key2.name );
87 if ( !node.isValid() || node.getChi2()>1e3) { node.setHit(0) ;}
94 StiHit* hit = node.getHit();
96 if (hit->
timesUsed()) hit->setTimesUsed(0);
101 ostream& operator<<(ostream& os,
const HitMapKey& a)
103 return os <<a.refangle<<
"\t"<<a.position;
107 ostream& operator<<(ostream& os,
const NameMapKey& a){
T * getData() const
Return a (non-const!) pointer to the data hung on this node.
UInt_t timesUsed() const
Return the number of times this hit was assigned to a track.