BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
binning.cxx File Reference
#include "TCanvas.h"
#include "TFile.h"
#include "TTree.h"
#include "TH1F.h"
#include "TMath.h"
#include "TObjectTable.h"
#include <sstream>
#include <iostream>
#include <fstream>
#include <string>
#include <cstring>
#include <vector>
#include <cmath>

Go to the source code of this file.

Typedefs

typedef std::vector< double > vdouble
 

Functions

double m_left (0)
 
double m_right (0)
 
int m_bins (0)
 
bool m_debug (true)
 
vdouble vec_bg (0)
 
vdouble v (0)
 
void f_opt (double left, double right, int bins)
 
double f_cals (double left, double right, double step)
 
void f_gen_hists ()
 
void print_vec (vdouble v)
 
void print_vec_verso (vdouble v)
 
const double test_times (2)
 
double total_n (0)
 
double save_left (0)
 
double save_right (0)
 
double save_pos (0)
 
double save_s (0)
 
int main (int argc, char **argv)
 
void f_group (double left, double right, int &num, int &index)
 
int f_group (double bg)
 

Variables

TTree * t = new TTree("t", "tree to save original data")
 
TTree * t_save = new TTree("t_save", "tree to save entropy")
 
int tot_num_group
 
double x_group [2000]
 
double hits_group [2000]
 

Typedef Documentation

◆ vdouble

typedef std::vector<double> vdouble

Definition at line 26 of file binning.cxx.

Function Documentation

◆ f_cals()

double f_cals ( double  left,
double  right,
double  step 
)

Definition at line 157 of file binning.cxx.

157 {
158 // gObjectTable->Print();
159 if(m_debug) cout << "f_cal() is happyily running!" << endl;
160 for(int i=0; i<t_save->GetEntries(); i++){
161 t_save->GetEntry(i);
162 if(fabs(save_left-left)<0.0001 && fabs(save_right-right)<0.0001 && fabs(save_pos-pos)<0.0001) return save_s;
163 }
164 double left_s(0), right_s(0), total_s(0);
165 double left_ratio(0), right_ratio(0);
166 TFile *file = new TFile("temp.root", "recreate");
167 TTree *tree = t->CopyTree(Form("bg>%f && bg<%f", left, right));
168 if(m_debug){ cout << "after open temp.root" << endl; gDirectory->pwd(); gDirectory->ls(); }
169 double a_step(0.93*2/10);
170 for(int i=0; i<2; i++){// only do test twice
171 if(i==0) {m_left = left; m_right = pos;}
172 else {m_left = pos; m_right = right;}
173 int m_num_group(0);// how many groups will be covered by this bin
174 int m_index_group(-1); // the index of left boundary of the groups
175 f_group(m_left, m_right, m_num_group, m_index_group);
176 if(m_debug) cout << "left " << m_left << " right " << m_right << " num of groups: " << m_num_group << " boundary index: " << m_index_group << endl;
177 for(int j=0; j<10; j++){// index of angle
178 TTree *temp_tree = new TTree("tepm_tree", "temp tree");
179 temp_tree = tree->CopyTree(Form("bg>%f && bg<%f && costheta>%f && costheta<%f", m_left, m_right, -0.93+j*a_step, -0.93+(j+1)*a_step));
180 int nhits(0);
181 Float_t m_bg(0);
182 double tot_nhits(0);
183 temp_tree->SetBranchAddress("nhits", &nhits);
184 temp_tree->SetBranchAddress("bg", &m_bg);
185 for(int m=0; m<tot_num_group; m++) hits_group[m]=0;
186 for(int k=0; k<temp_tree->GetEntries(); k++){// loop in track
187 temp_tree->GetEntry(k);
188 tot_nhits += nhits;
189 hits_group[f_group(m_bg)] += nhits;
190 }
191 if(tot_nhits<2000){ file->Close(); return(100000.); } // if too small hits in a bin, bad (large) entropy
192 else{
193 for(int n=0; n<m_num_group; n++){ // loop in groups
194 if(hits_group[m_index_group+n]==0) continue;
195 // cout << "group_hits " << hits_group[m_index_group+n] << " tot_nhits " << tot_nhits << endl;
196 double p(hits_group[m_index_group+n]/tot_nhits); // the probability to find a hit of group_k in a bin
197 if(p>1) cout << "m_index_group " << m_index_group << " n " << n << " hits_group[] " << hits_group[m_index_group+n] << " tot_nhits " << tot_nhits << endl;
198 if(i==0) left_s += -p*TMath::Log2(p);
199 if(i==1) right_s += -p*TMath::Log2(p);
200 }// end of loop in groups
201 if(i==0) left_ratio += tot_nhits;
202 if(i==1) right_ratio += tot_nhits;
203 }
204 if(m_debug) cout << "m_left:" << m_left << " m_right:" << m_right << " j:" << j << " left_s:" << left_s << " right_s:" << right_s << endl;
205 // temp_tree->Delete();
206 }// end of loop angle
207 if(fabs(right-pos)<0.00001) break;
208 }// end of loop beta-gamma
209 // tree->Delete();
210 file->Close();
211 left_ratio = left_ratio/(left_ratio+right_ratio);
212 right_ratio = 1-left_ratio;
213 total_s = left_ratio*left_s + right_ratio*right_s;
214 if(m_debug) cout << "left_ratio: " << left_ratio << " right_ratio: " << right_ratio << " total_s: " << total_s << endl;
215 // save to the tree t_save
216 save_left = left;
217 save_right = right;
218 save_pos = pos;
219 save_s = total_s;
220 t_save->Fill();
221 return(total_s);
222}
char * file
Definition: DQA_TO_DB.cxx:15
const Int_t n
TTree * t_save
Definition: binning.cxx:37
TTree * t
Definition: binning.cxx:23
void f_group(double left, double right, int &num, int &index)
Definition: binning.cxx:141
double m_right(0)
double save_pos(0)
double hits_group[2000]
Definition: binning.cxx:41
int tot_num_group
Definition: binning.cxx:39
double save_right(0)
double save_s(0)
double save_left(0)
double m_left(0)
int nhits

