LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
ToolMacros.h File Reference
#include "cetlib/PluginTypeDeducer.h"
#include "cetlib/ProvideFilePathMacro.h"
#include "cetlib/compiler_macros.h"
#include "fhiclcpp/ParameterSet.h"
#include "fhiclcpp/types/AllowedConfigurationMacro.h"
#include "fhiclcpp/types/Atom.h"
#include <memory>
#include <string>
#include <type_traits>

Go to the source code of this file.

Classes

struct  art::detail::ToolConfig
 

Namespaces

 art::detail
 

Macros

#define ART_PROVIDE_ALLOWED_CONFIGURATION_FUNCTION_TOOL()
 
#define DEFINE_ART_CLASS_TOOL(tool)
 
#define DEFINE_ART_FUNCTION_TOOL(tool, type)
 

Macro Definition Documentation

#define ART_PROVIDE_ALLOWED_CONFIGURATION_FUNCTION_TOOL ( )
Value:
std::unique_ptr<fhicl::ConfigurationTable> allowed_configuration( \
std::string const& name) \
{ \
return std::make_unique<fhicl::WrappedTable<art::detail::ToolConfig>>( \
fhicl::Name{name}); \
}

Definition at line 33 of file ToolMacros.h.

#define DEFINE_ART_CLASS_TOOL (   tool)
Value:
EXTERN_C_FUNC_DECLARE_START \
CET_PROVIDE_FILE_PATH() \
std::string toolType() \
{ \
return "class"; \
} \
makeTool(fhicl::ParameterSet const& pset) \
{ \
return std::make_unique<tool>(pset); \
} \
EXTERN_C_FUNC_DECLARE_END
double value
Definition: spectrum.C:18
#define FHICL_PROVIDE_ALLOWED_CONFIGURATION(klass)

Definition at line 42 of file ToolMacros.h.

