Angular analysis of B+->K*+(K+pi0)mumu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.8 KiB

  1. /**
  2. * @file toystudy.hh
  3. * @author Christoph Langenbruch, Renata Kopecna
  4. * @date 2010-10-15
  5. *
  6. */
  7. #ifndef TOYSTUDY_H
  8. #define TOYSTUDY_H
  9. #include <string>
  10. #include <vector>
  11. #include <multifit.hh>
  12. namespace fcnc {
  13. class options;
  14. class pdf;
  15. class parameters;
  16. class generator;
  17. ///class to perform a toystudy, i.e. a repeated fit using generated toy data
  18. //template <class params_type, class pdf_type, class generator_type, class plotter_type, class loader_type>
  19. class toystudy: public multifit {
  20. private:
  21. ///common parameters in different parameter sets
  22. std::vector< std::string > common_params;
  23. public:
  24. ///constructor
  25. toystudy(options* o);
  26. /**
  27. * perform a toy study on generated toy data
  28. * @param nevents the number of events used per fit of the toy data
  29. * @param nruns the number of repeats
  30. * @param prob pointer to the pdf to use in the likelihood fit
  31. * @param params pointer to parameterset to use in the likelihood fit
  32. * @param gen pointer to the toy data generator to use
  33. **/
  34. void toy(unsigned int nevents, unsigned int nruns, pdf* prob, parameters* params, generator* gen);
  35. /**
  36. * perform a toy study on fully simulated mc data
  37. * @param nevents the number of events used per fit of the toy data
  38. * @param nruns the number of repeats
  39. * @param pdfs pointer to the pdfs to use in the likelihood fit
  40. * @param params pointer to parametersets to use in the likelihood fit
  41. * @param string filename to load
  42. **/
  43. void toy(std::vector<unsigned int> nevents, unsigned int nruns, std::vector<pdf*> pdfs, std::vector<parameters*> params, std::vector<generator*> gens);
  44. ///set common parameters
  45. void set_common_parameters(std::vector<std::string> common_pars) {
  46. common_params = common_pars;
  47. };
  48. };
  49. toystudy::toystudy(options* o):
  50. multifit(o)
  51. {
  52. };
  53. }
  54. #endif