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

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 charge_pc
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 14 of file AlignmentStrip.cxx.

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

AlignmentStrip::AlignmentStrip const CandStripHandle csh  ) 
 

Definition at line 37 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.

00038    :plexseid(0),
00039     plane(0),
00040     strip(0),
00041     ndigit(0),
00042     charge(0.0),
00043     charge_pc(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     charge_pc(0.0),
00077     tpos(0.0),
00078     tposrelmdl(0.0),
00079     lposrelmdl(0.0),
00080     zpos(0.0),
00081     pigtail(0.0),
00082     wlsbypass(0.0),
00083     begtime(0.0),
00084     endtime(0.0),
00085     residual(100.0),
00086     ghitpos(0.0),
00087     lhitpos(0.0),
00088     length(0.0),
00089     goodhit(true)
00090 {
00091    plexseid = strip->plexseid;
00092    ndigit   = strip->ndigit;
00093    charge   = strip->charge;
00094    residual = strip->residual;
00095    begtime  = strip->begtime;
00096 }

AlignmentStrip::AlignmentStrip const NtpAlignCandStrip strip  ) 
 

Definition at line 98 of file AlignmentStrip.cxx.

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

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

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 171 of file AlignmentStrip.cxx.

References plexseid.

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

bool AlignmentStrip::operator< const AlignmentStrip right  )  const
 

Definition at line 127 of file AlignmentStrip.cxx.

References begtime, and plexseid.

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

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

Definition at line 138 of file AlignmentStrip.cxx.

References plexseid.

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

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

Definition at line 163 of file AlignmentStrip.cxx.

References begtime, and plexseid.

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

bool AlignmentStrip::operator> const AlignmentStrip right  )  const
 

Definition at line 145 of file AlignmentStrip.cxx.

References begtime, and plexseid.

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

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

Definition at line 156 of file AlignmentStrip.cxx.

References plexseid.

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


Member Data Documentation

Double_t AlignmentStrip::begtime
 

Definition at line 52 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(), StatisticalFluctuations::Fill(), AlignmentHistograms::Fill(), AlignmentAlgorithm::FillCandStrip(), AlignmentStripHistograms::FillHistograms(), AlignmentHistograms::FillPlanePlex(), DetectorAlignment::GetCandStrips(), NtpAlignCandStrip::NtpAlignCandStrip(), NtpAlignTrackStrip::NtpAlignTrackStrip(), MakeAlignmentModule::PrintAlignmentStrip(), TrackDirectionModule::ProcessRecord(), MakeAlignmentModule::ReadRecord(), DetectorAlignment::StripBelongsToUTrack(), and DetectorAlignment::StripBelongsToVTrack().

Double_t AlignmentStrip::charge_pc
 

Definition at line 45 of file AlignmentStrip.h.

Referenced by AlignmentStripHistograms::FillHistograms(), and MakeAlignmentModule::ReadRecord().

Double_t AlignmentStrip::endtime
 

Definition at line 53 of file AlignmentStrip.h.

Referenced by AlignmentStrip().

Double_t AlignmentStrip::ghitpos
 

Definition at line 55 of file AlignmentStrip.h.

Referenced by TrackDirectionModule::ConvertToLocal(), MakeAlignmentModule::ConvertToLocal(), AlignmentAlgorithm::Fill(), TrackDirectionModule::GetDirectionalCosines(), TrackDirectionModule::ProcessRecord(), and MakeAlignmentModule::ReadRecord().

bool AlignmentStrip::goodhit
 

Definition at line 58 of file AlignmentStrip.h.

Referenced by TrackDirectionModule::ConvertToLocal(), MakeAlignmentModule::ConvertToLocal(), AlignmentAlgorithm::Fill(), and AlignmentStripHistograms::FillHistograms().

Double_t AlignmentStrip::length
 

Definition at line 57 of file AlignmentStrip.h.

Referenced by TrackDirectionModule::ConvertToLocal(), MakeAlignmentModule::ConvertToLocal(), and AlignmentStripHistograms::FillHistograms().

Double_t AlignmentStrip::lhitpos
 

Definition at line 56 of file AlignmentStrip.h.

Referenced by TrackDirectionModule::ConvertToLocal(), MakeAlignmentModule::ConvertToLocal(), AlignmentAlgorithm::Fill(), AlignmentStripHistograms::FillHistograms(), and MakeAlignmentModule::RecalculateResiduals().

Double_t AlignmentStrip::lposrelmdl
 

Definition at line 48 of file AlignmentStrip.h.

Referenced by AlignmentAlgorithm::Fill(), AlignmentStripHistograms::FillHistograms(), TrackDirectionModule::ProcessRecord(), and MakeAlignmentModule::ReadRecord().

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 50 of file AlignmentStrip.h.

Referenced by TrackDirectionModule::ConvertToLocal(), MakeAlignmentModule::ConvertToLocal(), and AlignmentStripHistograms::FillHistograms().

Int_t AlignmentStrip::plane
 

Definition at line 41 of file AlignmentStrip.h.

Referenced by AlignmentHistograms::FillPlanePlex(), TrackDirectionModule::GetDirectionalCosines(), TrackDirectionModule::ProcessRecord(), and MakeAlignmentModule::ReadRecord().

UInt_t AlignmentStrip::plexseid
 

Definition at line 40 of file AlignmentStrip.h.

Referenced by AlignmentStrip(), StatisticalFluctuations::Fill(), AlignmentHistograms::Fill(), AlignmentAlgorithm::Fill(), AlignmentAlgorithm::FillCandStrip(), DetectorAlignment::GetCandStrips(), DetectorAlignment::GetTrackStrips(), NtpAlignCandStrip::NtpAlignCandStrip(), NtpAlignTrackStrip::NtpAlignTrackStrip(), operator!=(), operator<(), operator<=(), operator==(), operator>(), operator>=(), MakeAlignmentModule::PrintAlignmentStrip(), TrackDirectionModule::ProcessRecord(), MakeAlignmentModule::ReadRecord(), MakeAlignmentModule::RecalculateResiduals(), DetectorAlignment::StripBelongsToUTrack(), and DetectorAlignment::StripBelongsToVTrack().

Double_t AlignmentStrip::residual
 

Definition at line 54 of file AlignmentStrip.h.

Referenced by AlignmentStrip(), TrackDirectionModule::ConvertToLocal(), MakeAlignmentModule::ConvertToLocal(), StatisticalFluctuations::Fill(), AlignmentHistograms::Fill(), AlignmentAlgorithm::Fill(), AlignmentStripHistograms::FillHistograms(), NtpAlignTrackStrip::NtpAlignTrackStrip(), MakeAlignmentModule::PrintAlignmentStrip(), and MakeAlignmentModule::RecalculateResiduals().

Int_t AlignmentStrip::strip
 

Definition at line 42 of file AlignmentStrip.h.

Referenced by AlignmentHistograms::FillPlanePlex(), TrackDirectionModule::ProcessRecord(), and MakeAlignmentModule::ReadRecord().

Double_t AlignmentStrip::tpos
 

Definition at line 46 of file AlignmentStrip.h.

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

Double_t AlignmentStrip::tposrelmdl
 

Definition at line 47 of file AlignmentStrip.h.

Referenced by TrackDirectionModule::ProcessRecord(), and MakeAlignmentModule::ReadRecord().

Double_t AlignmentStrip::wlsbypass
 

Definition at line 51 of file AlignmentStrip.h.

Referenced by TrackDirectionModule::ConvertToLocal(), MakeAlignmentModule::ConvertToLocal(), and AlignmentStripHistograms::FillHistograms().

Double_t AlignmentStrip::zpos
 

Definition at line 49 of file AlignmentStrip.h.

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


The documentation for this class was generated from the following files:
Generated on Mon Feb 15 11:08:34 2010 for loon by  doxygen 1.3.9.1