Referenced by ShowerRecoTools::ShowerSkeletonTool::AddAssociations(), ShowerRecoTools::ShowerExampleTool::AddAssociations(), ShowerRecoTools::ShowerPandoraSlidingFitTrackFinder::AddAssociations(), ShowerRecoTools::ShowerPCADirection::AddAssociations(), wavdenoise_tool::WaveformDenoiseTf::applyDenoisingAE(), evdb_tool::DrawWireHist::BookHistogram(), evdb_tool::DrawRawHist::BookHistogram(), lar_cluster3d::MSTPathFinder::buildConvexHull(), ShowerRecoTools::ShowerPCAEigenvalueLength::CalculateElement(), ShowerRecoTools::ShowerTrackStartPosition::CalculateElement(), ShowerRecoTools::ShowerLengthPercentile::CalculateElement(), ShowerRecoTools::ShowerDirectionTopologyDecisionTool::CalculateElement(), ShowerRecoTools::ShowerTrackDirection::CalculateElement(), ShowerRecoTools::ShowerTrackTrajPointDirection::CalculateElement(), ShowerRecoTools::ShowerTrackSpacePointDirection::CalculateElement(), ShowerRecoTools::ShowerTrackTrajToSpacePoint::CalculateElement(), ShowerRecoTools::ShowerTrackHitDirection::CalculateElement(), ShowerRecoTools::ShowerStartPositionCheater::CalculateElement(), ShowerRecoTools::ShowerUnidirectiondEdx::CalculateElement(), ShowerRecoTools::ShowerTrackFinderCheater::CalculateElement(), ShowerRecoTools::ShowerPCAPropergationStartPosition::CalculateElement(), ShowerRecoTools::ShowerPFPVertexStartPosition::CalculateElement(), ShowerRecoTools::ShowerTrackColinearTrajPointDirection::CalculateElement(), ShowerRecoTools::ShowerDirectionCheater::CalculateElement(), ShowerRecoTools::ShowerLinearEnergy::CalculateEnergy(), ShowerRecoTools::ShowerNumElectronsEnergy::CalculateEnergy(), evdb_tool::SpacePoint3DDrawerHitCharge::chargeIntegral(), lar_cluster3d::SpacePointHit3DBuilder::chargeIntegral(), lar_cluster3d::MinSpanTreeAlg::CheckHitSorting(), lar_cluster3d::ClusterPathFinder::closestApproach(), lar_cluster3d::VoronoiPathFinder::closestApproach(), lar_cluster3d::ConvexHullPathFinder::closestApproach(), lar_pandora::LArPandoraHitCollectionToolDefault::CollectHits(), t0::IndirectHitParticleAssns::CreateHitParticleAssociations(), t0::DirectHitParticleAssns::CreateHitParticleAssociations(), evdb_tool::PFParticle3DDrawer::Draw(), evdb_tool::PCA3DDrawer::Draw(), evdb_tool::SpacePoint3DDrawerChiSquare::Draw(), evdb_tool::Edge3DDrawer::Draw(), evdb_tool::SpacePoint3DDrawerStandard::Draw(), evdb_tool::SpacePoint3DDrawerHitAsymmetry::Draw(), evdb_tool::DrawWireData::Draw(), evdb_tool::DrawGausHits::Draw(), evdb_tool::DrawSimEnergyDeposit3D::drawAll(), evd_tool::StandardDrawer::DrawAxes(), evd_tool::ProtoDUNEDrawer::DrawAxes(), evd_tool::MicroBooNEDrawer::DrawBadChannels(), evd_tool::ICARUSDrawer::DrawBadChannels(), evdb_tool::OpHit3DDrawer::DrawRectangularBox(), evdb_tool::DrawSimPhoton3D::DrawRectangularBox(), evdb_tool::OpFlash3DDrawer::DrawRectangularBox(), evdb_tool::DrawSkewHits::EvalMultiExpoFit(), lar_cluster3d::DBScanAlg::expandCluster(), ShowerRecoTools::ShowerTrajPointdEdx::FinddEdxLength(), pmtana::RiseTimeGaussFit::findFirstMax(), lar_cluster3d::ClusterMergeAlg::findFurthestHit3D(), reco_tool::PeakFitterGaussElimination::findPeakParameters(), reco_tool::PeakFitterMrqdt::findPeakParameters(), reco_tool::PeakFitterGaussian::FindShiftedGaussian(), reco_tool::CandHitDerivative::findStopTick(), reco_tool::CandHitMorphological::findStopTick(), ShowerRecoTools::Shower3DCylinderTrackHitFinder::FindTrackSpacePoints(), evdb_tool::DrawLArVoxel3D::GetMCTruth(), reco_tool::WaveformTools::getOpeningAndClosing(), lar_cluster3d::StandardHit3DBuilder::makeRawDigitAssns(), lar_cluster3d::SnippetHit3DBuilder::makeRawDigitAssns(), reco_tool::CandHitStandard::MergeHitCandidates(), phot::TFLoaderMLP::Predict(), wavrec_tool::WaveformRecogTf::predictWaveformType(), wframerec_tool::WireframeRecogTf::predictWireframeType(), reco3d::HitsStandard::readHits(), reco3d::HitsICARUS::readHits(), ShowerRecoTools::ShowerBayesianTrucatingdEdx::RecurivelyAddHit(), lar_cluster3d::ClusterParamsBuilder::removeUsedHitsFromMap(), trkmkr::KalmanFilterFitTrackMaker::restoreInputPoints(), pmtana::RiseTimeThreshold::RiseTime(), PointIdAlgTools::PointIdAlgSonicTriton::Run(), PointIdAlgTools::PointIdAlgTf::Run(), PointIdAlgTools::PointIdAlgKeras::Run(), PointIdAlgTools::PointIdAlgTriton::Run(), ShowerRecoTools::ShowerIncrementalTrackHitFinder::RunTestOfIncrementalSpacePointFinder(), dnn::SavePiMu::saveImage(), ShowerRecoTools::ShowerTrackPCADirection::ShowerPCAVector(), and ShowerRecoTools::Shower2DLinearRegressionTrackHitFinder::WeightedFit().

#define DEFINE_ART_FUNCTION_TOOL (   tool,
  type 
)
Value:
EXTERN_C_FUNC_DECLARE_START \
CET_PROVIDE_FILE_PATH() \
std::string toolType() \
{ \
return type; \
} \
auto toolFunction = tool; \
EXTERN_C_FUNC_DECLARE_END
#define ART_PROVIDE_ALLOWED_CONFIGURATION_FUNCTION_TOOL()
Definition: ToolMacros.h:33

Definition at line 57 of file ToolMacros.h.