TridModelStrip Class Reference

#include <TridModelStrip.h>

Inheritance diagram for TridModelStrip:
TridModel

List of all members.

Public Member Functions

 TridModelStrip (PlexStripEndId seid)
virtual ~TridModelStrip ()
virtual void AddDigit (CandDigitHandle cdh)
virtual void AddStrip (Int_t stripid, const VldContext &cx, const NtpSRStrip *stripobj, StripEnd::StripEnd_t end=StripEnd::kWhole)
virtual void Print (std::ostream &os=std::cout) const
virtual Bool_t ShouldContain (PlexStripEndId seid)

Public Attributes

PlexStripEndId fStrip
Int_t fIntersections

Detailed Description

Definition at line 6 of file TridModelStrip.h.


Constructor & Destructor Documentation

TridModelStrip::TridModelStrip ( PlexStripEndId  seid  ) 

Definition at line 4 of file TridModelStrip.cxx.

References fStrip, PlexPlaneId::GetPlane(), and TridModel::SetSortKey().

00005   : fStrip(seid),
00006     fIntersections(0)
00007 {
00008   SetSortKey( fStrip.GetPlane() );
00009 }

virtual TridModelStrip::~TridModelStrip (  )  [inline, virtual]

Definition at line 10 of file TridModelStrip.h.

00010 {};


Member Function Documentation

void TridModelStrip::AddDigit ( CandDigitHandle  cdh  )  [virtual]
void TridModelStrip::AddStrip ( Int_t  stripid,
const VldContext cx,
const NtpSRStrip stripobj,
StripEnd::StripEnd_t  end = StripEnd::kWhole 
) [virtual]

Reimplemented from TridModel.

Definition at line 34 of file TridModelStrip.cxx.

References fStrip, PlexStripEndId::GetEnd(), StripEnd::kWhole, and PlexStripEndId::SetEnd().

Referenced by TridModelMaker::CreateStripModels().

00038 {
00039   if(fStrip.GetEnd() != end)
00040     fStrip.SetEnd(StripEnd::kWhole);
00041   TridModel::AddStrip(stripid, cx, stripobj, end);
00042 }

void TridModelStrip::Print ( std::ostream &  os = std::cout  )  const [virtual]

Reimplemented from TridModel.

Definition at line 11 of file TridModelStrip.cxx.

References StripEnd::AsString(), PlexStripEndId::AsString(), PlaneView::AsString(), PlaneCoverage::AsString(), Form(), fStrip, PlexStripEndId::GetEnd(), PlexPlaneId::GetPlane(), PlexPlaneId::GetPlaneCoverage(), PlexPlaneId::GetPlaneView(), PlexStripEndId::GetStrip(), and PlexPlaneId::IsVetoShield().

00012 {
00013   os << "Strip:" << std::endl;
00014   os << Form("Strip ID:              %s",fStrip.AsString("e")) << std::endl;
00015   os << Form("Plane:                 %d",fStrip.GetPlane()) << std::endl;
00016   os << Form("Strip:                 %d",fStrip.GetStrip()) << std::endl;
00017   os << Form("View:                  %s",PlaneView::AsString(fStrip.GetPlaneView())) << std::endl;
00018   os << Form("Is Veto Hit:           %s",fStrip.IsVetoShield()?"Yes":"No") << std::endl;
00019   os << Form("Plane Coverage:        %s",PlaneCoverage::AsString(fStrip.GetPlaneCoverage())) << std::endl;
00020   os << std::endl;
00021   os << Form("Hits ends:             %s",StripEnd::AsString(fStrip.GetEnd()));
00022   os << std::endl;
00023   TridModel::Print(os);
00024 }

Bool_t TridModelStrip::ShouldContain ( PlexStripEndId  seid  )  [virtual]

Definition at line 44 of file TridModelStrip.cxx.

References fStrip, and PlexStripEndId::IsSameStrip().

Referenced by TridModelMaker::CreateStripModels().

00045 {
00046   return fStrip.IsSameStrip(seid);
00047 }


Member Data Documentation

Definition at line 13 of file TridModelStrip.h.

Referenced by TridModelMaker::CreateIntersectionModels().


The documentation for this class was generated from the following files:

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1