MINT2
Public Member Functions | List of all members
DalitzCoordSet Class Reference

#include <DalitzCoordSet.h>

Inheritance diagram for DalitzCoordSet:
MINT::PolymorphMap< DalitzCoordKey, DalitzCoordinate >

Public Member Functions

 DalitzCoordSet ()
 
 DalitzCoordSet (const DalitzCoordinate &dc_1)
 
 DalitzCoordSet (const std::vector< int > &dc_1)
 
 DalitzCoordSet (const DalitzCoordinate &dc_1, const DalitzCoordinate &dc_2)
 
 DalitzCoordSet (const DalitzCoordinate &dc_1, const DalitzCoordinate &dc_2, const DalitzCoordinate &dc_3)
 
 DalitzCoordSet (const DalitzCoordinate &dc_1, const DalitzCoordinate &dc_2, const DalitzCoordinate &dc_3, const DalitzCoordinate &dc_4)
 
 DalitzCoordSet (const DalitzCoordinate &dc_1, const DalitzCoordinate &dc_2, const DalitzCoordinate &dc_3, const DalitzCoordinate &dc_4, const DalitzCoordinate &dc_5)
 
 DalitzCoordSet (const DalitzCoordSet &other)
 
virtual ~DalitzCoordSet ()
 
std::string name () const
 
std::string nameFileSave () const
 
void add (const DalitzCoordinate &dc_1)
 
void add (const DalitzCoordinate &dc_1, const DalitzCoordinate &dc_2)
 
void add (const DalitzCoordinate &dc_1, const DalitzCoordinate &dc_2, const DalitzCoordinate &dc_3)
 
void add (const DalitzCoordinate &dc_1, const DalitzCoordinate &dc_2, const DalitzCoordinate &dc_3, const DalitzCoordinate &dc_4)
 
void add (const DalitzCoordinate &dc_1, const DalitzCoordinate &dc_2, const DalitzCoordinate &dc_3, const DalitzCoordinate &dc_4, const DalitzCoordinate &dc_5)
 
void add (const DalitzCoordSet &dcl)
 
void print (std::ostream &os) const
 
- Public Member Functions inherited from MINT::PolymorphMap< DalitzCoordKey, DalitzCoordinate >
 PolymorphMap ()
 
 PolymorphMap (const PolymorphMap &other)
 
 PolymorphMap (const typename std::map< DalitzCoordKey, DalitzCoordinate > &other)
 
virtual ~PolymorphMap ()
 
std::map< DalitzCoordKey, DalitzCoordinate > & theMap ()
 
const std::map< DalitzCoordKey, DalitzCoordinate > & theMap () const
 
DalitzCoordinateoperator[] (const DalitzCoordKey &k)
 
const DalitzCoordinateoperator[] (const DalitzCoordKey &k) const
 
std::map< DalitzCoordKey, DalitzCoordinate >::iterator begin ()
 
std::map< DalitzCoordKey, DalitzCoordinate >::const_iterator begin () const
 
std::map< DalitzCoordKey, DalitzCoordinate >::iterator end ()
 
std::map< DalitzCoordKey, DalitzCoordinate >::const_iterator end () const
 
std::map< DalitzCoordKey, DalitzCoordinate >::iterator find (const DalitzCoordKey &c)
 
std::map< DalitzCoordKey, DalitzCoordinate >::const_iterator find (const DalitzCoordKey &c) const
 
void insert (typename std::map< DalitzCoordKey, DalitzCoordinate >::const_iterator first, typename std::map< DalitzCoordKey, DalitzCoordinate >::const_iterator last)
 
unsigned int size () const
 
bool empty () const
 
PolymorphMap< DalitzCoordKey, DalitzCoordinate > & operator= (const PolymorphMap &other)
 
void clear ()
 
void resize (unsigned int N)
 
void resize (unsigned int N, const DalitzCoordinate &c)
 
 operator const typename std::map< DalitzCoordKey, DalitzCoordinate > & () const
 
 operator typename std::map< DalitzCoordKey, DalitzCoordinate > & ()
 
bool operator== (const MINT::PolymorphMap< DalitzCoordKey, DalitzCoordinate > &v2) const
 
bool operator!= (const MINT::PolymorphMap< DalitzCoordKey, DalitzCoordinate > &v2) const
 
bool operator< (const MINT::PolymorphMap< DalitzCoordKey, DalitzCoordinate > &v2) const
 
bool operator> (const MINT::PolymorphMap< DalitzCoordKey, DalitzCoordinate > &v2) const
 

Additional Inherited Members

- Protected Attributes inherited from MINT::PolymorphMap< DalitzCoordKey, DalitzCoordinate >
std::map< DalitzCoordKey, DalitzCoordinate_map
 

Detailed Description

Definition at line 8 of file DalitzCoordSet.h.

Constructor & Destructor Documentation

◆ DalitzCoordSet() [1/8]

DalitzCoordSet::DalitzCoordSet ( )

◆ DalitzCoordSet() [2/8]

DalitzCoordSet::DalitzCoordSet ( const DalitzCoordinate dc_1)

Definition at line 13 of file DalitzCoordSet.cpp.

◆ DalitzCoordSet() [3/8]

DalitzCoordSet::DalitzCoordSet ( const std::vector< int > &  dc_1)

◆ DalitzCoordSet() [4/8]

DalitzCoordSet::DalitzCoordSet ( const DalitzCoordinate dc_1,
const DalitzCoordinate dc_2 
)

Definition at line 23 of file DalitzCoordSet.cpp.

◆ DalitzCoordSet() [5/8]

DalitzCoordSet::DalitzCoordSet ( const DalitzCoordinate dc_1,
const DalitzCoordinate dc_2,
const DalitzCoordinate dc_3 
)

