BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
CosmicGenerator.cxx File Reference
#include "CosmicGenerator/CosmicGenerator.h"
#include "CosmicGenerator/CosmicGun.h"
#include "CosmicGenerator/CosmicEventParser.h"
#include "GaudiKernel/MsgStream.h"
#include "CLHEP/Vector/TwoVector.h"
#include "CLHEP/Vector/ThreeVector.h"
#include "CLHEP/Geometry/Normal3D.h"
#include "CLHEP/Geometry/Point3D.h"
#include "CLHEP/Units/PhysicalConstants.h"
#include "HepMC/GenEvent.h"
#include "HepMC/GenVertex.h"
#include "HepMC/GenParticle.h"
#include "HepMC/Polarization.h"
#include "GaudiKernel/Bootstrap.h"
#include "GaudiKernel/ISvcLocator.h"
#include "GaudiKernel/IMessageSvc.h"
#include "GaudiKernel/GaudiException.h"
#include "GaudiKernel/AlgFactory.h"
#include "GaudiKernel/DataSvc.h"
#include "GaudiKernel/SmartDataPtr.h"
#include "GaudiKernel/IDataProviderSvc.h"
#include "GaudiKernel/PropertyMgr.h"
#include "GaudiKernel/INTupleSvc.h"
#include "GaudiKernel/NTuple.h"
#include "GaudiKernel/IHistogramSvc.h"
#include "GeneratorObject/McGenEvent.h"
#include "BesKernel/IBesRndmGenSvc.h"
#include "CLHEP/Random/Ranlux64Engine.h"
#include "CLHEP/Random/RandFlat.h"
#include <limits.h>
#include <cmath>
#include <vector>
#include <string>
#include <fstream>

Go to the source code of this file.

Functions

float cosmicrndm_ (int *)
 

Variables

float PI = 3.1415927
 
double mass =0.1055658
 

Function Documentation

◆ cosmicrndm_()

float cosmicrndm_ ( int *  )

Definition at line 144 of file CosmicGenerator.cxx.

145{
146 // HepRandomEngine* engine = CosmicGenerator::p_AtRndmGenSvc->GetEngine("COSMICS");
147 HepRandomEngine* engine = CosmicGenerator::p_BesRndmGenSvc->GetEngine("PYTHIA");
148 // std::cout<<"seed: "<<engine->getSeed()<<", "<< RandFlat::shoot(engine);
149 return RandFlat::shoot(engine);
150}
static IBesRndmGenSvc * p_BesRndmGenSvc
virtual CLHEP::HepRandomEngine * GetEngine(const std::string &StreamName)=0
Interface to the CLHEP engine.

Variable Documentation

◆ mass

double mass =0.1055658

Definition at line 138 of file CosmicGenerator.cxx.

