BOSS 7.0.7
BESIII Offline Software System
|
#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 std::vector<double> vdouble |
Definition at line 26 of file binning.cxx.
double f_cals | ( | double | left, |
double | right, | ||
double | step | ||
) |
Definition at line 157 of file binning.cxx.
Referenced by f_opt().
void f_gen_hists | ( | ) |
int f_group | ( | double | bg | ) |
Definition at line 150 of file binning.cxx.
void f_group | ( | double | left, |
double | right, | ||
int & | num, | ||
int & | index | ||
) |
Definition at line 141 of file binning.cxx.
void f_opt | ( | double | left, |
double | right, | ||
int | bins | ||
) |
Definition at line 88 of file binning.cxx.
Referenced by main().
int m_bins | ( | 0 | ) |
Referenced by main(), and print_vec_verso().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 43 of file binning.cxx.
void print_vec | ( | vdouble | v | ) |
void print_vec_verso | ( | vdouble | v | ) |
const double test_times | ( | 2 | ) |
Referenced by f_opt().
double total_n | ( | 0 | ) |
Referenced by f_opt().
vdouble v | ( | 0 | ) |
double hits_group[2000] |
Definition at line 41 of file binning.cxx.
Referenced by f_cals().
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(), TofCaliSvc::EtfTimeMC(), 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(), 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*=(), 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(), TagParser4::setDstDataType(), BesEvent::SetEvent(), BesEventHeader::SetEventTof(), TrkFitMaker::setFitNumber(), setregion(), TagFilterSvc::setTagData0(), TagParser1::setTagData0(), TagParser2::setTagData0(), TagParser3::setTagData0(), TagParser4::setTagData0(), TagFilterSvc::setTagData1(), TagParser1::setTagData1(), TagParser2::setTagData1(), TagParser3::setTagData1(), TagParser4::setTagData1(), TagFilterSvc::setTagData2(), TagParser1::setTagData2(), TagParser2::setTagData2(), TagParser3::setTagData2(), TagParser4::setTagData2(), TagFilterSvc::setTagData3(), TagParser1::setTagData3(), TagParser2::setTagData3(), TagParser3::setTagData3(), TagParser4::setTagData3(), TagFilterSvc::setTagData4(), TagParser1::setTagData4(), TagParser2::setTagData4(), TagParser3::setTagData4(), TagParser4::setTagData4(), TagFilterSvc::setTagData5(), TagParser1::setTagData5(), TagParser2::setTagData5(), TagParser3::setTagData5(), TagParser4::setTagData5(), TagFilterSvc::setTagData6(), TagParser1::setTagData6(), TagParser2::setTagData6(), TagParser3::setTagData6(), TagParser4::setTagData6(), TagFilterSvc::setTagData7(), TagParser1::setTagData7(), TagParser2::setTagData7(), TagParser3::setTagData7(), TagParser4::setTagData7(), TagFilterSvc::setTagData8(), TagParser1::setTagData8(), TagParser2::setTagData8(), TagParser3::setTagData8(), TagParser4::setTagData8(), TagFilterSvc::setTagData9(), TagParser1::setTagData9(), TagParser2::setTagData9(), TagParser3::setTagData9(), TagParser4::setTagData9(), BesTruthVertex::SetTime(), BesMucHit::SetTime(), BesEmcHit::SetTimeCrystal(), RecBTofCalHit::setTpred(), RecETofCalHit::setTpred(), HoughHitList::setType(), MinorBase::signM2ud(), MinorBase::signM3ud(), sim_conv2root(), sim_endcap_conv2root(), KalFitTrack::smoother_Mdc_csmalign(), 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(), KalFitTrack::update_hits_csmalign(), rdbModel::Rdb::updateRows(), TrkFundHit::usedOnTrack(), uxtime_(), rdbModel::Assertion::Operator::verify(), vtxFit(), XmlRpc::XmlRpcValue::write(), writeTree(), T3DLine::x(), XtMdcCalib::xtFun(), and xtFun().
TTree* t_save = new TTree("t_save", "tree to save entropy") |
Definition at line 37 of file binning.cxx.
int tot_num_group |
Definition at line 39 of file binning.cxx.
double x_group[2000] |
Definition at line 40 of file binning.cxx.