LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
spectrum.C File Reference

Go to the source code of this file.

Functions

 for (int i=0;i< nbValues;i++)
 
 fclose (fp)
 
ntuple Draw ("value")
 

Variables

int nbValues = 100
 
double value
 
TNtuple * ntuple = new TNtuple ("","","value")
 
FILE * fp = fopen("spectrum.txt","w")
 
TRandom r
 

Function Documentation

ntuple Draw ( "value"  )
fclose ( fp  )

Referenced by for().

for ( )

Definition at line 25 of file spectrum.C.

References fclose().

26 {
27 // 2) SELECT distribution
28 // here Gaussian with mean, sigma
29 // see https://root.cern.ch/doc/master/classTRandom.html
30  value = r.Gaus(1.,0.1);
31 //
32  ntuple->Fill(value);
33  fprintf(fp,"%f \n",value);
34 }
TRandom r
Definition: spectrum.C:23
TNtuple * ntuple
Definition: spectrum.C:19
FILE * fp
Definition: spectrum.C:21
double value
Definition: spectrum.C:18

Variable Documentation

FILE* fp = fopen("spectrum.txt","w")

Definition at line 21 of file spectrum.C.

int nbValues = 100

Definition at line 15 of file spectrum.C.

TNtuple* ntuple = new TNtuple ("","","value")

Definition at line 19 of file spectrum.C.

TRandom r

Definition at line 23 of file spectrum.C.

Referenced by geoalgo::GeoAlgo::_SqDist_(), detsim::SimWireAna::analyze(), detsim::WienerFilterAna::analyze(), caldata::CalWireAna::analyze(), art::EventRange::are_valid(), art::AssnsNode< L, R, D >::AssnsNode(), lar_content::RPhiFeatureTool::atan2Fast(), art::EventProcessor::beginRun(), genf::GFKalman::chi2Increment(), evd::RecoBaseDrawer::Circle3D(), art::RangeSet::collapse(), lariov::DBFolder::CompareDataset(), lar::util::simple_geo::Range< Data_t >::contains(), lar::util::simple_geo::Rectangle< double >::contains(), fhicl::detail::ValidateThenSet::delegated_parameter(), larg4::OpFastScintillation::detectedReflecHits(), phot::SemiAnalyticalModel::detectedReflectedVisibilities(), art::detail::Producer::doBeginRun(), art::detail::Filter::doBeginRun(), art::OutputModule::doBeginRun(), art::detail::Producer::doEndRun(), art::detail::Filter::doEndRun(), art::OutputModule::doEndRun(), art::ProducingService::doPostReadRun(), art::RangeSet::emplace_range(), art::EventProcessor::endRun(), fhicl::detail::ValidateThenSet::enter_sequence(), boost::python::detail::proxy_links< Proxy, Container >::erase(), export_G4ThreeVector(), export_G4TwoVector(), lar::util::simple_geo::Range< Data >::extendToInclude(), art::Assns< L, R, void >::fill_transients(), boost::python::detail::proxy_links< Proxy, Container >::find(), quad::FindPeak3D(), trkf::SeedFinderAlgorithm::FindSeeds(), art::get(), img::DataProviderAlg::getAdcArea(), genf::GFKalman::getChi2Hit(), phot::PropagationTimeModel::getVISTimes(), larg4::OpFastScintillation::getVISTimes(), genf::GFDetPlane::GFDetPlane(), lar_dl_content::DlHitTrackShowerIdAlgorithm::Infer(), art::MixHelper::initReadMode_(), art::RunID::inRangeOrInvalid(), geo::PlaneGeo::InterWireDistance(), art::RangeSet::invalidChecksum(), keras::LayerConv2D::load_weights(), nutools::dbi::Table::LoadFromCSV(), lar::details::make_const_datarange_t(), art::SourceHelper::makeEventPrincipal(), lar_content::LArGraph::MakeGraph(), makeGridPartition(), evdb::ColorScale::MakeHSVScale(), art::SourceHelper::makeRunPrincipal(), art::SourceHelper::makeSubRunPrincipal(), lar::util::details::FastMatrixOperationsBase< T, DIM >::MatrixVectorProduct(), evd::SimulationDrawer::MCTruthVectors2D(), util::UniqueRangeSet< T >::Merge(), pma::PMAlgTracker::mergeCoLinear(), nutools::dbi::Table::NewRow(), fhicl::OptionalTuple< T >::operator()(), fhicl::detail::it_value_get< std::complex< U >, typename tt::disable_if< std::is_reference_v< std::complex< U > >|| std::is_pointer_v< std::complex< U > > >::type >::operator()(), art::const_AssnsIter< L, R, D, Dir >::operator<(), art::const_AssnsIter< L, R, D, Dir >::operator<=(), art::const_AssnsIter< L, R, D, Dir >::operator>(), art::const_AssnsIter< L, R, D, Dir >::operator>=(), img::DataProviderAlg::poolMax(), art::TimeTracker::postEndJob(), wframerec_tool::WireframeRecogTf::predictWireframeType(), genf::PrintROOTmatrix(), genf::GFKalman::processHit(), calo::GnocchiCalorimetry::produce(), geoalgo::Cone::Radius(), geoalgo::Sphere::Radius(), lar::sparse_vector< T >::range_const_data(), lar::sparse_vector< T >::range_data(), art::RangeSet::RangeSet(), keras::DataChunk2D::read_from_file(), art::EventProcessor::readRun(), boost::python::detail::proxy_links< Proxy, Container >::remove(), boost::python::detail::proxy_links< Proxy, Container >::replace(), nnet::PointIdAlg::resizePatch(), genf::RKTrackRep::RKutta(), PointIdAlgTools::PointIdAlgTf::Run(), tf::Graph::run(), nnet::TfModelInterface::Run(), tss::SimpleClustering::run(), art::same_ranges(), art::RangeSet::set_run(), detinfo::LArPropertiesStandard::SetAlphaScintYieldRatio(), detinfo::LArPropertiesStandard::SetArgon39DecayRate(), evdb::ColorScale::SetBounds(), genf::GFTrack::setCardinalRep(), artg4tk::ActionHolderService::setCurrArtRun(), detinfo::LArPropertiesStandard::SetElectronScintYieldRatio(), genf::GFKalman::setErrorScaleMTh(), MedicalBeam::SetFieldR(), detinfo::LArPropertiesStandard::SetKaonScintYieldRatio(), detinfo::LArPropertiesStandard::SetMuonScintYieldRatio(), detinfo::LArPropertiesStandard::SetPionScintYieldRatio(), detinfo::LArPropertiesStandard::SetProtonScintYieldRatio(), geoalgo::Cylinder::SetRadius(), mf::ErrorObj::setReactedTo(), detinfo::LArPropertiesStandard::SetReflectiveSurfaceReflectances(), detinfo::LArPropertiesStandard::SetScintResolutionScale(), detinfo::LArPropertiesStandard::SetScintYieldRatio(), cmtool::SimpleCombination(), mf::service::ELdestination::skipMsg(), pma::SolveLeastSquares3D(), geoalgo::Sphere::Sphere(), art::RangeSet::split_range(), evgb::EvtTimeFNALBeam::TimeOffset(), art::RangeSet::to_compact_string(), evdb::Colors::UnpackColorScale(), pma::Element3D::UpdateHitParams(), larg4::OpFastScintillation::VISHits(), phot::SemiAnalyticalModel::VISVisibility(), lar::sparse_vector< T >::void_range(), larg4::OpFastScintillation::VUVHits(), phot::SemiAnalyticalModel::VUVVisibility(), art::EventProcessor::writeRun(), nutools::dbi::Table::WriteToDB(), geoalgo::Cone::~Cone(), and geoalgo::Sphere::~Sphere().

