BOSS 8.0.0
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
22#include "EvtHis2F.hh"
23#include "TTree.h"
24
25class EvtNT3 : public EvtHis2F {
26
27public:
28 void init();
29 int calculateBins( int entries );
30 bool AR1( double costheta,
31 double mass ); // Accept-Reject judging for costheta1 vs. m23 dsitribution
32 bool AR2( double costheta,
33 double mass ); // Accept-Reject judging for costheta2 vs. m13 dsitribution
34 bool AR3( double costheta,
35 double mass ); // Accept-Reject judging for costheta3 vs. m12 dsitribution
36
37 void setDTfile( const char* name ) { datafile = name; }
38 void setMCfile( const char* name ) { mcfile = name; }
39
40private:
41 TChain * chainMC, *chainDT;
42 TFile * dataf, *mcf;
43 const char *datafile, *mcfile;
44 TH2F * MC1, *MC2, *MC3; // e.g. MC1: costheta1 vs. m23
45 TH2F * DT1, *DT2, *DT3;
46 TH2F * WT1, *WT2, *WT3;
47 double max1, max2, max3, max;
48 double costheta1, costheta2, costheta3, m12, m13, m23;
49 double m12_low, m12_up, m13_low, m13_up, m23_low, m23_up;
50 int entriesMC, entriesDT, Ncos, Nmass;
51};
52#endif
double mass
#define max(a, b)
bool AR3(double costheta, double mass)
Definition EvtNT3.cc:157
bool AR2(double costheta, double mass)
Definition EvtNT3.cc:150
void setDTfile(const char *name)
Definition EvtNT3.hh:37
int calculateBins(int entries)
Definition EvtNT3.cc:133
void setMCfile(const char *name)
Definition EvtNT3.hh:38
bool AR1(double costheta, double mass)
Definition EvtNT3.cc:141
void init()
Definition EvtNT3.cc:25