/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Generator/BesEvtGen/BesEvtGen-00-03-58/src/EvtGen/EvtGenBase/EvtNT3.hh

Go to the documentation of this file.
00001 //--------------------------------------------------------------------------
00002 //
00003 // Environment:
00004 //
00005 // Module: EvtGen/EvtNT3.hh
00006 //
00007 // Description: Class to handle NTuple for three body decays
00008 // usage:
00009 // Users need to provide the MC and data file in NTuple style. The decays are described as
00010 //                        A->  x1    +   x2     +  x3
00011 //angular distribution:    costheta1, costheta2 ,costheta3
00012 // mass distribution:          m12, m13, and m23, here, m12 ==> mass of x1 and x2, etc.
00013 // these variables are defined as double type, the tree name is mc and data, repectively
00014 // Modification history:
00015 //
00016 //    PING RG     September 11, 2010         Module created
00017 //
00018 //------------------------------------------------------------------------
00019 #ifndef EvtNT3_HH
00020 #define EvtNT3_HH
00021 
00022 #include "EvtGenBase/EvtHis2F.hh"
00023 #include "TTree.h"
00024 
00025 class EvtNT3:public EvtHis2F{
00026 
00027 public:
00028 
00029   void init();
00030   int calculateBins(int entries);
00031   bool AR1(double costheta, double mass); //Accept-Reject judging for costheta1 vs. m23 dsitribution
00032   bool AR2(double costheta, double mass); //Accept-Reject judging for costheta2 vs. m13 dsitribution
00033   bool AR3(double costheta, double mass); //Accept-Reject judging for costheta3 vs. m12 dsitribution
00034 
00035   void setDTfile(const char* name){datafile=name;}
00036   void setMCfile(const char* name){mcfile=name;}
00037 
00038 private:
00039 
00040   TChain *chainMC, *chainDT;
00041   TFile *dataf,*mcf;
00042   const char *datafile, *mcfile;
00043   TH2F *MC1, *MC2, *MC3; // e.g. MC1: costheta1 vs. m23
00044   TH2F *DT1, *DT2, *DT3;
00045   TH2F *WT1, *WT2, *WT3;
00046   double max1,max2,max3,max;
00047   double costheta1,costheta2,costheta3,m12,m13,m23;
00048   double m12_low, m12_up, m13_low, m13_up, m23_low, m23_up;
00049   int entriesMC,entriesDT,Ncos,Nmass;
00050 
00051 };
00052 #endif

Generated on Tue Nov 29 23:12:14 2016 for BOSS_7.0.2 by  doxygen 1.4.7