Referenced by f_opt().

◆ f_gen_hists()

void f_gen_hists ( )

Definition at line 32 of file binning.cxx.

32{};

Referenced by main().

◆ f_group() [1/2]

int f_group ( double  bg)

Definition at line 150 of file binning.cxx.

150 {
151 for(int i=1; i<tot_num_group; i++){
152 if(bg<x_group[i]) return i-1;
153 }
154 return tot_num_group;
155}
double x_group[2000]
Definition: binning.cxx:40
float bg

◆ f_group() [2/2]

void f_group ( double  left,
double  right,
int &  num,
int &  index 
)

Definition at line 141 of file binning.cxx.

141 {
142 num = 0;
143 index = -1;
144 for(int i=1; i<tot_num_group; i++){
145 if(num==0 && left<x_group[i]) { index = i-1; num = 1; }
146 if(right<=x_group[i]){ num = i - index; break;}
147 }
148}

Referenced by f_cals(), and main().

◆ f_opt()

void f_opt ( double  left,
double  right,
int  bins 
)

Definition at line 88 of file binning.cxx.

88 {
89 if(m_debug) cout << "f_opt() is happily running!" << endl;
90 int total(1); // number of bins
91 vec_bg.clear();
92 vec_bg.push_back(m_left);
93 vec_bg.push_back(m_right);
94 TTree *tree = new TTree("tree", "tree to save temp data");
95 tree = t->CopyTree(Form("bg>%f && bg<%f", m_left, m_right));
96 int m_hits;
97 total_n = 0;
98 tree->SetBranchAddress("nhits", &m_hits);
99 int m_num_total(tree->GetEntries());
100 for(int k=0; k<m_num_total; k++){
101 tree->GetEntry(k);
102 total_n += m_hits;
103 }
104 tree->Delete();
105
106 while(total<bins){
107 double temp_s(0), temp_pos(0);
108 int temp_i(-1);
109 for(unsigned int i=0; i<vec_bg.size(); i++){
110 double pos_step((vec_bg[i+1]-vec_bg[i])/test_times);
111 double ori_s(-1);
112 for(double pos=vec_bg[i]+pos_step; pos<vec_bg[i+1]-0.00001; pos+=pos_step){
113 if(ori_s<0) ori_s = f_cals(vec_bg[i], vec_bg[i+1], vec_bg[i+1]);// for the ori one, no mid point
114 v.clear();
115 v = vec_bg;
116 v.insert(v.begin()+i+1, pos);
117 double diff_s = ori_s - f_cals(vec_bg[i], vec_bg[i+1], pos); // information gain
118 if(diff_s > temp_s){
119 temp_s = diff_s;
120 temp_i = i;
121 temp_pos = pos;
122 }
123 if(m_debug){
124 cout << "i:" << i << " pos:" << pos << " diff_s:" << diff_s << " temp_s:" << temp_s << endl;
125 cout << "temp_v: " << endl;
126 print_vec(v);
127 cout << "vec_bg: " << endl;
129 }// end of print results
130 }// end of loop in inert region
131 }// end of loop in whole region
132 vec_bg.insert(vec_bg.begin()+temp_i+1, temp_pos);
133 cout << "============== vec_bg =============" <<endl;
135 cout << endl << endl;
136 total ++;
137 }// end of while()
138}// end of f_opt()
int bins[20]
**********Class see also m_nmax DOUBLE PRECISION m_amel DOUBLE PRECISION m_x2 DOUBLE PRECISION m_alfinv DOUBLE PRECISION m_Xenph INTEGER m_KeyWtm INTEGER m_idyfs DOUBLE PRECISION m_zini DOUBLE PRECISION m_q2 DOUBLE PRECISION m_Wt_KF DOUBLE PRECISION m_WtCut INTEGER m_KFfin *COMMON c_KarLud $ !Input CMS energy[GeV] $ !CMS energy after beam spread beam strahlung[GeV] $ !Beam energy spread[GeV] $ !z boost due to beam spread $ !electron beam mass *ff pair spectrum $ !minimum v
Definition: KarLud.h:35
vdouble vec_bg(0)
const double test_times(2)
double total_n(0)
double f_cals(double left, double right, double step)
Definition: binning.cxx:157
void print_vec(vdouble v)
Definition: binning.cxx:224

