BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
t.c File Reference

Go to the source code of this file.

Functions

int t ()
 

Function Documentation

◆ t()

int t ( )

Definition at line 1 of file t.c.

2{
3
4 for(Int_t i=0;i<339;i)
5 {
6 TFile* f1 = new TFile("ppdc.root");
7 TH1F* h1 = (TH1F*)f1->Get("htemp");
8 //set parameters
9 Double_t pMag = h1->GetRandom();
10 cout<<"pMag: "<<pMag<<endl;
11 f1->Close();
12
13 TFile* f2 = new TFile("theta.root");
14 TH1F* h2 = (TH1F*)f2->Get("htemp");
15 //randomize cos(theta)
16 Double_t theta =(Double_t)h2->GetRandom();
17 cout<<"theta: "<<theta<<endl;
18 G4double costheta = cos(theta);
19 f2->Close();
20
21 TFile* f3 = new TFile("phi.root");
22 TH1F* h3 = (TH1F*)f3->Get("htemp");
23 //randomize phi
24 Double_t phi = (Double_t)h3->GetRandom();
25 cout<<"phi: "<<phi<<endl;
26 f3->Close();
27 }
28}
TFile * f1
double cos(const BesAngle a)

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(), KalFitTrack::chi2_next(), TTrackManager::closest(), 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(), TMDC::driftDistance(), endcap_con2root(), endcap_conv2root(), EmcRecCrystal::EndCapCheckout(), etf_conv2root(), TVacuumPol::Evalt(), EvtAmpA1(), EvtAmpA2(), CosmicGenerator::execute(), EsTimeAlg::execute(), TrkReco::execute(), 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(), 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*=(), 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(), BesEvent::SetEvent(), BesEventHeader::SetEventTof(), TrkFitMaker::setFitNumber(), 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(), 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().