/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Simulation/BOOST/GenSim/GenSim-00-00-07/root/t.c File Reference

Go to the source code of this file.

Functions

int t ()


Function Documentation

int t (  ) 

Definition at line 1 of file t.c.

References cos(), f1, f2, and genRecEmupikp::i.

Referenced by BesGMenuBar::AddFrameBefore(), BesGMenuBar::AddPopup(), TrkFitMaker::allReps(), TConformalFinder0::appendCluster(), TRunge::approach_line(), T3DLine::approach_line(), T3DLine::approach_point(), barrel_con2root(), barrel_conv2root(), G4HepMCInterface::Boost(), TBuilder::build(), TRadSpline5::BuildCoeff(), rdbModel::XercesBuilder::buildInsertNew(), rdbModel::XercesBuilder::buildInterRow(), rdbModel::XercesBuilder::buildQuery(), TBuilder0::buildRphi(), TBuilder::buildRphi(), rdbModel::XercesBuilder::buildSet(), TBuilderCosmic::buildStereo(), TBuilder0::buildStereo(), TBuilder::buildStereo(), TBuilder0::buildStereo0(), TBuilder::buildStereoNew(), rdbModel::XercesBuilder::buildSupersede(), calib_barrel_right_offset2_bunch3_4::calculate_funcs(), calib_barrel_right_offset2_bunch2_4::calculate_funcs(), calib_barrel_right_offset2_bunch2_3::calculate_funcs(), calib_barrel_right_offset2_bunch1_4::calculate_funcs(), calib_barrel_right_offset2_bunch1_3::calculate_funcs(), calib_barrel_right_offset2_bunch0_4::calculate_funcs(), calib_barrel_right_offset2_bunch0_3::calculate_funcs(), calib_barrel_right_offset1_bunch3_4::calculate_funcs(), calib_barrel_right_offset1_bunch2_4::calculate_funcs(), calib_barrel_right_offset1_bunch2_3::calculate_funcs(), calib_barrel_right_offset1_bunch1_4::calculate_funcs(), calib_barrel_right_offset1_bunch1_3::calculate_funcs(), calib_barrel_right_offset1_bunch0_4::calculate_funcs(), calib_barrel_right_offset1_bunch0_3::calculate_funcs(), calib_barrel_left_offset2_bunch3_4::calculate_funcs(), calib_barrel_left_offset2_bunch2_4::calculate_funcs(), calib_barrel_left_offset2_bunch2_3::calculate_funcs(), calib_barrel_left_offset2_bunch1_4::calculate_funcs(), calib_barrel_left_offset2_bunch1_3::calculate_funcs(), calib_barrel_left_offset2_bunch0_4::calculate_funcs(), calib_barrel_left_offset2_bunch0_3::calculate_funcs(), calib_barrel_left_offset1_bunch3_4::calculate_funcs(), calib_barrel_left_offset1_bunch2_4::calculate_funcs(), calib_barrel_left_offset1_bunch2_3::calculate_funcs(), calib_barrel_left_offset1_bunch1_4::calculate_funcs(), calib_barrel_left_offset1_bunch1_3::calculate_funcs(), calib_barrel_left_offset1_bunch0_4::calculate_funcs(), calib_barrel_left_offset1_bunch0_3::calculate_funcs(), EmcRecEndCapGeo::CalculateStandardSector1(), TrkFitMaker::changeDefault(), TTrackManager::checkNumberOfHits(), TTrackManager::closest(), BesEvent::ConstructMdcTrackFromRec(), TTrackManager::copyTrack(), Cores(), MucGeoMgr::CreateBakelite(), RecExtTrackCnv::DataObjectToTObject(), EvtSVVNONCPEIGEN::decay(), EvtSVVCPLH::decay(), EvtSVVCP::decay(), EvtSVSNONCPEIGEN::decay(), EvtSVSCPLH::decay(), EvtSVSCPiso::decay(), EvtSVSCP::decay(), EvtSVPCP::decay(), EvtSTSCP::decay(), EvtSSSCPT::decay(), EvtSSSCPpng::decay(), EvtSSSCP::decay(), EvtSSDCP::decay(), EvtIntervalDecayAmp< EvtDalitzPoint >::decay(), EvtBToKpipiCP::decay(), EvtBTo4piCP::decay(), EvtBTo3piCP::decay(), EvtBto2piCPiso::decay(), TConformalFinder::deleteTrack(), TTrackManager::determineIP(), TCurlFinder::distance(), TTrackManager::divide(), TTrackManager::divideByIp(), Alignment::docaHelixWireNewton(), TPerfectFinder::doit(), TFastFinder::doit(), EvtPHOTOS::doRadCorr(), BesGeoTrack::Draw(), THelixFitter::drift(), TMDC::driftDistance(), T3DLineFitter::dxda(), endcap_con2root(), endcap_conv2root(), EmcRecCrystal::EndCapCheckout(), etf_conv2root(), EvtAmpA1(), EvtAmpA2(), TrkReco::execute(), EsTimeAlg::execute(), CosmicGenerator::execute(), TConformalFinder::expand(), TConformalFinder::fastFinding2D(), TConformalFinder::fastFinding3D(), MdcNavigation::fillEvent(), MdcNavigation::fillInit(), TFastFinder::findCloseHits(), TConformalFinder0::findCloseHits(), QCMCFilter::findD0Decay(), TTrackManager::finish(), TRungeFitter::fit(), TRobustLineFitter::fit(), TLineFitter::fit(), TCosmicFitter::fit(), TCircleFitter::fit(), T3DLineFitter::fit(), TMLine::fit2(), TLine0::fit2(), TMLine::fit2p(), TLine0::fit2p(), TMFitter::fitDone(), EvtGen::generateEvent(), TrkFitMaker::getRep(), xmlBase::Dom::getText(), EvtVubdGamma::getW1nodelta(), EvtVubdGamma::getW2nodelta(), EvtVubdGamma::getW3nodelta(), EvtVubdGamma::getW4nodelta(), EvtVubdGamma::getW5nodelta(), TTrackManager::goodTrack(), EvtHelSys::Helrotate(), G4HepMCInterface::HepMC2G4(), EvtParticle::initDecay(), QCMCFilter::initialize(), TBuilder::initializeForStereo(), TBuilder::initialLine(), TBuilder::initialLineOld(), InnerMost(), rdbModel::Rdb::insertLatest(), rdbModel::Rdb::insertRow(), ixtime_(), join(), TLi2::Li2Cern(), TLi2::Li2My(), Links(), FTSegment::linkStereoSegments(), THelixFitter::main(), main(), MajorLinks(), TEvent::MakeEvent(), TEvent::MakeEventgg(), TTrackManager::makeTds(), TConformalFinder0::makeTrack(), TTrackManager::mask(), TTrackManager::maskBadHits(), TTrackManager::maskCurl(), TTrackManager::maskCurlHits(), TTrackManager::maskMultiHits(), TTrackManager::maskNormal(), TTrackManager::maskOut(), RkFitMaterial::mcs_angle(), KalFitMaterial::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(), FTFinder::mkTrack3D(), KalFitTrack::ms(), KalFitTrack::msgasmdc(), ScheduledEvent::name(), TTrackManager::nameTracks(), BesMucNoise::NoiseSampling(), TrkBase::Predicates::hasFitCurrent::operator()(), TrkBase::Predicates::hasFitValid::operator()(), TrkBase::Predicates::isFitCurrent::operator()(), TrkBase::Predicates::isFitValid::operator()(), TrkBase::Predicates::isHotOnTrack::operator()(), operator+=(), BesVectorErr::operator-(), operator<<(), OuterMost(), BesGeoTrack::Paint(), G4HepMCInterface::Print(), TConformalFinder::quality2D(), TMuCrossPart::R_e_Gamma(), TMuCrossPart::R_e_mu_Gamma_t(), TMuCrossPart::R_f_Gamma(), TPiCrossPart::R_Gamma(), TPiCrossPart::R_Gamma_kuraev_eidelman(), EvtPolInt::ratint(), BesTofDigitizerEcV3::ReadEffTree(), readTree(), TConformalFinder::refineLinks(), TConformalFinder::refineSegments(), TTrackManager::refit(), TConformalFinder::removeBadSegments(), TConformalFinder::removeUsedSegments(), TrkFitMaker::repointHypo(), TConformalFinder::resolveSegments(), TEPCrossPart::RGamma(), TEPCrossPart::RGamma_kuraev_eidelman(), TRobustLineFitter::rofunc(), BesTView::RotateView(), TBuilder0::salvage(), TBuilder::salvage(), TTrackManager::salvageAssociateHits(), TBuilder0::salvageNormal(), TTrackManager::saveMCTables(), XtInteCalib::saveOldXt(), TTrackManager::saveTables(), BesAngle::sector(), TEvent::Selectgg(), TTrackManager::selectGoodTracks(), SeparateCores(), BesEvent::SetEvent(), TrkFitMaker::setFitNumber(), sim_conv2root(), sim_endcap_conv2root(), TConformalFinder::slowFinding2D(), TTrackManager::sortBanksByPt(), TConformalFinder0::specialFinding(), TSegment0::split(), TSegment::split(), TSegment0::splitAV(), TSegment::splitAV(), TSegment0::splitComplicated(), TSegment::splitComplicated(), TSegment0::splitDual(), TSegment::splitDual(), TSegment0::splitParallel(), TSegment::splitParallel(), TConformalFinder0::standardFinding(), TConformalFinder::stereoSegments(), TConformalFinder::stereoSegmentsFromBadHits(), rdbModel::Rdb::supersedeRow(), TTrackManager::T0(), TTrackManager::T0Fit(), TConformalFinder::targetLinks(), TConformalFinder::targetSegments(), testDateTime(), XmlRpc::XmlRpcValue::timeToXml(), TKcFormFactor::TKcFormFactor(), RecExtTrackCnv::TObjectToDataObject(), SimplePIDSvc::tofBarrelCorrection(), SimplePIDSvc::tofEndcapCorrection(), BesTofDigitizerEcV3::TofPmtRspns(), BesTofDigitizerEcV2::TofPmtRspns(), BesTofDigitizerBrV2::TofPmtRspns(), Track2Helix(), TrackDump(), TrackInformation(), TrackKinematics(), TrackLayerUsage(), TConformalFinder::trackQuality(), TConformalFinder::trackSide(), TrackStatus(), TrackType(), tryQuick(), TMDCWire::tsf(), UniqueLinks(), TrkFitMaker::uniqueReps(), rdbModel::Rdb::updateRows(), TrkFundHit::usedOnTrack(), uxtime_(), rdbModel::Assertion::Operator::verify(), rdbModel::Assertion::Operator::verifyCompare(), vtxFit(), XmlRpc::XmlRpcValue::write(), and writeTree().

00002 {
00003   
00004   for(Int_t i=0;i<339;i)
00005   {
00006     TFile* f1 = new TFile("ppdc.root");
00007     TH1F* h1 = (TH1F*)f1->Get("htemp");
00008     //set parameters
00009     Double_t pMag = h1->GetRandom();
00010     cout<<"pMag: "<<pMag<<endl;
00011     f1->Close();
00012 
00013     TFile* f2 = new TFile("theta.root");
00014     TH1F* h2 = (TH1F*)f2->Get("htemp");
00015     //randomize cos(theta)
00016     Double_t theta =(Double_t)h2->GetRandom();
00017     cout<<"theta: "<<theta<<endl;
00018     G4double costheta = cos(theta);
00019     f2->Close();
00020 
00021     TFile* f3 = new TFile("phi.root");
00022     TH1F* h3 = (TH1F*)f3->Get("htemp");
00023     //randomize phi
00024     Double_t phi = (Double_t)h3->GetRandom();
00025     cout<<"phi: "<<phi<<endl;
00026     f3->Close();
00027   }
00028 }


Generated on Tue Nov 29 23:17:11 2016 for BOSS_7.0.2 by  doxygen 1.4.7