Referenced by main().

◆ m_bins()

int m_bins ( )

Referenced by main(), and print_vec_verso().

◆ m_debug()

bool m_debug ( true  )

◆ m_left()

double m_left ( )

Referenced by f_cals(), f_opt(), and main().

◆ m_right()

double m_right ( )

Referenced by f_cals(), f_opt(), and main().

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 43 of file binning.cxx.

43 {
44 // gObjectTable->Print();
45 if(argc<2){ cout << "please append config file, ex. binning.exe config.txt" << endl; return 0;}
46 TFile *f = new TFile("pre_data.root");
47 t = (TTree*)f->Get("n103");
48 ifstream config_file(argv[1]);
49 if(!config_file){
50 cout << "cannot read config file correctly!" << endl;
51 return 1;
52 }
53 TFile *f_group = new TFile("group_points.root");
54 if(!f_group){
55 cout << "cannot read group points file correctly!" << endl;
56 return 1;
57 }
58 TTree *t_group = (TTree*)f_group->Get("t");
59 double m_x_temp(0);
60 t_group->SetBranchAddress("x", &m_x_temp);
61 tot_num_group = t_group->GetEntries();
62 for(int i=0; i<tot_num_group; i++) { t_group->GetEntry(i); x_group[i] = m_x_temp; }
63 // t_group->Delete();
64 f_group->Close();
65 delete f_group;
66 // prepare tree t_save
67 t_save->Branch("save_left", &save_left, "save_left/D");
68 t_save->Branch("save_right", &save_right, "save_right/D");
69 t_save->Branch("save_pos", &save_pos, "save_pos/D");
70 t_save->Branch("save_s", &save_s, "save_s/D");
71 //
72 while(m_bins!=-1){ // -1 is the end signal
73 config_file >> m_left >> m_right >> m_bins >> m_debug;
74 if(m_debug) cout << "config: " << m_left << " " << m_right << " " << m_bins << endl;
76 cout <<"finial results for this time binning" << endl;
79 }
80 t->Delete();
81 t_save->Delete();
82 f->Close();
83 delete f;
84 return 0;
85}
int m_bins(0)
void f_opt(double left, double right, int bins)
Definition: binning.cxx:88
void print_vec_verso(vdouble v)
Definition: binning.cxx:229
void f_gen_hists()
Definition: binning.cxx:32
TFile f("ana_bhabha660a_dqa_mcPat_zy_old.root")

