CMS 3D CMS Logo

DetGroup Class Reference

#include <TrackingTools/DetLayers/interface/DetGroup.h>

List of all members.

Public Types

typedef std::vector
< DetGroupElement
Base
typedef
DetGroupElement::DetWithState 
DetWithState

Public Member Functions

 DetGroup (const std::vector< DetWithState > &vec)
 DetGroup (int ind, int indSize)
 DetGroup ()
void incrementIndex (int incr)
int index () const
int indexSize () const
void setIndexSize (int newSize)

Private Attributes

int index_
int indexSize_


Detailed Description

Definition at line 33 of file DetGroup.h.


Member Typedef Documentation

typedef std::vector< DetGroupElement> DetGroup::Base

Definition at line 36 of file DetGroup.h.

typedef DetGroupElement::DetWithState DetGroup::DetWithState

Definition at line 37 of file DetGroup.h.


Constructor & Destructor Documentation

DetGroup::DetGroup (  )  [inline]

Definition at line 39 of file DetGroup.h.

00039 {}

DetGroup::DetGroup ( int  ind,
int  indSize 
) [inline]

Definition at line 40 of file DetGroup.h.

00040 : index_(ind), indexSize_(indSize) {}

DetGroup::DetGroup ( const std::vector< DetWithState > &  vec  )  [inline]

Definition at line 42 of file DetGroup.h.

References i.

00042                                                {
00043     reserve( vec.size());
00044     for (std::vector<DetWithState>::const_iterator i=vec.begin(); i!=vec.end(); i++) {
00045       push_back(DetGroupElement(*i));
00046     }
00047   }


Member Function Documentation

void DetGroup::incrementIndex ( int  incr  )  [inline]

Definition at line 55 of file DetGroup.h.

References index_, and indexSize_.

00055                                  {
00056     // for (iterator i=begin(); i!=end(); i++) i->incrementIndex(incr);
00057     index_ += incr;
00058     indexSize_ += incr;
00059   }

int DetGroup::index (  )  const [inline]

Definition at line 49 of file DetGroup.h.

References index_.

00049 {return index_;}

int DetGroup::indexSize (  )  const [inline]

Definition at line 51 of file DetGroup.h.

References indexSize_.

00051 {return indexSize_;}

void DetGroup::setIndexSize ( int  newSize  )  [inline]

Definition at line 53 of file DetGroup.h.

References indexSize_.

00053 {indexSize_ = newSize;}


Member Data Documentation

int DetGroup::index_ [private]

Definition at line 63 of file DetGroup.h.

Referenced by incrementIndex(), and index().

int DetGroup::indexSize_ [private]

Definition at line 64 of file DetGroup.h.

Referenced by incrementIndex(), indexSize(), and setIndexSize().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:18:23 2009 for CMSSW by  doxygen 1.5.4