Referenced by TrackPool::AddMissTrack(), Pdt::addParticle(), TrackPool::AddTrack(), TrackPool::AddTrackVertex(), EvtNT3::AR1(), EvtNT3::AR2(), EvtNT3::AR3(), bg(), EvtbTosllAmp::CalcMaxProb(), EvtSemiLeptonicAmp::CalcMaxProb(), BesSensitiveManager::CheckDecayTrack(), RecMdcKalTrackCnv::DataObjectToTObject(), KalFitMaterial::dE(), RkFitMaterial::dE(), EvtBtoXsEtap::decay(), EvtBtoXsgamma::decay(), EvtBtoXsll::decay(), EvtMassH1::decay(), EvtMBody3::decay(), EvtSingleParticle::decay(), EvtSingleParticle2::decay(), EvtSinglePoint::decay(), CDChargedVisible< H >::defaultKinematicData(), VFHelix::del4MDelA(), Dedx_Helix::del4MDelA(), KalmanFit::Helix::del4MDelA(), Helix::del4MDelA(), Ext_Helix::del4MDelA(), VFHelix::del4MXDelA(), Dedx_Helix::del4MXDelA(), KalmanFit::Helix::del4MXDelA(), Helix::del4MXDelA(), Ext_Helix::del4MXDelA(), KalFitMaterial::del_E(), RkFitMaterial::del_E(), TRunge::dEpath(), TRunge::eloss(), EvtAbsLineShape::EvtAbsLineShape(), EvtAmpA1(), EvtAmpA2(), EvtFlatLineShape::EvtFlatLineShape(), EvtManyDeltaFuncLineShape::EvtManyDeltaFuncLineShape(), EvtRelBreitWignerBarrierFact::EvtRelBreitWignerBarrierFact(), DQA_MDC::execute(), DQADtag::execute(), CosmicGenerator::execute(), Mcgpj::execute(), MucRecTrkExt::execute(), VVS::Fij(), MdcCalib::fillHist(), EvtDecayBase::findMass(), KinematicFit::Fit(), EvtBtoXsgammaKagan::getDefaultHadronicMass(), EvtBtoXsgammaAliGreub::GetMass(), EvtBtoXsgammaKagan::GetMass(), EvtAbsLineShape::getMassProb(), EvtFlatLineShape::getMassProb(), EvtManyDeltaFuncLineShape::getMassProb(), EvtPartProp::getMassProb(), EvtRelBreitWignerBarrierFact::getMassProb(), EvtPDL::getMassProb(), EvtHQET2FF::getscalarff(), EvtHQETFF::getscalarff(), EvtISGW2FF::getscalarff(), EvtISGW2FF::gettensorff(), EvtHQET2FF::getvectorff(), EvtHQETFF::getvectorff(), EvtISGW2FF::getvectorff(), EvtMelikhovFF::getvectorff(), HTrackParameter::HTrackParameter(), CosmicGenerator::initialize(), EvtPartProp::initLineShape(), TRunge::Mass(), KalFitMaterial::mcs_angle(), RkFitMaterial::mcs_angle(), VFHelix::momentum(), Dedx_Helix::momentum(), KalmanFit::Helix::momentum(), Helix::momentum(), Ext_Helix::momentum(), LocalEptoPiPiEtaSelector::operator()(), LocalEptoRhoGamSelector::operator()(), LocalRhotoPiPiSelector::operator()(), LocalEtatoGGSelector::operator()(), LocalKsSelector::operator()(), LocalPi0Selector::operator()(), HTrackParameter::p(), DstMdcTrack::p4(), DTagTool::p4(), MdcUtilitySvc::p_cms(), EvtGenKine::PhaseSpace(), Pdt::readMCppTable(), EvtPDL::readPDT(), ExtMdcTrack::ReadTrk(), rebg(), EvtResonance::resAmpl(), EvtResonance2::resAmpl(), EvtAbsLineShape::reSetMass(), EvtPartProp::reSetMass(), EvtPDL::reSetMass(), EvtAbsLineShape::reSetMassMax(), EvtPartProp::reSetMassMax(), EvtPDL::reSetMassMax(), EvtAbsLineShape::reSetMassMin(), EvtPartProp::reSetMassMin(), EvtPDL::reSetMassMin(), McTestAlg::RetrieveMcParticle(), EvtConExc::Ros_xs(), NeutralDReconstruction::saveD0Info(), ChargedDReconstruction::saveDpInfo(), DsReconstruction::saveDsInfo(), BesSensitiveManager::SaveParticlesFromGenerator(), Ext_track::Set(), Ext_xp_err::set_err(), MdcCalRecTrk::setKalTrk(), TRecMdcKalTrack::setMass(), MdcCalRecTrk::setRecTrk(), EvtMBreitWigner::shape(), RecMdcKalTrackCnv::TObjectToDataObject(), BesSensitiveManager::UpdatePrimaryTrack(), RkFitCylinder::updateTrack(), HTrackParameter::wTrack(), KalmanVertexFit::wTrack(), HTrackParameter::xmass(), ParticleIDBase::xmass(), and EvtXsection::Xsection_c().

◆ PI

float PI = 3.1415927

Definition at line 137 of file CosmicGenerator.cxx.