◆ print_vec()

void print_vec ( vdouble  v)

Definition at line 224 of file binning.cxx.

224 {
225 for(vdouble::iterator i=v.begin(); i<v.end(); i++) cout << *i << " " ;
226 cout << endl;
227}

Referenced by f_opt().

◆ print_vec_verso()

void print_vec_verso ( vdouble  v)

Definition at line 229 of file binning.cxx.

229 {
230 cout << "vec[" << m_bins << "] = {" ;
231 for(vdouble::iterator i=v.begin(); i<v.end(); i++) cout << *i << ", " ;
232 cout << "};" << endl;
233}

Referenced by main().

◆ save_left()

double save_left ( )

Referenced by f_cals(), and main().

◆ save_pos()

double save_pos ( )

Referenced by f_cals(), and main().

◆ save_right()

double save_right ( )

Referenced by f_cals(), and main().

◆ save_s()

double save_s ( )

Referenced by f_cals(), and main().

◆ test_times()

const double test_times ( )

Referenced by f_opt().

◆ total_n()

double total_n ( )

Referenced by f_opt().

◆ v()

vdouble v ( )

◆ vec_bg()

vdouble vec_bg ( )

Referenced by f_opt(), and main().

Variable Documentation

◆ hits_group

double hits_group[2000]

Definition at line 41 of file binning.cxx.

Referenced by f_cals().

◆ t

TTree* t = new TTree("t", "tree to save original data")

Definition at line 23 of file binning.cxx.

