Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

AlignmentStrip Class Reference

#include <AlignmentStrip.h>

List of all members.

Public Member Functions

 AlignmentStrip ()
 AlignmentStrip (const CandStripHandle *csh)
 AlignmentStrip (const NtpAlignTrackStrip *strip)
 AlignmentStrip (const NtpAlignCandStrip *strip)
virtual ~AlignmentStrip ()
bool operator< (const AlignmentStrip &right) const
bool operator<= (const AlignmentStrip &right) const
bool operator> (const AlignmentStrip &right) const
bool operator>= (const AlignmentStrip &right) const
bool operator== (const AlignmentStrip &right) const
bool operator!= (const AlignmentStrip &right) const

Public Attributes

UInt_t plexseid
Int_t plane
Int_t strip
UShort_t ndigit
Double_t charge
Double_t tpos
Double_t tposrelmdl
Double_t lposrelmdl
Double_t zpos
Double_t pigtail
Double_t wlsbypass
Double_t begtime
Double_t endtime
Double_t residual
Double_t ghitpos
Double_t lhitpos
Double_t length
bool goodhit


Constructor & Destructor Documentation

AlignmentStrip::AlignmentStrip  ) 
 

Definition at line 16 of file AlignmentStrip.cxx.

00017    :plexseid(0),
00018     plane(0),
00019     strip(0),
00020     ndigit(0),
00021     charge(0.0),
00022     tpos(0.0),
00023     tposrelmdl(0.0),
00024     lposrelmdl(0.0),
00025     zpos(0.0),
00026     pigtail(0.0),
00027     wlsbypass(0.0),
00028     begtime(0.0),
00029     endtime(0.0),
00030     residual(100.0),
00031     ghitpos(0.0),
00032     lhitpos(0.0),
00033     length(0.0),
00034     goodhit(true)
00035 {
00036 }

AlignmentStrip::AlignmentStrip const CandStripHandle csh  ) 
 

Definition at line 38 of file AlignmentStrip.cxx.

References begtime, charge, endtime, CandStripHandle::GetBegTime(), CandStripHandle::GetCharge(), PlexStripEndId::GetEncoded(), CandStripHandle::GetEndTime(), CandStripHandle::GetNDigit(), CandStripHandle::GetStripEndId(), CandStripHandle::GetTPos(), CandStripHandle::GetZPos(), ndigit, plexseid, tpos, and zpos.

00039    :plexseid(0),
00040     plane(0),
00041     strip(0),
00042     ndigit(0),
00043     charge(0.0),
00044     tpos(0.0),
00045     tposrelmdl(0.0),
00046     lposrelmdl(0.0),
00047     zpos(0.0),
00048     pigtail(0.0),
00049     wlsbypass(0.0),
00050     begtime(0.0),
00051     endtime(0.0),
00052     residual(100.0),
00053     ghitpos(0.0),
00054     lhitpos(0.0),
00055     length(0.0),
00056     goodhit(true)
00057 {
00058    if(csh){
00059       plexseid = csh->GetStripEndId().GetEncoded();
00060       ndigit   = csh->GetNDigit();
00061       charge   = csh->GetCharge(CalDigitType::kNone);
00062       tpos     = csh->GetTPos();
00063       zpos     = csh->GetZPos();
00064       begtime  = csh->GetBegTime();
00065       endtime  = csh->GetEndTime();
00066      
00067    }
00068 }

AlignmentStrip::AlignmentStrip const NtpAlignTrackStrip strip  ) 
 

Definition at line 70 of file AlignmentStrip.cxx.

References NtpAlignTrackStrip::begtime, begtime, NtpAlignTrackStrip::charge, charge, NtpAlignTrackStrip::ndigit, ndigit, NtpAlignTrackStrip::plexseid, plexseid, NtpAlignTrackStrip::residual, and residual.

00071    :plexseid(0),
00072     plane(0),
00073     strip(0),
00074     ndigit(0),
00075     charge(0.0),
00076     tpos(0.0),
00077     tposrelmdl(0.0),
00078     lposrelmdl(0.0),
00079     zpos(0.0),
00080     pigtail(0.0),
00081     wlsbypass(0.0),
00082     begtime(0.0),
00083     endtime(0.0),
00084     residual(100.0),
00085     ghitpos(0.0),
00086     lhitpos(0.0),
00087     length(0.0),
00088     goodhit(true)
00089 {
00090    plexseid = strip->plexseid;
00091    ndigit   = strip->ndigit;
00092    charge   = strip->charge;
00093    residual = strip->residual;
00094    begtime  = strip->begtime;
00095 }

AlignmentStrip::AlignmentStrip const NtpAlignCandStrip strip  ) 
 

Definition at line 97 of file AlignmentStrip.cxx.

References NtpAlignCandStrip::begtime, begtime, NtpAlignCandStrip::charge, charge, NtpAlignCandStrip::ndigit, ndigit, NtpAlignCandStrip::plexseid, and plexseid.