double value

Definition at line 18 of file spectrum.C.

Referenced by util::quantities::concepts::Quantity< Unit, T >::abs(), lar::util::MinMaxCollector< T >::add(), lar::util::GaussianFit< T >::add(), art::detail::addr(), rwgt::GENIEReweight::AddReweightValue(), art::BasicOptionsHandler::BasicOptionsHandler(), BOOST_PYTHON_MODULE(), cluster::ClusterMerger::bot(), ShowerRecoTools::ShowerBayesianTrucatingdEdx::CalculatePosterior(), rwgt::GENIEReweight::CalculateSigma(), util::quantities::concepts::Interval< Q, Cat >::castFrom(), util::quantities::concepts::Quantity< Unit, T >::castFrom(), util::quantities::concepts::Point< Q, Cat, IV >::castFrom(), rwgt::GENIEReweight::ChangeParameterValue(), art::FileCatalogMetadata::InheritedMetadata::check_values(), evdb::ParameterSetEditRow::CheckButtonClicked(), art::Source< T >::checkForNextFile_(), cmtool::ClusterCombinations(), lar_content::LArMvaHelper::ConcatenateFeatureLists(), detinfo::LArPropertiesStandard::Configure(), lar::details::CounterBlock< COUNTER, NCounters >::CounterBlock(), lariov::Snapshot< lariov::PmtGain >::Data(), lariov::DBDataset::DBDataset(), detinfo::DetectorClocksStandard::debugReport(), fhicl::detail::decode(), fhicl::OptionalSequence< T,-1ull >::do_prepare_elements_for_validation(), fhicl::Sequence< T,-1ull >::do_prepare_elements_for_validation(), fhicl::OptionalAtom< T >::do_set_value(), larg4::LArG4DetectorService::doBuildLVs(), artg4tk::ArtG4tkModelConfig::DoFill(), lariov::DBFolder::DumpDataset(), recob::dumper::DumpPCAxis(), fhicl::detail::encode(), lar::util::GaussianFit< T >::EncodeExtractor< Pred, void >::EncodeExtractor(), export_G4ApplicationState(), export_G4ClassificationOfNewTrack(), export_G4ExceptionSeverity(), export_G4Material(), export_G4ProcessManager(), export_G4ProcessType(), export_G4StepStatus(), export_G4TrackStatus(), export_G4VisAttributes(), export_G4VisManager(), export_geomdefs(), proxy::details::extendAndAssign(), genf::RKTrackRep::Extrap(), geo::details::GeoContainerData< T >::fill(), rndm::NuRandomServiceHelper::MapKeyIterator< typename map_t::const_iterator >::get_key(), fhicl::ParameterSet::get_one_(), fhicl::ParameterSet::get_pset_names(), fhicl::OptionalSequence< art::InputTag >::get_size(), fhicl::Sequence< float, 3u >::get_size(), fhicl::OptionalSequence< T,-1ull >::get_size(), fhicl::Sequence< T,-1ull >::get_size(), lariov::DBFolder::GetNamedChannelData(), pyG4ParticleTable::GetParticleList(), shower::EMShowerAlg::GetPlanePermutations_(), phot::PhotonVisibilityService::GetReflT0s(), lariov::DBFolder::GetSQLiteData(), pma::Track3D::HasTagFlag(), cluster::ClusterParamsImportWrapper< Algo >::ImportHits(), evgen::details::Average< T >::insert(), art::Sampled< T >::insert(), fhicl::intermediate_table::insert(), sim::LArVoxelList::insert(), sim::LArVoxelData::insert(), fhicl::ParameterSet::insert_or_replace_(), fhicl::ParameterSet::insert_or_replace_compatible_(), fhicl::detail::is_table(), lar_content::MvaPfoCharacterisationAlgorithm< T >::IsClearTrack(), sim::PhotonVoxelDef::isInsideImpl(), ShowerRecoTools::ShowerBayesianTrucatingdEdx::isPosteriorProbabilityGood(), sim::ParticleList::KnownParticle(), evgen::MARLEYHelper::load_full_paths_into_json(), nutools::dbi::Table::LoadFromCSV(), geo::LocalTransformation< geo::TransformationMatrix >::LocalToWorld(), geo::LocalTransformation< geo::TransformationMatrix >::LocalToWorldVect(), geo::LocalTransformation< geo::TransformationMatrix >::LocalTransformation(), fhicl::ParameterSet::make(), art::make_tool(), opdet::HitAlgoMakerToolBase< HitAlgoClass >::makeAlgo(), cluster::BlurredClusteringAlg::MakeKernels(), lar_dl_content::DlVertexingAlgorithm::MakeNetworkInputFromHits(), art::EmptyEvent::makePlugin_(), art::OutputModule::makePlugins_(), util::quantities::makeQuantity(), rndm::details::PerEventPolicy< SEED >::makeValid(), lar::util::MinMaxCollector< float >::MinMaxCollector(), mf::service::ELdestination::MsgFormatSettings::MsgFormatSettings(), norm_th1_per_bin_width_per_primaries(), norm_th2_per_bin_width_per_primaries(), util::details::MultipleChoiceSelectionOption_t< Choices >::operator Choices_t(), util::quantities::concepts::Interval< Q, Cat >::operator value_t(), util::quantities::concepts::Quantity< Unit, T >::operator value_t(), util::quantities::concepts::Point< Q, Cat, IV >::operator value_t(), util::details::MultipleChoiceSelectionOption_t< Choices >::operator!=(), util::quantities::concepts::Quantity< Unit, T >::operator!=(), util::SumSecondFunction< _Key, _Value, _BinaryOperation >::operator()(), fhicl::OptionalSequence< art::InputTag >::operator()(), util::TensorIndices< 1U >::operator()(), fhicl::Sequence< float, 3u >::operator()(), fhicl::OptionalSequence< T,-1ull >::operator()(), fhicl::Sequence< T,-1ull >::operator()(), util::TensorIndices< DIMS >::operator()(), lar::util::details::hash< T >::operator()(), geo::part::details::PartitionRangeLowerBoundExtractor< Range >::operator()(), lar::util::GaussianFit< T >::EncodeExtractor< Pred, void >::operator()(), sim::operator*(), sim::LArVoxelList::operator*(), sim::LArVoxelData::operator*(), sim::LArVoxelList::operator*=(), sim::LArVoxelData::operator*=(), sim::LArVoxelList::operator+(), util::quantities::concepts::Quantity< Unit, T >::operator+(), util::details::RangeForWrapperIterator< BeginIter, EndIter >::operator-(), util::quantities::concepts::Quantity< Unit, T >::operator-(), util::quantities::concepts::Quantity< Unit, T >::operator/(), util::quantities::concepts::Quantity< Unit, T >::operator<(), util::quantities::concepts::Quantity< Unit, T >::operator<=(), cluster::details::MultiValue::operator=(), util::details::MultipleChoiceSelectionOption_t< Choices >::operator==(), util::quantities::concepts::Quantity< Unit, T >::operator==(), util::quantities::concepts::Quantity< Unit, T >::operator>(), util::quantities::concepts::Quantity< Unit, T >::operator>=(), shims::map< Key, T, Compare, Allocator >::operator[](), lar::CountersMap< KEY, COUNTER, SIZE, ALLOC, SUBCOUNTERS >::operator[](), fhicl::OptionalSequence< T, N >::OptionalSequence(), PyG4ParticleList::p_begin(), PyG4ParticleList::p_end(), evdb::parse_pset_string(), art::detail::path_specs(), art::pointersEqual(), phot::TFLoaderMLP::Predict(), art::detail::prune_config_if_enabled(), fhicl::intermediate_table::put(), fhicl::ParameterSet::put(), fhicl::ParameterSet::put_or_replace(), fhicl::ParameterSet::put_or_replace_compatible(), util::quantities::concepts::Interval< Q, Cat >::quantity(), util::quantities::concepts::Point< Q, Cat, IV >::quantity(), evdb::ParameterSetEditRow::RadioButtonClicked(), lar_content::SupportVectorMachine::ReadSupportVector(), pmtana::AlgoSiPM::RecoPulse(), pmtana::AlgoSlidingWindow::RecoPulse(), pmtana::AlgoThreshold::RecoPulse(), hit::HitAnaAlg::ROIInfo(), geo::vect::extra::roundValue0(), geo::vect::extra::roundValue01(), art::RPManager::RPManager(), lar_content::VisualParticleMonitoringAlgorithm::Run(), art::run_art(), lar_content::NeutrinoIdTool< T >::SelectPfosByProbability(), fhicl::Sequence< T, N >::Sequence(), fhicl::Sequence< T,-1ull >::Sequence(), cluster::HoughTransformCounters< KEY, COUNTER, SIZE, ALLOC, SUBCOUNTERS >::set(), geo::BoxBoundedGeo::set_max(), geo::BoxBoundedGeo::set_min(), pma::Track3D::SetEndSegWeight(), evd::InfoTransfer::SetEvtNumber(), pma::Track3D::SetMaxHitsPerSeg(), art::FileCatalogMetadata::setMetadataFromInput(), cmtool::CBAlgoProhibitAllTracks::SetMinEP(), cmtool::CBAlgoStartTrack::SetMinEP(), cmtool::CBAlgoStartTrack::SetMinHits(), cmtool::CBAlgoStartTrack::SetMinOpeningAngle(), cmtool::CBAlgoStartTrack::SetMinWidth(), pma::Element3D::SetOptFactor(), pma::Track3D::SetPenalty(), evd::InfoTransfer::SetRunNumber(), pma::Hit3D::SetSigmaFactor(), evd::InfoTransfer::SetSubRunNumber(), evd::InfoTransfer::SetTestFlag(), recob::dumper::SpacePointPrintOptions_t::SpacePointPrintOptions_t(), util::TensorIndices< 1U >::TensorIndices(), util::TensorIndices< DIMS >::TensorIndices(), cluster::ClusterMerger::top(), util::PxHitConverter::ToPxHit(), art::Transient< art::ProductProvenance::Transients >::Transient(), cluster::HoughTransformCounters< KEY, COUNTER, SIZE, ALLOC, SUBCOUNTERS >::unchecked_add_range_max(), lar::CountersMap< KEY, COUNTER, SIZE, ALLOC, SUBCOUNTERS >::unchecked_set(), cluster::HoughTransformCounters< KEY, COUNTER, SIZE, ALLOC, SUBCOUNTERS >::unchecked_set_range(), fhicl::ParameterSet::walk(), geo::LocalTransformation< geo::TransformationMatrix >::WorldToLocal(), lar_content::LArMvaHelper::WriteFeaturesToFile(), and geo::details::writeToString().