Referenced by BesGMenuBar::AddFrameBefore(), BesGeoTrack::AddPoint(), BesGMenuBar::AddPopup(), TrkFitMaker::allReps(), T3DLine::approach_line(), TRunge::approach_line(), T3DLine::approach_point(), XmlRpc::XmlRpcValue::assertTypeOrInvalid(), barrel_con2root(), barrel_conv2root(), G4HepMCInterface::Boost(), TBuilder::build(), TBuilder0::buildRphi(), TBuilder::buildRphi(), TBuilder::buildStereo(), TBuilder0::buildStereo(), TBuilderCosmic::buildStereo(), TBuilder0::buildStereo0(), TBuilder::buildStereoNew(), calib_barrel_left_offset1_bunch0_3::calculate_funcs(), calib_barrel_left_offset1_bunch0_4::calculate_funcs(), calib_barrel_left_offset1_bunch1_3::calculate_funcs(), calib_barrel_left_offset1_bunch1_4::calculate_funcs(), calib_barrel_left_offset1_bunch2_3::calculate_funcs(), calib_barrel_left_offset1_bunch2_4::calculate_funcs(), calib_barrel_left_offset1_bunch3_4::calculate_funcs(), calib_barrel_left_offset2_bunch0_3::calculate_funcs(), calib_barrel_left_offset2_bunch0_4::calculate_funcs(), calib_barrel_left_offset2_bunch1_3::calculate_funcs(), calib_barrel_left_offset2_bunch1_4::calculate_funcs(), calib_barrel_left_offset2_bunch2_3::calculate_funcs(), calib_barrel_left_offset2_bunch2_4::calculate_funcs(), calib_barrel_left_offset2_bunch3_4::calculate_funcs(), calib_barrel_right_offset1_bunch0_3::calculate_funcs(), calib_barrel_right_offset1_bunch0_4::calculate_funcs(), calib_barrel_right_offset1_bunch1_3::calculate_funcs(), calib_barrel_right_offset1_bunch1_4::calculate_funcs(), calib_barrel_right_offset1_bunch2_3::calculate_funcs(), calib_barrel_right_offset1_bunch2_4::calculate_funcs(), calib_barrel_right_offset1_bunch3_4::calculate_funcs(), calib_barrel_right_offset2_bunch0_3::calculate_funcs(), calib_barrel_right_offset2_bunch0_4::calculate_funcs(), calib_barrel_right_offset2_bunch1_3::calculate_funcs(), calib_barrel_right_offset2_bunch1_4::calculate_funcs(), calib_barrel_right_offset2_bunch2_3::calculate_funcs(), calib_barrel_right_offset2_bunch2_4::calculate_funcs(), calib_barrel_right_offset2_bunch3_4::calculate_funcs(), TrkFitMaker::changeDefault(), check_two_sigma_violate(), KalFitTrack::chi2_next(), TTrackManager::closest(), collect(), PackedRawDataCnvSvc::connectOutput(), BesGeoTrack::Construct3DLine(), BesEvent::ConstructMdcTrackFromRec(), Cores(), Clock::count(), Minor2::create(), Minor3::create(), MucGeoMgr::CreateBakelite(), RecExtTrackCnv::DataObjectToTObject(), EvtBto2piCPiso::decay(), EvtBTo3piCP::decay(), EvtBTo4piCP::decay(), EvtBToKpipiCP::decay(), EvtIntervalDecayAmp< T >::decay(), EvtSSDCP::decay(), EvtSSSCP::decay(), EvtSSSCPpng::decay(), EvtSSSCPT::decay(), EvtSTSCP::decay(), EvtSVPCP::decay(), EvtSVSCP::decay(), EvtSVSCPiso::decay(), EvtSVSCPLH::decay(), EvtSVSNONCPEIGEN::decay(), EvtSVVCP::decay(), EvtSVVCPLH::decay(), EvtSVVNONCPEIGEN::decay(), TTrackManager::determineIP(), BesTofDigitizerEcV3::DirectPh(), TTrackManager::divide(), TTrackManager::divideByIp(), Alignment::docaHelixWireNewton(), TFastFinder::doit(), TPerfectFinder::doit(), EvtPHOTOS::doRadCorr(), draw_check_curve(), draw_illustration_hist(), draw_plots(), draw_separation(), drawmom(), TMDC::driftDistance(), endcap_con2root(), endcap_conv2root(), EmcRecCrystal::EndCapCheckout(), etf_conv2root(), TVacuumPol::Evalt(), EvtAmpA1(), EvtAmpA2(), CosmicGenerator::execute(), EsTimeAlg::execute(), TrkReco::execute(), f_cals(), f_opt(), f_real_work(), QCMCFilter::findD0Decay(), TTrackManager::finish(), TCircleFitter::fit(), TLineFitter::fit(), TRobustLineFitter::fit(), T3DLineFitter::fit(), TCosmicFitter::fit(), TRungeFitter::fit(), TLine0::fit2(), TMLine::fit2(), TLine0::fit2p(), TMLine::fit2p(), TMFitter::fitDone(), EvtGen::generateEvent(), EvtKKLambdaCFF::getbaryonff(), TrkFitMaker::getRep(), EvtbTosllAliFF::getScalarFF(), EvtbTosllBallFF::getScalarFF(), EvtHQET2FF::getscalarff(), EvtHQETFF::getscalarff(), EvtISGW2FF::getscalarff(), EvtSLBKPoleFF::getscalarff(), EvtSLPoleFF::getscalarff(), EvtSLBKPoleFF::gettensorff(), EvtSLPoleFF::gettensorff(), EvtISGW2FF::gettensorff(), xmlBase::Dom::getText(), EvtbTosllAliFF::getVectorFF(), EvtbTosllBallFF::getVectorFF(), EvtHQET2FF::getvectorff(), EvtHQETFF::getvectorff(), EvtISGW2FF::getvectorff(), EvtMelikhovFF::getvectorff(), EvtSLBKPoleFF::getvectorff(), EvtSLPoleFF::getvectorff(), EvtVubdGamma::getW1nodelta(), EvtVubdGamma::getW2nodelta(), EvtVubdGamma::getW3nodelta(), EvtVubdGamma::getW4nodelta(), EvtVubdGamma::getW5nodelta(), TTrackManager::goodTrack(), EvtHelSys::Helrotate(), G4HepMCInterface::HepMC2G4(), histgen(), histps(), eformat::helper::DateAndTime::human(), Minor5::I2D2stu(), Minor5::I2D2stui(), Minor5::I2D2stuij(), Minor5::I2D3stu(), Minor5::I2D4stu(), Minor5::I2D5stu(), Minor5::I2D6stu(), Minor5::I2Dstu(), Minor5::I2Dstui(), Minor5::I2stu(), Minor5::I3D2st(), Minor5::I3D2sti(), Minor5::I3D2stij(), Minor5::I3D3st(), Minor5::I3D3sti(), Minor5::I3D3stij(), Minor5::I3D3stijk(), Minor5::I3D4st(), Minor5::I3D5st(), Minor5::I3D6st(), Minor5::I3D7st(), Minor5::I3Dst(), Minor5::I3Dsti(), Minor5::I3st(), EvtCPUtil::incoherentMix(), MagneticFieldSvc::init_params(), EvtParticle::initDecay(), QCMCFilter::initialize(), TBuilder::initialLine(), TBuilder::initialLineOld(), InnerMost(), rdbModel::Rdb::insertLatest(), rdbModel::Rdb::insertRow(), KalFitTrack::insist(), EvtConExc::islgr(), eformat::helper::DateAndTime::iso8601(), ixtime_(), join(), EvtConExc::lgr(), Links(), FTSegment::linkStereoSegments(), EvtConExc::LLr(), main(), MajorLinks(), TTrackManager::makeTds(), TTrackManager::mask(), TTrackManager::maskBadHits(), TTrackManager::maskCurl(), TTrackManager::maskCurlHits(), TTrackManager::maskMultiHits(), TTrackManager::maskNormal(), TTrackManager::maskOut(), KalFitMaterial::mcs_angle(), RkFitMaterial::mcs_angle(), TTrackManager::merge(), std__map_int_int__dict::method_x11(), std__map_int_HepMC__GenVertexp_std__greater_int_s__dict::method_x18(), std__map_int_HepMC__GenParticlep__dict::method_x20(), KalFitTrack::ms(), KalFitTrack::msgasmdc(), ScheduledEvent::name(), BesMucNoise::NoiseSampling(), TrkBase::Predicates::isFitValid::operator()(), TrkBase::Predicates::isFitCurrent::operator()(), TrkBase::Predicates::isHotOnTrack::operator()(), TrkBase::Predicates::hasFitValid::operator()(), TrkBase::Predicates::hasFitCurrent::operator()(), TrkBase::Functors::takeAddress< T >::operator()(), BesError::operator*=(), operator+=(), BesVectorErr::operator-(), BesError::operator/=(), operator<<(), operator>>(), EvtCPUtil::OtherB(), OuterMost(), BesGeoTrack::Paint(), Gen_HEPEVT::position(), G4HepMCInterface::Print(), EvtPolInt::ratint(), BesTofDigitizerEcV3::ReadEffTree(), readTree(), TTrackManager::refit(), TrkFitMaker::repointHypo(), TrkRecoTrk::resetT0(), BesTView::RotateView(), TBuilder::salvage(), TBuilder0::salvage(), TTrackManager::salvageAssociateHits(), TTrackManager::saveMCTables(), TTrackManager::saveTables(), ScheduledEvent::schedule(), BesAngle::sector(), SeparateCores(), TofDataSet::setData(), TagFilterSvc::setDstDataType(), TagParser1::setDstDataType(), TagParser2::setDstDataType(), TagParser3::setDstDataType(), BesEvent::SetEvent(), BesEventHeader::SetEventTof(), TrkFitMaker::setFitNumber(), setregion(), TagFilterSvc::setTagData0(), TagParser1::setTagData0(), TagParser2::setTagData0(), TagParser3::setTagData0(), TagFilterSvc::setTagData1(), TagParser1::setTagData1(), TagParser2::setTagData1(), TagParser3::setTagData1(), TagFilterSvc::setTagData2(), TagParser1::setTagData2(), TagParser2::setTagData2(), TagParser3::setTagData2(), TagFilterSvc::setTagData3(), TagParser1::setTagData3(), TagParser2::setTagData3(), TagParser3::setTagData3(), TagFilterSvc::setTagData4(), TagParser1::setTagData4(), TagParser2::setTagData4(), TagParser3::setTagData4(), TagFilterSvc::setTagData5(), TagParser1::setTagData5(), TagParser2::setTagData5(), TagParser3::setTagData5(), TagFilterSvc::setTagData6(), TagParser1::setTagData6(), TagParser2::setTagData6(), TagParser3::setTagData6(), TagFilterSvc::setTagData7(), TagParser1::setTagData7(), TagParser2::setTagData7(), TagParser3::setTagData7(), TagFilterSvc::setTagData8(), TagParser1::setTagData8(), TagParser2::setTagData8(), TagParser3::setTagData8(), TagFilterSvc::setTagData9(), TagParser1::setTagData9(), TagParser2::setTagData9(), TagParser3::setTagData9(), BesTruthVertex::SetTime(), BesMucHit::SetTime(), BesEmcHit::SetTimeCrystal(), RecBTofCalHit::setTpred(), RecETofCalHit::setTpred(), HoughHitList::setType(), MinorBase::signM2ud(), MinorBase::signM3ud(), sim_conv2root(), sim_endcap_conv2root(), TTrackManager::sortBanksByPt(), TSegment::split(), TSegment0::split(), rdbModel::Rdb::supersedeRow(), FTFinder::t2x(), t_to_h(), testDateTime(), FTWire::time(), MdcHitOnTrack::timeAbsolute(), XmlRpc::XmlRpcValue::timeFromXml(), MdcHitOnTrack::timeResid(), XmlRpc::XmlRpcValue::timeToXml(), RecExtTrackCnv::TObjectToDataObject(), KalFitTrack::tof(), BesTofDigitizerBrV2::TofPmtRspns(), BesTofDigitizerEcV2::TofPmtRspns(), BesTofDigitizerEcV3::TofPmtRspns(), Track2Helix(), TrackDump(), TrackInformation(), TrackKinematics(), TrackLayerUsage(), TrackStatus(), TrackType(), KalFitTrack::trasan_id(), tryQuick(), TMDCWire::tsf(), KalFitTrack::type(), UniqueLinks(), TrkFitMaker::uniqueReps(), rdbModel::Rdb::updateRows(), TrkFundHit::usedOnTrack(), uxtime_(), rdbModel::Assertion::Operator::verify(), vtxFit(), XmlRpc::XmlRpcValue::write(), writeTree(), T3DLine::x(), XtMdcCalib::xtFun(), and xtFun().

◆ t_save

TTree* t_save = new TTree("t_save", "tree to save entropy")

Definition at line 37 of file binning.cxx.

Referenced by f_cals(), and main().

◆ tot_num_group

int tot_num_group

Definition at line 39 of file binning.cxx.

Referenced by f_cals(), f_group(), and main().

◆ x_group

double x_group[2000]

Definition at line 40 of file binning.cxx.

Referenced by f_group(), and main().