Functions
test_LArProperties.cxx File Reference
#include "lardata/DetectorInfoServices/LArPropertiesServiceStandard.h"
#include <string>
#include <iostream>
#include "dunecore/ArtSupport/ArtServiceHelper.h"
#include "art/Framework/Services/Registry/ServiceHandle.h"
#include "art/Framework/Core/detail/EngineCreator.h"
#include "CLHEP/Random/RandomEngine.h"

Go to the source code of this file.

Functions

int test_LArPropertiesStandard (string gname)
 
int main ()
 

Function Documentation

int main ( void  )

Definition at line 49 of file test_LArProperties.cxx.

49  {
50  string gname = "dune35t4apa_v6";
52  return 0;
53 }
int test_LArPropertiesStandard(string gname)
int test_LArPropertiesStandard ( string  gname)

Definition at line 24 of file test_LArProperties.cxx.

24  {
25  const string myname = "test_LArPropertiesStandardServiceStandard: ";
26  cout << myname << "Starting test" << endl;
27 #ifdef NDEBUG
28  cout << myname << "NDEBUG must be off." << endl;
29  abort();
30 #endif
31  string line = "-----------------------------";
32 
34 
35  cout << myname << line << endl;
36  cout << myname << "Get LArPropertiesServiceStandard service." << endl;
38 
39  cout << myname << line << endl;
40  cout << myname << "Use LArPropertiesStandard." << endl;
41  cout << myname << " Atomic number: " << plarsrv->AtomicNumber() << endl;
42  cout << myname << " Radiation length: " << plarsrv->RadiationLength() << endl;
43 
44  cout << myname << line << endl;
45  cout << "Done." << endl;
46  return 0;
47 }
static constexpr FileOnPath_t FileOnPath
virtual const provider_type * provider() const override
static void load_services(std::string const &config)
virtual double AtomicNumber() const =0
Atomic number of the liquid.
void line(double t, double *p, double &x, double &y, double &z)
virtual double RadiationLength() const =0
QTextStream & endl(QTextStream &s)