LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
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.

  • AtomicNumber (integer, default: 18): atomic number of the active material

Definition at line 39 of file AtomicNumber.h.

Member Typedef Documentation

Type describing all the parameters.

Definition at line 56 of file AtomicNumber.h.

Constructor & Destructor Documentation

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

Constructor from the complete configuration object.

Definition at line 61 of file AtomicNumber.h.

62  : Z_(config.AtomicNumber())
63  {}
unsigned int Z_
atomic number
Definition: AtomicNumber.h:92
lar::example::AtomicNumber::AtomicNumber ( fhicl::ParameterSet const &  pset)
inline

Constructor from a parameter set.

Definition at line 67 of file AtomicNumber.h.

References lar::example::AtomicNumber::Config::AtomicNumber, and operator=().

68  : AtomicNumber(parameters_type(pset, { "service_type" })())
69  {}
fhicl::Table< Config > parameters_type
Type describing all the parameters.
Definition: AtomicNumber.h:56
AtomicNumber(Config const &config)
Constructor from the complete configuration object.
Definition: AtomicNumber.h:61
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

Referenced by AtomicNumber().

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

Returns the atomic number.

Definition at line 85 of file AtomicNumber.h.

References Z_.

85 { return Z_; }
unsigned int Z_
atomic number
Definition: AtomicNumber.h:92

Member Data Documentation

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

atomic number

Definition at line 92 of file AtomicNumber.h.

Referenced by Z().


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