BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
UserMBody3.cc
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2//
3// Environment:
4// This software is part of models developed at BES collaboration
5// based on the EvtGen framework. If you use all or part
6// of it, please give an appropriate acknowledgement.
7//
8// Copyright Information: See EvtGen/BesCopyright
9// Copyright (A) 2006 Ping Rong-Gang @IHEP
10//
11// Module: EvtBody3.cc //Modified Body3 model
12//
13// usage:
14// Users need to provide the MC and data file in NTuple style. The decays are described as
15// A-> x1 + x2 + x3
16// angular distribution: costheta1, costheta2 ,costheta3
17// mass distribution: m12, m13, and m23, here, m12 ==> mass of x1 and x2, etc.
18// these variables are defined as double type, the tree name is mc and data, repectively
19// Modification history:
20//
21// Ping R.-G. Aug., 2010 Module created
22//
23//------------------------------------------------------------------------
24
25#include "TApplication.h"
26#include "TAxis.h"
27#include "TFile.h"
28#include "TH1.h"
29#include "TH2.h"
30#include "TH3.h"
31#include "TROOT.h"
32
34
35//////////////////***** modified Body3 Model
36const char* EvtMBody3::setFileName( int i ) {
37 const char* datafile;
38 const char* mcfile;
39 // --- user to specify the name of the NTuple for data (datafile ) and MC
40
41 datafile = "./body3data.root"; // specify the data root file name
42 mcfile = "./body3mc.root"; // specify the mc root fine name using for eff. correction
43
44 //--------- don't touch follows
45 if ( i == 1 ) { return datafile; }
46 else if ( i == 2 ) { return mcfile; }
47
48 cerr << __FILE__ << ":" << __LINE__ << ": "
49 << "Should not reach here!" << endl;
50 abort();
51}
const char * setFileName(int i)
Definition UserMBody3.cc:36