All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AtomicNumberService.h
Go to the documentation of this file.
1 /**
2  * @file AtomicNumberService.h
3  * @brief Returns the atomic number of the active material in the TPC
4  * @author Gianluca Petrillo (petrillo@fnal.gov)
5  * @date April 13, 2016
6  * @see AtomicNumberService_service.cc
7  * @ingroup AtomicNumber
8  *
9  */
10 
11 #ifndef LAREXAMPLES_SERVICES_ATOMICNUMBER_SERVICE_ATOMICNUMBERSERVICE_H
12 #define LAREXAMPLES_SERVICES_ATOMICNUMBER_SERVICE_ATOMICNUMBERSERVICE_H
13 
14 // LArSoft libraries
17 
18 // framework and support libraries
19 #include "art/Framework/Services/Registry/ServiceDeclarationMacros.h"
20 
21 namespace lar {
22 
23  namespace example {
24 
25  /**
26  * @brief Service giving access to AtomicNumber service provider.
27  * @see AtomicNumber, @ref AtomicNumber "AtomicNumber example overview"
28  * @ingroup AtomicNumber
29  *
30  * Access the provider with the standard LArSoft access pattern:
31  *
32  * auto const* atomicNumber
33  * = lar::providerFrom<lar::example::AtomicNumberService>();
34  *
35  *
36  */
39 
40  } // namespace example
41 } // namespace lar
42 
43 
44 DECLARE_ART_SERVICE(lar::example::AtomicNumberService, LEGACY)
45 
46 
47 #endif // LAREXAMPLES_SERVICES_ATOMICNUMBER_SERVICE_ATOMICNUMBERSERVICE_H
Skeleton for a art service interface to service providers.
Provider returning atomic number of the active material in the TPC.
lar::SimpleServiceProviderWrapper< AtomicNumber > AtomicNumberService
Service giving access to AtomicNumber service provider.
Service returning a provider.