CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

DetGroup Class Reference

#include <DetGroup.h>

List of all members.

Public Types

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

Public Member Functions

 DetGroup ()
 DetGroup (int ind, int indSize)
 DetGroup (const std::vector< DetWithState > &vec)
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 48 of file DetGroup.h.


Member Typedef Documentation

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

Definition at line 51 of file DetGroup.h.

Definition at line 52 of file DetGroup.h.


Constructor & Destructor Documentation

DetGroup::DetGroup ( ) [inline]

Definition at line 54 of file DetGroup.h.

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

Definition at line 73 of file DetGroup.h.

: index_(ind), indexSize_(indSize) {}
DetGroup::DetGroup ( const std::vector< DetWithState > &  vec) [inline]

Definition at line 75 of file DetGroup.h.

References i.

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

Member Function Documentation

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

Definition at line 88 of file DetGroup.h.

References index_, and indexSize_.

                                 {
    // for (iterator i=begin(); i!=end(); i++) i->incrementIndex(incr);
    index_ += incr;
    indexSize_ += incr;
  }
int DetGroup::index ( ) const [inline]

Definition at line 82 of file DetGroup.h.

References index_.

{return index_;}
int DetGroup::indexSize ( ) const [inline]

Definition at line 84 of file DetGroup.h.

References indexSize_.

{return indexSize_;}
void DetGroup::setIndexSize ( int  newSize) [inline]

Definition at line 86 of file DetGroup.h.

References indexSize_.

{indexSize_ = newSize;}

Member Data Documentation

int DetGroup::index_ [private]

Definition at line 96 of file DetGroup.h.

Referenced by incrementIndex(), and index().

int DetGroup::indexSize_ [private]

Definition at line 97 of file DetGroup.h.

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