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

UgliStripShape Class Reference

#include <UgliStripShape.h>

List of all members.

Public Member Functions

 UgliStripShape ()
virtual ~UgliStripShape ()
 UgliStripShape (const char *name, Float_t totLen, Float_t wlsEast, Float_t wlsWest, Float_t lenEastPart, Float_t lenWestPart, Float_t wlsLenBypass=0)
Float_t GetTotLen () const
Float_t GetWls (StripEnd::StripEnd_t end) const
Float_t GetLenPart (StripEnd::StripEnd_t end) const
Float_t GetWlsLenBypass () const

Static Public Member Functions

Float_t HalfWidth ()
Float_t HalfThick ()

Protected Attributes

Float_t fWlsEast
Float_t fWlsWest
Float_t fLenEastPart
Float_t fLenWestPart
Float_t fWlsLenBypass


Constructor & Destructor Documentation

UgliStripShape::UgliStripShape  )  [inline]
 

Definition at line 25 of file UgliStripShape.h.

00025 {};

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

Definition at line 26 of file UgliStripShape.h.

00026 {};

UgliStripShape::UgliStripShape const char *  name,
Float_t  totLen,
Float_t  wlsEast,
Float_t  wlsWest,
Float_t  lenEastPart,
Float_t  lenWestPart,
Float_t  wlsLenBypass = 0
 

Definition at line 22 of file UgliStripShape.cxx.

References MSG.

00026    : TBRIK(name,name,"scint",0.5*totLen,HalfWidth(),HalfThick()),
00027      fWlsEast(wlsEast), fWlsWest(wlsWest),
00028      fLenEastPart(lenEastPart), fLenWestPart(lenWestPart),
00029      fWlsLenBypass(wlsLenBypass) 
00030 { 
00031    MsgFormat lenfmt("%5.1f");
00032 
00033    MSG("Ugli",Msg::kVerbose)
00034       << "UgliStripShape " << name
00035       << " totlen " << lenfmt(totLen/Munits::cm) << endl;
00036 
00037 }


Member Function Documentation

Float_t UgliStripShape::GetLenPart StripEnd::StripEnd_t  end  )  const [inline]
 

Definition at line 67 of file UgliStripShape.h.

Referenced by UgliStripNode::PartialLength().

00068 { 
00069    switch (end) {
00070    case (StripEnd::kEast):  return fLenEastPart; 
00071    case (StripEnd::kWest):  return fLenWestPart;
00072    case (StripEnd::kWhole): return 2 * fDx;
00073    default: return 0;
00074    }
00075 }

Float_t UgliStripShape::GetTotLen  )  const [inline]
 

Definition at line 36 of file UgliStripShape.h.

00036 { return 2 * fDx; }

Float_t UgliStripShape::GetWls StripEnd::StripEnd_t  end  )  const [inline]
 

Definition at line 54 of file UgliStripShape.h.

References fLenEastPart, fWlsEast, fWlsLenBypass, and fWlsWest.

Referenced by UgliStripNode::WlsPigtail().

00055 { 
00056    switch (end) {
00057    case (StripEnd::kEast): return fWlsEast; 
00058    case (StripEnd::kWest): return fWlsWest; 
00059    case (StripEnd::kWhole): 
00060       return fWlsEast + fWlsWest + 
00061          ( (!fWlsLenBypass) ? 2*fDx :                // unbroken strip
00062            fWlsLenBypass+fLenEastPart+fLenWestPart); // split strip
00063    default: return 0;
00064    }
00065 }

Float_t UgliStripShape::GetWlsLenBypass  )  const [inline]
 

Definition at line 40 of file UgliStripShape.h.

Referenced by UgliStripNode::WlsBypass().

00040 { return fWlsLenBypass; }

Float_t UgliStripShape::HalfThick  )  [inline, static]
 

Definition at line 34 of file UgliStripShape.h.

00034 { return 0.5 * 1.0 * Munits::cm; }

Float_t UgliStripShape::HalfWidth  )  [inline, static]
 

Definition at line 33 of file UgliStripShape.h.

00033 { return 0.5 * 4.1 * Munits::cm; }


Member Data Documentation

Float_t UgliStripShape::fLenEastPart [protected]
 

Definition at line 45 of file UgliStripShape.h.

Referenced by GetWls().

Float_t UgliStripShape::fLenWestPart [protected]
 

Definition at line 45 of file UgliStripShape.h.

Float_t UgliStripShape::fWlsEast [protected]
 

Definition at line 44 of file UgliStripShape.h.

Referenced by GetWls().

Float_t UgliStripShape::fWlsLenBypass [protected]
 

Definition at line 46 of file UgliStripShape.h.

Referenced by GetWls().

Float_t UgliStripShape::fWlsWest [protected]
 

Definition at line 44 of file UgliStripShape.h.

Referenced by GetWls().


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