All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Types | Public Member Functions | Private Attributes | List of all members
lar::example::AtomicNumber Class Reference

Provides information about the active material in the TPC. More...

#include <AtomicNumber.h>

Classes

struct  Config
 Collection of configuration parameters for the service. More...
 

Public Types

using parameters_type = fhicl::Table< Config >
 Type describing all the parameters. More...
 

Public Member Functions

 AtomicNumber (Config const &config)
 Constructor from the complete configuration object. More...
 
 AtomicNumber (fhicl::ParameterSet const &pset)
 Constructor from a parameter set. More...
 
 AtomicNumber (AtomicNumber &&pset)=delete
 
AtomicNumberoperator= (AtomicNumber const &pset)=delete
 
AtomicNumberoperator= (AtomicNumber &&pset)=delete
 
Accessors
unsigned int Z () const
 Returns the atomic number. More...
 

Private Attributes

unsigned int Z_
 atomic number More...
 

Detailed Description

Provides information about the active material in the TPC.


See Also
AtomicNumber example overview

Configuration parameters

See AtomicNumber service provider class.

Definition at line 41 of file AtomicNumber.h.

Member Typedef Documentation

Type describing all the parameters.

Definition at line 58 of file AtomicNumber.h.

Constructor & Destructor Documentation

lar::example::AtomicNumber::AtomicNumber ( Config const &  config)
inline

Constructor from the complete configuration object.

Definition at line 63 of file AtomicNumber.h.

64  : Z_(config.AtomicNumber())
65  {}
unsigned int Z_
atomic number
Definition: AtomicNumber.h:94
lar::example::AtomicNumber::AtomicNumber ( fhicl::ParameterSet const &  pset)
inline

Constructor from a parameter set.

Definition at line 69 of file AtomicNumber.h.

70  : AtomicNumber(parameters_type(pset, { "service_type" })())
fhicl::Table< Config > parameters_type
Type describing all the parameters.
Definition: AtomicNumber.h:58
AtomicNumber(Config const &config)
Constructor from the complete configuration object.
Definition: AtomicNumber.h:63
lar::example::AtomicNumber::AtomicNumber ( AtomicNumber &&  pset)
delete

Member Function Documentation

AtomicNumber& lar::example::AtomicNumber::operator= ( AtomicNumber const &  pset)
delete
AtomicNumber& lar::example::AtomicNumber::operator= ( AtomicNumber &&  pset)
delete
unsigned int lar::example::AtomicNumber::Z ( ) const
inline

Returns the atomic number.

Definition at line 87 of file AtomicNumber.h.

87 { return Z_; }
unsigned int Z_
atomic number
Definition: AtomicNumber.h:94

Member Data Documentation

unsigned int lar::example::AtomicNumber::Z_
private

atomic number

Definition at line 94 of file AtomicNumber.h.


The documentation for this class was generated from the following file: