MINT2
Classes | Functions
IDalitzEvent.h File Reference
#include "TLorentzVector.h"
#include "TVector3.h"
#include "Mint/IWeightedEvent.h"
#include "Mint/DalitzEventPattern.h"
#include <vector>
#include <iostream>
#include <complex>

Go to the source code of this file.

Classes

class  IDalitzEvent
 

Functions

bool EqualEvent (const IDalitzEvent *a, const IDalitzEvent *b)
 
std::ostream & operator<< (std::ostream &os, const IDalitzEvent &de)
 

Function Documentation

◆ EqualEvent()

bool EqualEvent ( const IDalitzEvent a,
const IDalitzEvent b 
)

Definition at line 5 of file IDalitzEvent.cpp.

5  {
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 }
virtual const TLorentzVector & p(unsigned int i) const =0
virtual const DalitzEventPattern & eventPattern() const =0
unsigned int size() const

◆ operator<<()

std::ostream& operator<< ( std::ostream &  os,
const IDalitzEvent de 
)

Definition at line 20 of file IDalitzEvent.cpp.

20  {
21  de.print(os);
22  return os;
23 }
virtual void print(std::ostream &os=std::cout) const =0