11 if(this->size() <=1)
return true;
12 for(
unsigned int i=1; i< this->size(); i++){
13 if( (*
this)[i] != (*this)[i-1] + 1)
return false;
19 :
MINT::PolymorphVector<int>(1)
29 :
MINT::PolymorphVector<int>(2)
40 :
MINT::PolymorphVector<int>(3)
53 :
MINT::PolymorphVector<int>(other)
62 :
MINT::PolymorphVector<int>( (
MINT::PolymorphVector<int>) other)
73 for(
unsigned int i=0; i< other.
size(); i++) (*
this)[i] = other[i];
88 for(
unsigned int i=0; i< this->
size(); i++){
90 mapped[i] = perm[ (*this)[i] ];
102 std::vector<DalitzCoordinate> cList;
105 double newWidth = (this->
max() - this->
min()) /((
double) n);
107 cout <<
" DalitzCoordinate::split " << *
this << endl;
108 cout <<
"\t Currently: mi = " <<
min()
109 <<
" ma = " <<
max() <<
"\n\t";
111 for(
int l=0; l < n; l++){
113 double mi = this->
min() + l*newWidth;
114 double ma = this->
min() + (l+1.0)*newWidth;
115 if(dbThis) cout <<
", ( " << mi <<
", " << ma <<
" )";
119 if(dbThis) cout << endl;
129 std::stringstream strm;
131 for(
unsigned int i=0; i < this->
size(); i++){
132 if(i > 0) strm <<
",";
142 std::stringstream strm;
144 for(
unsigned int i=0; i < this->
size(); i++){
154 os <<
": val = " << this->
val()
155 <<
", mi = " << this->
min()
156 <<
", ma = " << this->
max();
160 if(this->
size() != rhs.
size())
return false;
161 for(
unsigned int i=0; i<
size(); i++){
162 if((*
this)[i] != rhs[i])
return false;
170 if(this->
size() != rhs.
size())
return false;
171 for(
unsigned int i=0; i<
size(); i++){
172 if((*
this)[i] != rhs[i])
return false;
174 if(this->
min() != rhs.
min())
return false;
175 if(this->
max() != rhs.
max())
return false;
176 if(this->
val() != rhs.
val())
return false;
182 return ! ((*this) == rhs);
bool I_am_Consecutive() const
bool operator==(const DalitzCoordinate &rhs) const
std::vector< int >::iterator end()
void resize(unsigned int N)
std::vector< DalitzCoordinate > split(int n) const
void print(std::ostream &os=std::cout) const
bool operator!=(const DalitzCoordinate &rhs) const
DalitzCoordinate mapMe(const Permutation &perm) const
std::vector< int >::iterator begin()
unsigned int size() const
bool sameIndices(const DalitzCoordinate &rhs) const
std::ostream & operator<<(std::ostream &os, const DalitzCoordinate &c)
DalitzCoordinate & operator=(const DalitzCoordinate &other)
void setMinMax(double min, double max)
const std::string & name() const
std::string nameFileSave() const