#include <PlexStripEndId.h>
Inheritance diagram for PlexStripEndId:

|
|
Definition at line 132 of file PlexStripEndId.h. Referenced by Unbuild18BitPlnStripKey(), and UnbuildPlnStripEndKey(). 00132 { fEncoded = defaultPlexStripEndId; }
|
|
||||||||||||||||||||
|
Definition at line 37 of file PlexStripEndId.cxx. References PlexPlaneId::IsVetoShield(), SetEnd(), SetIsSteel(), SetStrip(), and SetSubPart(). 00041 : PlexPlaneId(plnid) 00042 { 00043 // Normal ctor from PlaneId + extras 00044 00045 // ensure that it isn't tagged as "steel" even if plnid was 00046 // but don't do this for veto shield as we use steel bit 00047 // in that case for additional PlaneCoverage enums 00048 if (!IsVetoShield()) SetIsSteel(kFALSE); 00049 00050 SetStrip(strip); 00051 SetEnd(end); 00052 SetSubPart(subpart); 00053 00054 }
|
|
||||||||||||||||||||||||||||||||
|
Definition at line 57 of file PlexStripEndId.cxx. References SetEnd(), SetStrip(), and SetSubPart(). 00064 : PlexPlaneId(detector,plane,kFALSE,view,coverage) 00065 { 00066 // Normal ctor from all components 00067 00068 SetStrip(strip); 00069 SetEnd(end); 00070 SetSubPart(subpart); 00071 }
|
|
|
Definition at line 40 of file PlexStripEndId.h. 00040 { ; } // no owned data members
|
|
|
Definition at line 133 of file PlexStripEndId.h. 00134 { fEncoded = encoded; }
|
|
|
|
Definition at line 214 of file PlexStripEndId.cxx. References PlexPlaneId::GetPlane(), and GetStrip(). Referenced by CDTruthifier::ExtractAllCandStripHandles(), CDTruthifier::ExtractAllDigiScintHits(), CDCosmicTracker::FindStripTrack(), CDBeamMuTracker::FindStripTrack(), RerootFlsDigitToDigiPE::Get(), CDCrossTalker::GetCleanStripMap(), CDMapMaker::GetStripMap(), and PhotonTransport::SimulateScintHit().
|
|
|
|
|
|
Definition at line 188 of file PlexStripEndId.cxx. References PlexPlaneId::GetDetector(), PlexPlaneId::GetPlaneView(), GetStrip(), and MAXMSG. 00189 {
00190 // Return the side with the "F1" manifold (construction notation)
00191
00192 switch (GetDetector()) {
00193 case Detector::kFar:
00194 // lower half has F1 on West side, upper on the East
00195 return ((GetStrip()<96) ? StripEnd::kWest : StripEnd::kEast );
00196 break;
00197 case Detector::kCalDet:
00198 {
00199 // ???? this might not be right!!!
00200 MAXMSG("Plex",Msg::kWarning,10)
00201 << "GetManifoldF1 not verified for CalDet!!" << endl;
00202 return ((GetPlaneView()==PlaneView::kU) ?
00203 StripEnd::kDown : StripEnd::kWest );
00204 }
00205 break;
00206 default:
00207 // near detector only has west side
00208 return StripEnd::kWest;
00209 }
00210 }
|
|
|
Definition at line 178 of file PlexStripEndId.cxx. References PlexScintMdlId::GetMapperStripInMdl(). 00179 {
00180 // Return an strip # within a module using construction based notation
00181 // starts w/ 1 .. flip flops w/ increasing 'tpos' depending on
00182 // installation orientation
00183
00184 return PlexScintMdlId::GetMapperStripInMdl(*this,this->GetStrip());
00185 }
|
|
|
Definition at line 144 of file PlexStripEndId.cxx. References GetEnd(), and SetEnd(). Referenced by PulserSummaryList::Add(), PulserFromRawSummaryList::Add(), TridModelStrip::AddDigit(), LIRawNt::Ana(), PEGainModule::MakeHistosFromData(), Plotter::Plot(), LISummarySorter::ReconstructStripEnd(), ShieldGeom::SetupShieldGeom(), and PlexValidate::TestStripEndId(). 00145 {
00146 // Return an Id for the opposite end
00147
00148 PlexStripEndId other(fEncoded);
00149 StripEnd::StripEnd_t end = GetEnd();
00150 switch (end) {
00151 case StripEnd::kNegative: end = StripEnd::kPositive; break;
00152 case StripEnd::kPositive: end = StripEnd::kNegative; break;
00153 default: break;
00154 }
00155 other.SetEnd(end);
00156 return other;
00157
00158 }
|
|
|
Definition at line 161 of file PlexStripEndId.cxx. References PlexScintMdlId::StripToScintMdl(). Referenced by AlignmentHistograms::FillHits(), and UgliDbiTables::GetDbiStripById(). 00162 {
00163 // Return an Id for the scint module this strip is in
00164
00165 return PlexScintMdlId::StripToScintMdl(*this,this->GetStrip());
00166 }
|
|
|
|
Definition at line 169 of file PlexStripEndId.cxx. References PlexScintMdlId::GetStripInMdl(). Referenced by UgliDbiTables::GetDbiStripById(). 00170 {
00171 // Return an strip # within a module
00172 // using offline convention of [0,nstripInMdl)
00173
00174 return PlexScintMdlId::GetStripInMdl(*this,this->GetStrip());
00175 }
|
|
|
Definition at line 147 of file PlexStripEndId.h. Referenced by AsString(), PlexValidate::BuildAndTestSEId(), PlexSEIdAltL::Print(), PlexVetoShieldHack::RenumberMdlToMux(), and PlexVetoShieldHack::RenumberMuxToMdl(). 00148 {
00149 Int_t bitField = ( fEncoded & maskPlexIdSubPart ) >> shftPlexIdSubPart;
00150 return (StripEnd::StripEnd_t) bitField;
00151 }
|
|
|
Definition at line 153 of file PlexStripEndId.h. References maskPlexIdEnd. 00154 {
00155 // uncompactified, but unencumbered w/ end and subpart
00156 // and still usable for creating a PlexStripEndId (sets kWhole for both)
00157
00158 return
00159 ( fEncoded & ~(maskPlexIdEnd|maskPlexIdSubPart) ) |
00160 ( ( StripEnd::kWhole << shftPlexIdSubPart ) & maskPlexIdSubPart ) |
00161 ( ( StripEnd::kWhole << shftPlexIdEnd ) & maskPlexIdEnd ) ;
00162
00163 }
|
|
|
Definition at line 339 of file PlexStripEndId.cxx. References GetEnd(), and IsSameStrip(). Referenced by FarPlaneCheckout::Ana(), PlexSEIdAltL::SetToOppositeEnds(), and PlexValidate::TestStripEndId(). 00340 {
00341 // Determine if "this" and "other" are the same strip
00342 // but opposite ends.
00343 // !!!! Assumes one can test this by != on ends
00344
00345 return (GetEnd() != other.GetEnd() && IsSameStrip(other) );
00346
00347 }
|
|
|
Definition at line 319 of file PlexStripEndId.cxx. References PlexPlaneId::GetDetector(), PlexPlaneId::GetPlane(), and GetStrip(). Referenced by IsOppositeStripEnd(), VaDigit::IsSameStrip(), IsSameStripEnd(), AlgStripSRList::RunAlgFar(), AlgStripSRList::RunAlgMixed(), AlgStripSRList::RunAlgNear(), TridModelStrip::ShouldContain(), and PlexValidate::TestStripEndId(). 00320 {
00321 // Determine if "this" and "other" are the same strip
00322
00323 return (GetDetector() == other.GetDetector() &&
00324 GetPlane() == other.GetPlane() &&
00325 GetStrip() == other.GetStrip() );
00326
00327 }
|
|
|
Definition at line 330 of file PlexStripEndId.cxx. References GetEnd(), and IsSameStrip(). Referenced by LIPatternFinderFancy::FindLedIdFromStripEndId(), and PlexValidate::TestStripEndId(). 00331 {
00332 // Determine if "this" and "other" are the same strip and end
00333
00334 return (GetEnd() == other.GetEnd() && IsSameStrip(other) );
00335
00336 }
|
|
|
|
Reimplemented from PlexPlaneId. Definition at line 361 of file PlexStripEndId.cxx. References AsString(), and option. Referenced by LIPlexMaps::MakeCalAdcToPe(), operator<<(), LIGainCurve::PlotData(), LIPlexMaps::ReadDbCalStripAtten(), LIPlexMaps::ReadDbCalStripToStrip(), and PlexValidate::TestStripEndId(). 00362 {
00363 // Print the (decoded) value
00364
00365 printf("%s\n",AsString(option));
00366 }
|
|
|
|
Reimplemented from PlexPlaneId. Definition at line 104 of file PlexStripEndId.h. Referenced by PlexStripEndId(). 00104 {;}
|
|
|
Definition at line 171 of file PlexStripEndId.h. Referenced by PTSimHit::Clear(), PulserDriftCalScheme::GetDriftCorrected(), PlexusReroot::GetSEIdAltL(), and PlexStripEndId(). 00172 {
00173 fEncoded = ( fEncoded & ~maskPlexIdStrip ) |
00174 ( ( strip << shftPlexIdStrip ) & maskPlexIdStrip );
00175 }
|
|
|
Definition at line 177 of file PlexStripEndId.h. Referenced by UgliScintPlnNode::GetStripNode(), GeoScintMdlVolume::GetStripNode(), HardwareComponent::HardwareComponent(), PlexStripEndId(), and UgliDbiStrip::UgliDbiStrip(). 00178 {
00179 fEncoded = ( fEncoded & ~maskPlexIdSubPart ) |
00180 ( ( subpart << shftPlexIdSubPart ) & maskPlexIdSubPart );
00181 }
|
|
||||||||||||
|
Definition at line 220 of file PlexStripEndId.cxx. References det, maskPlexIdStrip, and PlexStripEndId(). 00221 {
00222 // recover true id object from hashed down version
00223 // needs detector info that was lost in compactification
00224 // obviously can't recover end info that was lost
00225
00226 const UInt_t maskLower = ( maskPlexIdStrip >> shftPlexIdStrip );
00227 UInt_t strip = key & maskLower;
00228 UInt_t plane = key >> bitsPlexIdStrip;
00229 return PlexStripEndId(det,plane,strip);
00230 }
|
|
||||||||||||
|
Definition at line 289 of file PlexStripEndId.cxx. References Detector::AsString(), det, MAXMSG, and PlexStripEndId(). Referenced by CheckGC::checklin(), PhotonStatSummarizer::LoadDataFromDB(), PulserGainFit::RunNearFarFits(), and PulserGainFit::RunPinFits(). 00290 {
00291 // recover true id object from hashed down version
00292 // needs detector info that was lost in compactification
00293 Int_t nStrips = 192; // need some default
00294 switch (det) {
00295 case Detector::kNear: nStrips = 96; break;
00296 case Detector::kFar: nStrips = 192; break;
00297 case Detector::kCalDet: nStrips = 24; break;
00298 default:
00299 MAXMSG("Plex",Msg::kWarning,10)
00300 << "PlexStripEndId " << Detector::AsString(det)
00301 << "(" << (int)det << ")"
00302 << " is not Near/Far/CalDet" << endl;
00303 }
00304
00305 StripEnd::StripEnd_t end = StripEnd::kWest;
00306 if ( Detector::kNear != det ) {
00307 // NearDet has only west readout so it isn't part of the hash
00308 if ( key & 1 ) end = StripEnd::kWest;
00309 else end = StripEnd::kEast;
00310 key >>= 1; // for non-NearDet we can now remove bit
00311 }
00312 Int_t plane = key / nStrips;
00313 Int_t strip = key - (plane*nStrips);
00314
00315 return PlexStripEndId(det,plane,strip,end);
00316 }
|
|
||||||||||||
|
Definition at line 123 of file PlexStripEndId.h.
|
|
||||||||||||
|
Definition at line 114 of file PlexStripEndId.h.
|
|
||||||||||||
|
Definition at line 117 of file PlexStripEndId.h.
|
|
||||||||||||
|
Definition at line 120 of file PlexStripEndId.h.
|
|
||||||||||||
|
Definition at line 126 of file PlexStripEndId.h.
|
|
||||||||||||
|
Definition at line 129 of file PlexStripEndId.h.
|
1.3.9.1