Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/RooDecay.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*****************************************************************************
0002  * Project: RooFit                                                           *
0003  * Package: RooFitModels                                                     *
0004  *    File: $Id: RooDecay.h,v 1.11 2007/05/11 09:13:07 verkerke Exp $
0005  * Authors:                                                                  *
0006  *   WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu       *
0007  *   DK, David Kirkby,    UC Irvine,         dkirkby@uci.edu                 *
0008  *                                                                           *
0009  * Copyright (c) 2000-2005, Regents of the University of California          *
0010  *                          and Stanford University. All rights reserved.    *
0011  *                                                                           *
0012  * Redistribution and use in source and binary forms,                        *
0013  * with or without modification, are permitted according to the terms        *
0014  * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
0015  *****************************************************************************/
0016 #ifndef ROO_DECAY
0017 #define ROO_DECAY
0018 
0019 #include "RooAbsAnaConvPdf.h"
0020 #include "RooRealProxy.h"
0021 
0022 class RooDecay : public RooAbsAnaConvPdf {
0023 public:
0024 
0025   enum DecayType { SingleSided, DoubleSided, Flipped };
0026 
0027   // Constructors, assignment etc
0028   inline RooDecay() { }
0029   RooDecay(const char *name, const char *title, RooRealVar& t,
0030       RooAbsReal& tau, const RooResolutionModel& model, DecayType type) ;
0031   RooDecay(const RooDecay& other, const char* name=nullptr);
0032   TObject* clone(const char* newname) const override { return new RooDecay(*this,newname) ; }
0033 
0034   double coefficient(Int_t basisIndex) const override ;
0035 
0036   Int_t getGenerator(const RooArgSet& directVars, RooArgSet &generateVars, bool staticInitOK=true) const override;
0037   void generateEvent(Int_t code) override;
0038 
0039 protected:
0040 
0041   RooRealProxy _t ;
0042   RooRealProxy _tau ;
0043   DecayType    _type ;
0044   Int_t        _basisExp ;
0045 
0046   ClassDefOverride(RooDecay,1) // General decay function p.d.f
0047 };
0048 
0049 #endif