1 #ifndef __TIMEDEPENDENTGENERATOR_H__ 2 #define __TIMEDEPENDENTGENERATOR_H__ 28 const double smeareddecaytime = -999.) ;
58 double deltagamma,
double qoverp,
double phi,
59 TRandom3* rndm, TH1F* h_efficiency = NULL,
60 float resWidth = 0.05,
bool addExpEffects =
false,
76 double width,
double deltam,
77 double deltagamma,
double qoverp,
double phi,
78 TRandom3*, TH1F* h_efficiency = NULL,
79 float resWidth = 0.05,
bool addExpEffects =
false,
106 typedef std::pair<std::complex<double>, std::complex<double> >
AmpPair ;
FitAmpIncoherentSum m_bothmodel
void setDecayTime(double)
double envelope_value(const double, IDalitzEvent &)
double pdf_value(int, double, IDalitzEvent &)
Eff3piSymmetric * m_sEfficiency
static std::map< std::string, unsigned > infoNames
std::pair< double, double > generate_decay_time() const
Generate a decay time, optionally including experimental effects.
float get_gen_efficiency() const
void setSmearedDecayTime(double)
double getDecayTime() const
static DalitzEventPattern anti(DalitzEventPattern pat)
Take the CP conjugate of the head of the decay pattern.
TimeDependentGenerator(const DalitzEventPattern &pattern, double width, double deltam, double deltagamma, double qoverp, double phi, TRandom3 *rndm, TH1F *h_efficiency=NULL, float resWidth=0.05, bool addExpEffects=false, Eff3piSymmetric *sEfficiency=NULL)
bool accept_or_reject(const int tag, const double decaytime, IDalitzEvent &)
Decide whether the generated event should be accepted or rejected.
double getSmearedDecayTime() const
static std::map< std::string, unsigned > makeInfoNames()
MINT::counted_ptr< FitAmpSum > m_cpmodel
TH1F draw_envelope_vs_time(IDalitzEvent &, unsigned, float, float, const std::string &name="envelope_vs_time")
SignalGenerator m_generator
const double m_deltagamma
TH1F draw_pdf_vs_time(IDalitzEvent &, unsigned, float, float, const std::string &name="pdf_vs_time")
MINT::counted_ptr< IDalitzEvent > generate_event()
Generate a flavour, decay time and Dalitz event.
AmpPair amplitude_coefficients(const int tag, const double decaytime)
const std::complex< double > m_qoverp
const DalitzEventPattern m_pattern
GenTimeEvent(const IDalitzEvent &, const int, const double, const double smeareddecaytime=-999.)
MINT::counted_ptr< FitAmpSum > m_model
std::pair< std::complex< double >, std::complex< double > > AmpPair
const DalitzEventPattern m_cppattern