00098    :plexseid(0),
00099     plane(0),
00100     strip(0),
00101     ndigit(0),
00102     charge(0.0),
00103     tpos(0.0),
00104     tposrelmdl(0.0),
00105     lposrelmdl(0.0),
00106     zpos(0.0),
00107     pigtail(0.0),
00108     wlsbypass(0.0),
00109     begtime(0.0),
00110     endtime(0.0),
00111     residual(100.0),
00112     ghitpos(0.0),
00113     lhitpos(0.0),
00114     length(0.0),
00115     goodhit(true)
00116 {
00117    plexseid = strip->plexseid;
00118    ndigit   = strip->ndigit;
00119    charge   = strip->charge;
00120    begtime  = strip->begtime;
00121    
00122 }

virtual AlignmentStrip::~AlignmentStrip  )  [inline, virtual]
 

Definition at line 25 of file AlignmentStrip.h.

00025 {};


Member Function Documentation

bool AlignmentStrip::operator!= const AlignmentStrip right  )  const
 

Definition at line 169 of file AlignmentStrip.cxx.

References plexseid.

00170 { 
00171    if(plexseid != right.plexseid)
00172       return true; 
00173    return false;
00174 }

bool AlignmentStrip::operator< const AlignmentStrip right  )  const
 

Definition at line 125 of file AlignmentStrip.cxx.

References begtime, and plexseid.

00126 { 
00127    if(plexseid < right.plexseid)
00128       return true; 
00129    if(plexseid > right.plexseid)
00130       return false;
00131    if(begtime < right.begtime)
00132       return true;
00133    return false;
00134 }

bool AlignmentStrip::operator<= const AlignmentStrip right  )  const
 

Definition at line 136 of file AlignmentStrip.cxx.

References plexseid.

00137 { 
00138    if(plexseid <= right.plexseid)
00139       return true;
00140    return false;
00141 }

bool AlignmentStrip::operator== const AlignmentStrip right  )  const
 

Definition at line 161 of file AlignmentStrip.cxx.

References begtime, and plexseid.

00162 {
00163    // if the same PlexStripEndId and begtime are within 1 ns - return true
00164    if(plexseid == right.plexseid && fabs(begtime-right.begtime) < 0.000000002)
00165          return true; 
00166    return false;
00167 }

bool AlignmentStrip::operator> const AlignmentStrip right  )  const
 

Definition at line 143 of file AlignmentStrip.cxx.

References begtime, and plexseid.

00144 { 
00145    if(plexseid > right.plexseid)
00146       return true; 
00147    if(plexseid < right.plexseid)
00148       return false;
00149    if(begtime <= right.begtime)
00150       return true;
00151    return false;
00152 }

bool AlignmentStrip::operator>= const AlignmentStrip right  )  const
 

Definition at line 154 of file AlignmentStrip.cxx.

References plexseid.

00155 { 
00156    if(plexseid >= right.plexseid)
00157       return true; 
00158    return false;
00159 }


Member Data Documentation

Double_t AlignmentStrip::begtime
 

Definition at line 51 of file AlignmentStrip.h.

Referenced by AlignmentStrip(), NtpAlignCandStrip::NtpAlignCandStrip(), NtpAlignTrackStrip::NtpAlignTrackStrip(), operator<(), operator==(), operator>(), MakeAlignmentModule::PrintAlignmentStrip(), DetectorAlignment::StripBelongsToUTrack(), and DetectorAlignment::StripBelongsToVTrack().

Double_t AlignmentStrip::charge
 

Definition at line 44 of file AlignmentStrip.h.

Referenced by AlignmentStrip(), MakeAlignmentModule::CompareSRTrackAndMaxChargeTrack(), AlignmentHistograms::FillCandStrip(), AlignmentHistograms::FillHistograms(), AlignmentHistograms::FillHitStrip(), MakeAlignmentModule::FillMaxChargeTrack(), DetectorAlignment::GetCandStrips(), NtpAlignCandStrip::NtpAlignCandStrip(), NtpAlignTrackStrip::NtpAlignTrackStrip(), MakeAlignmentModule::PrintAlignmentStrip(), MakeAlignmentModule::ProcessRecord(), DetectorAlignment::StripBelongsToUTrack(), and DetectorAlignment::StripBelongsToVTrack().

Double_t AlignmentStrip::endtime
 

Definition at line 52 of file AlignmentStrip.h.

Referenced by AlignmentStrip().

Double_t AlignmentStrip::ghitpos
 

Definition at line 54 of file AlignmentStrip.h.

Referenced by MakeAlignmentModule::ConvertToLocal(), AlignmentHistograms::FillHistograms(), MakeAlignmentModule::GetDirectionalCosines(), and MakeAlignmentModule::ProcessRecord().

bool AlignmentStrip::goodhit
 

