General GArSoft Utilities. More...
Namespaces | |
| cheat | |
| debug | |
| details | |
| detinfo | |
| dump | |
| Namespace for GArSoft dumping utilities. | |
| evd | |
| evd3d | |
| evgen | |
| filt | |
| gar_pandora | |
| garg4 | |
| geo | |
| raw | |
| rec | |
| rosim | |
| sdp | |
| sumdata | |
| util | |
Classes | |
| class | anatest |
| class | anatree |
| class | CAFHelper |
| class | CAFMaker |
| class | HNLAnalysis |
| class | MatchingPerformance |
| class | MomentumPerformance |
| class | NestAlg |
| class | ParamSim |
| class | ProviderPack |
| Container for a list of pointers to providers. More... | |
| class | ServiceProviderImplementationWrapper |
| Service implementation returning a provider. More... | |
| class | ServiceProviderInterfaceWrapper |
| Service returning a provider interface. More... | |
| class | SimpleServiceProviderWrapper |
| Service returning a provider. More... | |
| class | StructuredTree |
| struct | UncopiableAndUnmovableClass |
| An empty class that can't be copied nor moved. More... | |
Typedefs | |
| typedef std::pair< float, std::string > | P |
| template<typename... Services> | |
| using | ProviderPackFromServices = gar::ProviderPack< typename Services::provider_type... > |
| Type of provider pack with providers from all specified Services. More... | |
Functions | |
| garana::GTruth | MakeAnaGTruth (const simb::GTruth >, const int &vtxregion) |
| garana::FSParticle | MakeFSParticle (const simb::MCParticle &mcp) |
| garana::G4Particle | MakeG4Particle (const simb::MCParticle &mcp, int parentPdg, int progenitorPdg, int progenitorTrackId, const vector< pair< TLorentzVector, TLorentzVector >> &positions, const vector< pair< TLorentzVector, TLorentzVector >> &momenta, const vector< int > ®ions, const vector< size_t > &nptsPerRegion) |
| garana::CaloCluster | MakeAnaCalCluster (const rec::Cluster &clust, const int ®ion, const std::vector< std::pair< int, float >> &edeps) |
| garana::Vee | MakeAnaVee (const rec::Vee &vee) |
| garana::Vertex | MakeAnaVtx (const rec::Vertex &vtx) |
| int | ProcessNameToCode (std::string const &p) |
| void | FillGTruth (const simb::GTruth >, garana::GTruth &outtruth) |
| const garana::Track | MakeAnaTrack (const rec::Track &trk, const vector< pair< int, float >> &pidf, const vector< pair< int, float >> &pidb, float ionf, float ionb, const vector< pair< UInt_t, TLorentzVector >> &posBeg, const vector< pair< UInt_t, TLorentzVector >> &posEnd, const vector< pair< UInt_t, TLorentzVector >> &momBeg, const vector< pair< UInt_t, TLorentzVector >> &momEnd, const vector< pair< int, float >> &edeps) |
| garana::CaloCluster | MakeAnaCalCluster (const rec::Cluster &clust, const int ®ion, const vector< pair< int, float >> &edeps) |
| template<typename... Providers> | |
| ProviderPack< Providers... > | makeProviderPack (Providers const *...providers) |
| Function to create a ParameterPack from the function arguments. More... | |
| std::set< std::string > const & | IgnorableProviderConfigKeys () |
| Returns a list of configuration keys that providers should ignore. More... | |
| template<class T > | |
| T::provider_type const * | providerFrom () |
| Returns a constant pointer to the provider of specified service. More... | |
| template<typename... Services> | |
| ProviderPackFromServices< Services... > | extractProviders () |
| Returns a provider pack with providers from specified services. More... | |
| G4double | UnivScreenFunc (G4double E, G4double Z, G4double A) |
Variables | |
| std::unordered_map< std::string, int > | processMap |
| G4bool | diffusion = true |
| G4bool | SinglePhase =false |
| G4bool | ThomasImelTail =true |
| G4bool | OutElectrons =true |
| G4double | biExc = 0.77 |
General GArSoft Utilities.
Monte Carlo sdpulation.
Raw data description and utilities.
PseudoLayerPlugin class.
Namespace collecting geometry-related classes utilities.
Geant4 interface.
Event Generation using GENIE, cosmics or single particles.
Event display classes.
GArSoft includes.
File with various classes for a generic nearest neighbour type clustering.
Definition at line 75 of file anatree_module.cc.
| using gar::ProviderPackFromServices = typedef gar::ProviderPack<typename Services::provider_type...> |
Type of provider pack with providers from all specified Services.
Definition at line 26 of file ServicePack.h.
| ProviderPackFromServices<Services...> gar::extractProviders | ( | ) |
Returns a provider pack with providers from specified services.
| Services | the services to extract the providers from |
This convenience function automatically extracts all the service providers from a list of services. This is convenient if an algorithm or service accepts a provider pack for setup:
algo->Setup(extractProviders< detinfo::DetectorPropertiesService, detinfo::GArPropertiesService >());
Also note that the provider packs can rearrange their elements, so the call above should work just the same as:
algo->Setup(extractProviders< detinfo::GArPropertiesService, detinfo::DetectorPropertiesService >());
If a provider is needed in the setup argument that is not provided by any of the specified services, a compilation error will occur.
Definition at line 53 of file ServicePack.h.
| void gar::FillGTruth | ( | const simb::GTruth & | gt, |
| garana::GTruth & | outtruth | ||
| ) |
Definition at line 151 of file AnaUtils.cxx.
|
inline |
Returns a list of configuration keys that providers should ignore.
This function may be used for parameter validation, like in:
fhicl::Table<Config> cfg { pset, gar::IgnorableProviderConfigKeys() };
where pset is a fhicl::ParameterSet. This will inform cfg that some keys can be unexpectedly present, or missing.
This implementation includes:
Definition at line 35 of file ProviderUtil.h.
| garana::CaloCluster gar::MakeAnaCalCluster | ( | const rec::Cluster & | clust, |
| const int & | region, | ||
| const std::vector< std::pair< int, float >> & | edeps | ||
| ) |
Definition at line 48 of file AnaUtils.cxx.
| garana::CaloCluster gar::MakeAnaCalCluster | ( | const rec::Cluster & | clust, |
| const int & | region, | ||
| const vector< pair< int, float >> & | edeps | ||
| ) |
Definition at line 48 of file AnaUtils.cxx.
| garana::GTruth gar::MakeAnaGTruth | ( | const simb::GTruth & | gt, |
| const int & | vtxregion | ||
| ) |
Definition at line 17 of file AnaUtils.cxx.
| const garana::Track gar::MakeAnaTrack | ( | const rec::Track & | trk, |
| const vector< pair< int, float >> & | pidf, | ||
| const vector< pair< int, float >> & | pidb, | ||
| float | ionf, | ||
| float | ionb, | ||
| const vector< pair< UInt_t, TLorentzVector >> & | posBeg, | ||
| const vector< pair< UInt_t, TLorentzVector >> & | posEnd, | ||
| const vector< pair< UInt_t, TLorentzVector >> & | momBeg, | ||
| const vector< pair< UInt_t, TLorentzVector >> & | momEnd, | ||
| const vector< pair< int, float >> & | edeps | ||
| ) |
Definition at line 202 of file AnaUtils.cxx.
| garana::Vee gar::MakeAnaVee | ( | const rec::Vee & | vee | ) |
Definition at line 67 of file AnaUtils.cxx.
| garana::Vertex gar::MakeAnaVtx | ( | const rec::Vertex & | vtx | ) |
Definition at line 80 of file AnaUtils.cxx.
| garana::FSParticle gar::MakeFSParticle | ( | const simb::MCParticle & | mcp | ) |
Definition at line 29 of file AnaUtils.cxx.
| garana::G4Particle gar::MakeG4Particle | ( | const simb::MCParticle & | mcp, |
| int | parentPdg, | ||
| int | progenitorPdg, | ||
| int | progenitorTrackId, | ||
| const vector< pair< TLorentzVector, TLorentzVector >> & | positions, | ||
| const vector< pair< TLorentzVector, TLorentzVector >> & | momenta, | ||
| const vector< int > & | regions, | ||
| const vector< size_t > & | nptsPerRegion | ||
| ) |
Definition at line 33 of file AnaUtils.cxx.
| ProviderPack<Providers...> gar::makeProviderPack | ( | Providers const *... | providers | ) |
Function to create a ParameterPack from the function arguments.
| Providers | types of the providers in the parameter pack |
| providers | constant pointers to the providers |
This is an convevience function to reduce the typing needed to instantiate a ParameterPack.
Definition at line 182 of file ProviderPack.h.
| int gar::ProcessNameToCode | ( | std::string const & | p | ) |
Definition at line 137 of file AnaUtils.cxx.
| T::provider_type const* gar::providerFrom | ( | ) |
Returns a constant pointer to the provider of specified service.
| T | type of the service |
| art::Exception | (category art::errors::NotFound) if pointer is null |
This function relies on the following service and provider interface:
Violations of the protocol yield compilation errors (in case non-compliance can be statically detected), or throw of exceptions.
Example of usage:
auto const* geom = gar::providerFrom<geo::GeometryGAr>();
retrieves the service provider for GArSoft geometry. This requires the inclusion of "Geometry/GeometryGAr.h" header, where the service is declared. Typically, both ServiceUtil.h and the header of the provider class are included in the service header.
Definition at line 63 of file ServiceUtil.h.
| G4double gar::UnivScreenFunc | ( | G4double | E, |
| G4double | Z, | ||
| G4double | A | ||
| ) |
Definition at line 1258 of file NestAlg.cxx.
| G4double gar::biExc = 0.77 |
Definition at line 47 of file NestAlg.cxx.
| G4bool gar::diffusion = true |
Definition at line 43 of file NestAlg.cxx.
| G4bool gar::OutElectrons =true |
Definition at line 45 of file NestAlg.cxx.
| std::unordered_map<std::string,int> gar::processMap |
Definition at line 89 of file AnaUtils.cxx.
| G4bool gar::SinglePhase =false |
Definition at line 45 of file NestAlg.cxx.
| G4bool gar::ThomasImelTail =true |
Definition at line 45 of file NestAlg.cxx.
1.8.11