CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

StackedTrackerDetUnit Class Reference

#include <StackedTrackerDetUnit.h>

List of all members.

Public Types

typedef std::map< unsigned int,
DetId
StackContents
typedef std::map< unsigned int,
DetId >::const_iterator 
StackContentsIterator

Public Member Functions

StackedTrackerDetId Id () const
int size ()
 StackedTrackerDetUnit ()
 StackedTrackerDetUnit (StackedTrackerDetId aStackId, const StackContents &listStackMembers)
 StackedTrackerDetUnit (const StackedTrackerDetUnit &aDetUnit)
DetId stackMember (unsigned int stackMemberIdentifier) const
 Method to return the Stack Member (argument = 0 means inner, argument = 1 means outer )
const StackContentstheStackMembers () const

Private Attributes

StackedTrackerDetId StackId
StackContents stackMembers

Detailed Description

Stacked Tracker Simulations Andrew W. Rose 2008

Definition at line 21 of file StackedTrackerDetUnit.h.


Member Typedef Documentation

typedef std::map< unsigned int , DetId > StackedTrackerDetUnit::StackContents

Definition at line 23 of file StackedTrackerDetUnit.h.

typedef std::map< unsigned int , DetId >::const_iterator StackedTrackerDetUnit::StackContentsIterator

Definition at line 24 of file StackedTrackerDetUnit.h.


Constructor & Destructor Documentation

StackedTrackerDetUnit::StackedTrackerDetUnit ( )

//////////////////////////////////////// Stacked Tracker Simulations /// Written by: /// Andrew W. Rose /// 2008 /// //////////////////////////////////////

Definition at line 10 of file StackedTrackerDetUnit.cc.

{}
StackedTrackerDetUnit::StackedTrackerDetUnit ( StackedTrackerDetId  aStackId,
const StackContents listStackMembers 
)

Definition at line 12 of file StackedTrackerDetUnit.cc.

  : StackId(aStackId),
    stackMembers(listStackMembers)
{}
StackedTrackerDetUnit::StackedTrackerDetUnit ( const StackedTrackerDetUnit aDetUnit)

Definition at line 18 of file StackedTrackerDetUnit.cc.

  : StackId( aDetUnit.Id() ),
    stackMembers( aDetUnit.theStackMembers() )
{}

Member Function Documentation

StackedTrackerDetId StackedTrackerDetUnit::Id ( ) const [inline]
int StackedTrackerDetUnit::size ( void  ) [inline]

Definition at line 31 of file StackedTrackerDetUnit.h.

References stackMembers.

{return stackMembers.size();}
DetId StackedTrackerDetUnit::stackMember ( unsigned int  stackMemberIdentifier) const

Method to return the Stack Member (argument = 0 means inner, argument = 1 means outer )

Definition at line 24 of file StackedTrackerDetUnit.cc.

References stackMembers.

Referenced by L1TkClusterBuilder< T >::produce().

{
  if( stackMembers.find(stackMemberIdentifier) != stackMembers.end() )
  {
    return stackMembers.find(stackMemberIdentifier)->second;
  }
  return DetId(0);
}
const StackContents& StackedTrackerDetUnit::theStackMembers ( ) const [inline]

Definition at line 35 of file StackedTrackerDetUnit.h.

References stackMembers.

Referenced by StackedTrackerGeometry::meanPlane().

{return stackMembers;}

Member Data Documentation

Definition at line 38 of file StackedTrackerDetUnit.h.

Referenced by Id().

Definition at line 39 of file StackedTrackerDetUnit.h.

Referenced by size(), stackMember(), and theStackMembers().