Definition at line 57 of file AlignmentStrip.h.

Referenced by MakeAlignmentModule::ConvertToLocal(), and AlignmentHistograms::FillHistograms().

Double_t AlignmentStrip::length
 

Definition at line 56 of file AlignmentStrip.h.

Referenced by MakeAlignmentModule::ConvertToLocal(), AlignmentHistograms::FillHistograms(), and MakeAlignmentModule::FillHitStripHistograms().

Double_t AlignmentStrip::lhitpos
 

Definition at line 55 of file AlignmentStrip.h.

Referenced by MakeAlignmentModule::ConvertToLocal(), AlignmentHistograms::FillHistograms(), AlignmentHistograms::FillLongitudinalHitPos(), and MakeAlignmentModule::RecalculateResiduals().

Double_t AlignmentStrip::lposrelmdl
 

Definition at line 47 of file AlignmentStrip.h.

Referenced by AlignmentHistograms::FillHistograms(), and MakeAlignmentModule::ProcessRecord().

UShort_t AlignmentStrip::ndigit
 

Definition at line 43 of file AlignmentStrip.h.

Referenced by AlignmentStrip(), NtpAlignCandStrip::NtpAlignCandStrip(), NtpAlignTrackStrip::NtpAlignTrackStrip(), and MakeAlignmentModule::PrintAlignmentStrip().

Double_t AlignmentStrip::pigtail
 

Definition at line 49 of file AlignmentStrip.h.

Referenced by MakeAlignmentModule::ConvertToLocal(), and AlignmentHistograms::FillHistograms().

Int_t AlignmentStrip::plane
 

Definition at line 41 of file AlignmentStrip.h.

Referenced by MakeAlignmentModule::CompareSRTrackAndMaxChargeTrack(), MakeAlignmentModule::FillHitStripHistograms(), MakeAlignmentModule::FillMaxChargeTrack(), MakeAlignmentModule::GetDirectionalCosines(), and MakeAlignmentModule::ProcessRecord().

UInt_t AlignmentStrip::plexseid
 

Definition at line 40 of file AlignmentStrip.h.

Referenced by AlignmentStrip(), MakeAlignmentModule::CompareSRTrackAndMaxChargeTrack(), MakeAlignmentModule::FillMaxChargeTrack(), DetectorAlignment::GetCandStrips(), DetectorAlignment::GetTrackStrips(), NtpAlignCandStrip::NtpAlignCandStrip(), NtpAlignTrackStrip::NtpAlignTrackStrip(), operator!=(), operator<(), operator<=(), operator==(), operator>(), operator>=(), MakeAlignmentModule::PrintAlignmentStrip(), MakeAlignmentModule::ProcessRecord(), MakeAlignmentModule::RecalculateResiduals(), DetectorAlignment::StripBelongsToUTrack(), and DetectorAlignment::StripBelongsToVTrack().

Double_t AlignmentStrip::residual
 

Definition at line 53 of file AlignmentStrip.h.

Referenced by AlignmentStrip(), MakeAlignmentModule::ConvertToLocal(), AlignmentHistograms::FillHistograms(), AlignmentHistograms::FillHitStrip(), MakeAlignmentModule::FillHitStripHistograms(), NtpAlignTrackStrip::NtpAlignTrackStrip(), MakeAlignmentModule::PrintAlignmentStrip(), and MakeAlignmentModule::RecalculateResiduals().

Int_t AlignmentStrip::strip
 

Definition at line 42 of file AlignmentStrip.h.

Referenced by MakeAlignmentModule::ProcessRecord().

Double_t AlignmentStrip::tpos
 

Definition at line 45 of file AlignmentStrip.h.

Referenced by AlignmentStrip(), MakeAlignmentModule::ConvertToLocal(), MakeAlignmentModule::GetDirectionalCosines(), MakeAlignmentModule::ProcessRecord(), and MakeAlignmentModule::RecalculateResiduals().

Double_t AlignmentStrip::tposrelmdl
 

Definition at line 46 of file AlignmentStrip.h.

Referenced by MakeAlignmentModule::ProcessRecord().

Double_t AlignmentStrip::wlsbypass
 

Definition at line 50 of file AlignmentStrip.h.

Referenced by MakeAlignmentModule::ConvertToLocal(), and AlignmentHistograms::FillHistograms().

Double_t AlignmentStrip::zpos
 

Definition at line 48 of file AlignmentStrip.h.

Referenced by AlignmentStrip(), MakeAlignmentModule::ConvertToLocal(), MakeAlignmentModule::FillHitStripHistograms(), MakeAlignmentModule::GetDirectionalCosines(), MakeAlignmentModule::ProcessRecord(), and MakeAlignmentModule::RecalculateResiduals().


The documentation for this class was generated from the following files:
Generated on Thu Nov 1 15:55:31 2007 for loon by  doxygen 1.3.9.1