00001
00002
00003
00004
00005
00007
00008
00009
00011
00012
00013
00014
00015
00016
00017
00018
00019
00021
00022 #include "TpcMapUtilities.h"
00023
00024
00025 bool HitMapQAKey::operator==(const HitMapQAKey& key2) const
00026 {
00027 if (this->sector==key2.sector && this->padrow==key2.padrow)
00028 {return true;}
00029 else {return false;}
00030 }
00031
00032
00033 bool MapQAKeyLessThan::operator() (const HitMapQAKey& key1, const HitMapQAKey& key2) const
00034 {
00035 bool val = false;
00036 if (key1.sector > key2.sector) {val = false;}
00037 if (key1.sector < key2.sector) {val = true;}
00038 if (key1.sector == key2.sector) {
00039 if (key1.padrow > key2.padrow) {val = false;}
00040 if (key1.padrow < key2.padrow) {val = true;}
00041 if (key1.padrow == key2.padrow) {val = false;}
00042 }
00043 return val;
00044 }
00045
00046
00047 PadrowLocation::PadrowLocation() {};
00048
00049 PadrowLocation::PadrowLocation(const StThreeVectorD& out, const StThreeVectorD& cent, const StThreeVectorD& in)
00050 {
00051 m_TopPoint = out;
00052 m_MidPoint = cent;
00053 m_BotPoint = in;
00054 }
00055
00056 PadrowLocation::~PadrowLocation() {};
00057
00058 const StThreeVectorD& PadrowLocation::outsidePoint() const { return m_TopPoint;}
00059 const StThreeVectorD& PadrowLocation::centerPoint() const { return m_MidPoint;}
00060 const StThreeVectorD& PadrowLocation::insidePoint() const { return m_BotPoint;}
00061
00062 void PadrowLocation::print() const
00063 {
00064 cout<<m_TopPoint<<"\t"<<m_MidPoint<<"\t"<<m_BotPoint<<endl;
00065 return;
00066 }
00067