CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
DetGroup Class Reference

#include <DetGroup.h>

Inheritance diagram for DetGroup:

Public Types

typedef std::vector< DetGroupElementBase
 
typedef DetGroupElement::DetWithState DetWithState
 

Public Member Functions

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

Private Attributes

int index_
 
int indexSize_
 

Detailed Description

Definition at line 41 of file DetGroup.h.

Member Typedef Documentation

◆ Base

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

Definition at line 43 of file DetGroup.h.

◆ DetWithState

Definition at line 44 of file DetGroup.h.

Constructor & Destructor Documentation

◆ DetGroup() [1/5]

DetGroup::DetGroup ( )
inline

Definition at line 46 of file DetGroup.h.

46 : index_(0), indexSize_(0) {}
int indexSize_
Definition: DetGroup.h:85
int index_
Definition: DetGroup.h:84

◆ DetGroup() [2/5]

DetGroup::DetGroup ( DetGroup const &  rhs)
inline

Definition at line 47 of file DetGroup.h.

47 : Base(rhs), index_(rhs.index_), indexSize_(rhs.indexSize_) {}
int indexSize_
Definition: DetGroup.h:85
std::vector< DetGroupElement > Base
Definition: DetGroup.h:43
int index_
Definition: DetGroup.h:84

◆ DetGroup() [3/5]

DetGroup::DetGroup ( DetGroup &&  rhs)
inlinenoexcept

Definition at line 48 of file DetGroup.h.

48 : Base(std::forward<Base>(rhs)), index_(rhs.index_), indexSize_(rhs.indexSize_) {}
int indexSize_
Definition: DetGroup.h:85
std::vector< DetGroupElement > Base
Definition: DetGroup.h:43
int index_
Definition: DetGroup.h:84

◆ DetGroup() [4/5]

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

Definition at line 62 of file DetGroup.h.

62 : index_(ind), indexSize_(indSize) {}
int indexSize_
Definition: DetGroup.h:85
int index_
Definition: DetGroup.h:84

◆ DetGroup() [5/5]

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

Definition at line 64 of file DetGroup.h.

References mps_fire::i, and push_back().

64  {
65  reserve(vec.size());
66  for (std::vector<DetWithState>::const_iterator i = vec.begin(); i != vec.end(); i++) {
68  }
69  }
deadvectors [0] push_back({0.0175431, 0.538005, 6.80997, 13.29})

Member Function Documentation

◆ incrementIndex()

void DetGroup::incrementIndex ( int  incr)
inline

Definition at line 77 of file DetGroup.h.

References index_, and indexSize_.

77  {
78  // for (iterator i=begin(); i!=end(); i++) i->incrementIndex(incr);
79  index_ += incr;
80  indexSize_ += incr;
81  }
int indexSize_
Definition: DetGroup.h:85
int index_
Definition: DetGroup.h:84

◆ index()

int DetGroup::index ( ) const
inline

Definition at line 71 of file DetGroup.h.

References index_.

71 { return index_; }
int index_
Definition: DetGroup.h:84

◆ indexSize()

int DetGroup::indexSize ( ) const
inline

Definition at line 73 of file DetGroup.h.

References indexSize_.

73 { return indexSize_; }
int indexSize_
Definition: DetGroup.h:85

◆ operator=() [1/2]

DetGroup& DetGroup::operator= ( DetGroup const &  rhs)
inline

Definition at line 49 of file DetGroup.h.

References index_, indexSize_, and operator=().

49  {
50  Base::operator=(rhs);
51  index_ = rhs.index_;
52  indexSize_ = rhs.indexSize_;
53  return *this;
54  }
Basic3DVector & operator=(const Basic3DVector &)=default
Assignment operator.
int indexSize_
Definition: DetGroup.h:85
int index_
Definition: DetGroup.h:84

◆ operator=() [2/2]

DetGroup& DetGroup::operator= ( DetGroup &&  rhs)
inlinenoexcept

Definition at line 55 of file DetGroup.h.

References index_, indexSize_, and operator=().

55  {
56  Base::operator=(std::forward<Base>(rhs));
57  index_ = rhs.index_;
58  indexSize_ = rhs.indexSize_;
59  return *this;
60  }
Basic3DVector & operator=(const Basic3DVector &)=default
Assignment operator.
int indexSize_
Definition: DetGroup.h:85
int index_
Definition: DetGroup.h:84

◆ setIndexSize()

void DetGroup::setIndexSize ( int  newSize)
inline

Definition at line 75 of file DetGroup.h.

References indexSize_.

75 { indexSize_ = newSize; }
int indexSize_
Definition: DetGroup.h:85

Member Data Documentation

◆ index_

int DetGroup::index_
private

Definition at line 84 of file DetGroup.h.

Referenced by incrementIndex(), index(), and operator=().

◆ indexSize_

int DetGroup::indexSize_
private

Definition at line 85 of file DetGroup.h.

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