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 const &pset)=delete
 
 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 38 of file AtomicNumber.h.

Member Typedef Documentation

Type describing all the parameters.

Definition at line 55 of file AtomicNumber.h.

Constructor & Destructor Documentation

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

Constructor from the complete configuration object.

Definition at line 60 of file AtomicNumber.h.

62  {}
static Config * config
Definition: config.cpp:1054
unsigned int Z_
atomic number
Definition: AtomicNumber.h:91
fhicl::Atom< unsigned int > AtomicNumber
Definition: AtomicNumber.h:46
lar::example::AtomicNumber::AtomicNumber ( fhicl::ParameterSet const &  pset)
inline

Constructor from a parameter set.

Definition at line 66 of file AtomicNumber.h.

67  : AtomicNumber(parameters_type(pset, { "service_type" })())
68  {}
fhicl::Table< Config > parameters_type
Type describing all the parameters.
Definition: AtomicNumber.h:55
AtomicNumber(Config const &config)
Constructor from the complete configuration object.
Definition: AtomicNumber.h:60
lar::example::AtomicNumber::AtomicNumber ( AtomicNumber const &  pset)
delete
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 ( void  ) const
inline

Returns the atomic number.

Definition at line 84 of file AtomicNumber.h.

84 { return Z_; }
unsigned int Z_
atomic number
Definition: AtomicNumber.h:91

Member Data Documentation

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

atomic number

Definition at line 91 of file AtomicNumber.h.


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