TridModelIntersect Class Reference

#include <TridModelIntersect.h>

Inheritance diagram for TridModelIntersect:
TridModel

List of all members.

Public Member Functions

 TridModelIntersect (TridModelStrip &modelStrip1, TridModelStrip &modelStrip2)
virtual void Print (std::ostream &os=std::cout) const

Public Attributes

PlexStripEndId fStrip1
PlexStripEndId fStrip2

Detailed Description

Definition at line 8 of file TridModelIntersect.h.


Constructor & Destructor Documentation

TridModelIntersect::TridModelIntersect ( TridModelStrip modelStrip1,
TridModelStrip modelStrip2 
)

Definition at line 4 of file TridModelIntersect.cxx.

References TridModel::AddFromModel(), TridModelStrip::fStrip, fStrip1, fStrip2, PlexPlaneId::GetPlane(), and TridModel::SetSortKey().

00006 {
00007   // Ensure that fStrip1 has the lower plane number.
00008   fStrip1 = modelStrip1.fStrip;
00009   fStrip2 = modelStrip2.fStrip;
00010   if(fStrip1.GetPlane() > fStrip2.GetPlane() ){
00011       fStrip1 = modelStrip2.fStrip;
00012       fStrip2 = modelStrip1.fStrip;
00013   }
00014   SetSortKey(fStrip1.GetPlane());
00015 
00016   // Insert all the hits.
00017   AddFromModel(&modelStrip1);
00018   AddFromModel(&modelStrip2);
00019 }


Member Function Documentation

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

Reimplemented from TridModel.

Definition at line 23 of file TridModelIntersect.cxx.

References PlexStripEndId::AsString(), Form(), fStrip1, fStrip2, PlexPlaneId::GetPlane(), and PlexStripEndId::GetStrip().

00024 {
00025   os << "Intersection: " << std::endl;
00026   os << Form("Strip1 ID:             %s",fStrip1.AsString("e")) << std::endl;
00027   os << Form("Plane1:                %d",fStrip1.GetPlane()) << std::endl;
00028   os << Form("Strip1:                %d",fStrip1.GetStrip()) << std::endl;
00029   os << Form("Strip2 ID:             %s",fStrip2.AsString("e")) << std::endl;
00030   os << Form("Plane2:                %d",fStrip2.GetPlane()) << std::endl;
00031   os << Form("Strip2:                %d",fStrip2.GetStrip()) << std::endl;
00032   os << "" << std::endl;
00033   TridModel::Print(os);
00034 }


Member Data Documentation

Definition at line 13 of file TridModelIntersect.h.

Referenced by Print(), and TridModelIntersect().

Definition at line 14 of file TridModelIntersect.h.

Referenced by Print(), and TridModelIntersect().


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1