Definition at line 30 of file DalitzCoordSet.cpp.

34 {
35  this->add(dc_1, dc_2, dc_3);
36 }
void add(const DalitzCoordinate &dc_1)

◆ DalitzCoordSet() [6/8]

DalitzCoordSet::DalitzCoordSet ( const DalitzCoordinate dc_1,
const DalitzCoordinate dc_2,
const DalitzCoordinate dc_3,
const DalitzCoordinate dc_4 
)

Definition at line 37 of file DalitzCoordSet.cpp.

42 {
43  this->add(dc_1, dc_2, dc_3, dc_4);
44 }
void add(const DalitzCoordinate &dc_1)

◆ DalitzCoordSet() [7/8]

DalitzCoordSet::DalitzCoordSet ( const DalitzCoordinate dc_1,
const DalitzCoordinate dc_2,
const DalitzCoordinate dc_3,
const DalitzCoordinate dc_4,
const DalitzCoordinate dc_5 
)

Definition at line 45 of file DalitzCoordSet.cpp.

51 {
52  this->add(dc_1, dc_2, dc_3, dc_4, dc_5);
53 }
void add(const DalitzCoordinate &dc_1)

◆ DalitzCoordSet() [8/8]

DalitzCoordSet::DalitzCoordSet ( const DalitzCoordSet other)

◆ ~DalitzCoordSet()

virtual DalitzCoordSet::~DalitzCoordSet ( )
inlinevirtual

Definition at line 32 of file DalitzCoordSet.h.

32 {}

Member Function Documentation

◆ add() [1/6]

void DalitzCoordSet::add ( const DalitzCoordinate dc_1)

Definition at line 58 of file DalitzCoordSet.cpp.

58  {
59  (*this)[dc_1.myKey()] = dc_1;
60 }
const DalitzCoordKey & myKey() const

◆ add() [2/6]

void DalitzCoordSet::add ( const DalitzCoordinate dc_1,
const DalitzCoordinate dc_2 
)

Definition at line 61 of file DalitzCoordSet.cpp.

62  {
63  add(dc_1); add(dc_2);
64 }
void add(const DalitzCoordinate &dc_1)

◆ add() [3/6]

void DalitzCoordSet::add ( const DalitzCoordinate dc_1,
const DalitzCoordinate dc_2,
const DalitzCoordinate dc_3 
)

Definition at line 65 of file DalitzCoordSet.cpp.

67  {
68  add(dc_1, dc_2); add(dc_3);
69 }
void add(const DalitzCoordinate &dc_1)

◆ add() [4/6]

void DalitzCoordSet::add ( const DalitzCoordinate dc_1,
const DalitzCoordinate dc_2,
const DalitzCoordinate dc_3,
const DalitzCoordinate dc_4 
)

Definition at line 70 of file DalitzCoordSet.cpp.

73  {
74  add(dc_1, dc_2, dc_3); add(dc_4);
75 }
void add(const DalitzCoordinate &dc_1)

◆ add() [5/6]

void DalitzCoordSet::add ( const DalitzCoordinate dc_1,
const DalitzCoordinate dc_2,
const DalitzCoordinate dc_3,
const DalitzCoordinate dc_4,
const DalitzCoordinate dc_5 
)

Definition at line 76 of file DalitzCoordSet.cpp.

80  {
81  add(dc_1, dc_2, dc_3, dc_4); add(dc_5);
82 }
void add(const DalitzCoordinate &dc_1)

◆ add() [6/6]

void DalitzCoordSet::add ( const DalitzCoordSet dcl)

Definition at line 84 of file DalitzCoordSet.cpp.

84  {
85  this->insert(dcl.begin(), dcl.end());
86 }
std::map< Key, Val >::iterator end()
Definition: PolymorphMap.h:29
std::map< Key, Val >::iterator begin()
Definition: PolymorphMap.h:26
void insert(typename std::map< DalitzCoordKey, DalitzCoordinate >::const_iterator first, typename std::map< DalitzCoordKey, DalitzCoordinate >::const_iterator last)
Definition: PolymorphMap.h:35

◆ name()

std::string DalitzCoordSet::name ( ) const

Definition at line 88 of file DalitzCoordSet.cpp.

88  {
89  std::string n="";
90  int counter=0;
91  for(std::map<DalitzCoordKey, DalitzCoordinate>::const_iterator it = this->begin();
92  it != this->end(); it++){
93  if(0 != counter++) n+= "_x_";
94  n += it->second.name();
95  }
96  return n;
97 }
std::map< DalitzCoordKey, DalitzCoordinate >::iterator end()
Definition: PolymorphMap.h:29
std::map< DalitzCoordKey, DalitzCoordinate >::iterator begin()
Definition: PolymorphMap.h:26

◆ nameFileSave()

std::string DalitzCoordSet::nameFileSave ( ) const

Definition at line 99 of file DalitzCoordSet.cpp.

99  {
100  std::string n="";
101  int counter=0;
102  for(std::map<DalitzCoordKey, DalitzCoordinate>::const_iterator it = this->begin();
103  it != this->end(); it++){
104  if(0 != counter++) n+= "_x_";
105  n += it->second.nameFileSave();
106  }
107  return n;
108 }
std::map< DalitzCoordKey, DalitzCoordinate >::iterator end()
Definition: PolymorphMap.h:29
std::map< DalitzCoordKey, DalitzCoordinate >::iterator begin()
Definition: PolymorphMap.h:26

◆ print()

void DalitzCoordSet::print ( std::ostream &  os) const

Definition at line 781 of file DalitzHistogram.cpp.

781  {
782  os << this->name();
783 }
std::string name() const

The documentation for this class was generated from the following files: