BOSS 7.0.6
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtNT3.hh
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2//
3// Environment:
4//
5// Module: EvtGen/EvtNT3.hh
6//
7// Description: Class to handle NTuple for three body decays
8// usage:
9// Users need to provide the MC and data file in NTuple style. The decays are described as
10// A-> x1 + x2 + x3
11//angular distribution: costheta1, costheta2 ,costheta3
12// mass distribution: m12, m13, and m23, here, m12 ==> mass of x1 and x2, etc.
13// these variables are defined as double type, the tree name is mc and data, repectively
14// Modification history:
15//
16// PING RG September 11, 2010 Module created
17//
18//------------------------------------------------------------------------
19#ifndef EvtNT3_HH
20#define EvtNT3_HH
21
23#include "TTree.h"
24
25class EvtNT3:public EvtHis2F{
26
27public:
28
29 void init();
30 int calculateBins(int entries);
31 bool AR1(double costheta, double mass); //Accept-Reject judging for costheta1 vs. m23 dsitribution
32 bool AR2(double costheta, double mass); //Accept-Reject judging for costheta2 vs. m13 dsitribution
33 bool AR3(double costheta, double mass); //Accept-Reject judging for costheta3 vs. m12 dsitribution
34
35 void setDTfile(const char* name){datafile=name;}
36 void setMCfile(const char* name){mcfile=name;}
37
38private:
39
40 TChain *chainMC, *chainDT;
41 TFile *dataf,*mcf;
42 const char *datafile, *mcfile;
43 TH2F *MC1, *MC2, *MC3; // e.g. MC1: costheta1 vs. m23
44 TH2F *DT1, *DT2, *DT3;
45 TH2F *WT1, *WT2, *WT3;
46 double max1,max2,max3,max;
47 double costheta1,costheta2,costheta3,m12,m13,m23;
48 double m12_low, m12_up, m13_low, m13_up, m23_low, m23_up;
49 int entriesMC,entriesDT,Ncos,Nmass;
50
51};
52#endif
double mass
Definition: EvtNT3.hh:25
bool AR3(double costheta, double mass)
Definition: EvtNT3.cc:159
bool AR2(double costheta, double mass)
Definition: EvtNT3.cc:151
void setDTfile(const char *name)
Definition: EvtNT3.hh:35
int calculateBins(int entries)
Definition: EvtNT3.cc:133
void setMCfile(const char *name)
Definition: EvtNT3.hh:36
bool AR1(double costheta, double mass)
Definition: EvtNT3.cc:142
void init()
Definition: EvtNT3.cc:25
float costheta