MINT2
DalitzSet.h
Go to the documentation of this file.
1 #ifndef DALITZ_SOMETHING_SET_HH
2 #define DALITZ_SOMETHING_SET_HH
3 // author: Jonas Rademacker (Jonas.Rademacker@bristol.ac.uk)
4 // status: Mon 9 Feb 2009 19:17:58 GMT
5 
6 #include <map>
7 #include <string>
9 #include "Mint/DalitzCoordSet.h"
10 #include "Mint/AllPossibleSij.h"
11 #include "Mint/counted_ptr.h"
12 //#include <map>
13 #include "Mint/PolymorphMap.h"
14 
15 template<typename T>
16 class DalitzSet : public MINT::PolymorphMap< DalitzCoordSet, MINT::counted_ptr<T> >{
17  std::string _name;
19  int nDaughters = pat.numDaughters();
20  AllPossibleSij sijList(nDaughters);
21 
22  for(namedVMap::const_iterator it = sijList.begin();
23  it != sijList.end(); it++){
24  (*this)[it->second] = MINT::counted_ptr<T>(0);
25  }
26 
27  return;
28  }
29 
30  const std::string& makeName(){
31  _name = "DalitzSetOfSomething";
32  return _name;
33  }
34 
35  public:
37  DalitzSet(const DalitzSet<T>& other)
38  : MINT::PolymorphMap< DalitzCoordSet, MINT::counted_ptr<T> >( other)
39  {
40  makeName();
41  }
42 
43  /*
44  virtual void add(const DalitzCoordinate& coord
45  , const MINT::counted_ptr<T>& thing){
46  if(0 == (*this)[coord]) (*this)[coord] = thing;
47  else ((*this)[coord])->Add(*thing);
48  }
49 
50  virtual void add(const DalitzSet<T>& hL){
51  for(typename std::map< DalitzCoordSet, MINT::counted_ptr<T> >::const_iterator it = hL.begin();
52  it != hL.end();
53  it++){
54  DalitzCoordinate c(it->first);
55  this->add(c, it->second);
56  }
57  return;
58  }
59  */
60  const std::string& name() const{return _name;}
61 
62  virtual ~DalitzSet(){}
63 
64 };
65 
66 
67 #endif
68 //
const std::string & makeName()
Definition: DalitzSet.h:30
DalitzSet()
Definition: DalitzSet.h:36
const std::string & name() const
Definition: DalitzSet.h:60
void makeEmptyContainer(const DalitzEventPattern &pat)
Definition: DalitzSet.h:18
std::string _name
Definition: DalitzSet.h:17
DalitzSet(const DalitzSet< T > &other)
Definition: DalitzSet.h:37
virtual ~DalitzSet()
Definition: DalitzSet.h:62