MINT2
IDalitzEvent.cpp
Go to the documentation of this file.
1 // author: Jonas Rademacker (Jonas.Rademacker@bristol.ac.uk)
2 // status: Mon 9 Feb 2009 19:18:00 GMT
3 #include "Mint/IDalitzEvent.h"
4 
5 bool EqualEvent(const IDalitzEvent* a, const IDalitzEvent* b){
6 
7  if(0 == a && 0 == b) return true;
8  if(0 == a && 0 != b) return false;
9  if(0 != a && 0 == b) return false;
10 
11  if( a->eventPattern() != b->eventPattern()) return false;
12 
13  for(unsigned int i=0; i< a->eventPattern().size(); i++){
14  if(a->p(i) != b->p(i)) return false;
15  }
16 
17  return true;
18 }
19 
20 std::ostream& operator<<(std::ostream& os, const IDalitzEvent& de){
21  de.print(os);
22  return os;
23 }
24 //
bool EqualEvent(const IDalitzEvent *a, const IDalitzEvent *b)
Definition: IDalitzEvent.cpp:5
std::ostream & operator<<(std::ostream &os, const IDalitzEvent &de)
virtual void print(std::ostream &os=std::cout) const =0
virtual const TLorentzVector & p(unsigned int i) const =0
virtual const DalitzEventPattern & eventPattern() const =0
unsigned int size() const