Public Member Functions | Public Attributes | List of all members
bsim::Location Class Reference


More...

#include "/cvmfs/nova.opensciencegrid.org/externals/dk2nugenie/v01_08_00e/source/dk2nu/tree/dkmeta.h"

Public Member Functions

 Location ()
 
 Location (double x, double y, double z, std::string name)
 
virtual ~Location ()
 
void clear (const std::string &opt="")
 reset everything More...
 
std::string AsString (const std::string &opt="") const
 
 Location ()
 
 Location (double x, double y, double z, std::string name)
 
virtual ~Location ()
 
void clear (const std::string &opt="")
 reset everything More...
 
std::string AsString (const std::string &opt="") const
 

Public Attributes

Double_t x
 x position of location More...
 
Double_t y
 y position of location More...
 
Double_t z
 z position of location More...
 
std::string name
 identifying name More...
 

Detailed Description


All the data members are public as these classes are used as generalized structs. As they will be branches of a TTree no specialized naming indicators signifying that they are member data of a class will be used, nor will any fancy capitalization schemes.

All classes must implement a clear() method that resets their values to an identifiably invalid state or clears any vectors. Additionally classes should provide a AsString() method for formatting themselves

for use output.

Specified location where energy and weight will be evaluated Assume to be in beam coordinate system w/ units of cm

Definition at line 54 of file dkmeta.h.

Constructor & Destructor Documentation

bsim::Location::Location ( )
bsim::Location::Location ( double  x,
double  y,
double  z,
std::string  name 
)
virtual bsim::Location::~Location ( )
virtual
bsim::Location::Location ( )
bsim::Location::Location ( double  x,
double  y,
double  z,
std::string  name 
)
virtual bsim::Location::~Location ( )
virtual

Member Function Documentation

std::string bsim::Location::AsString ( const std::string opt = "") const
std::string bsim::Location::AsString ( const std::string opt = "") const
void bsim::Location::clear ( const std::string opt = "")

reset everything

void bsim::Location::clear ( const std::string opt = "")

reset everything

Member Data Documentation

std::string bsim::Location::name
Double_t bsim::Location::x

x position of location

Definition at line 57 of file dkmeta.h.

Double_t bsim::Location::y

y position of location

Definition at line 58 of file dkmeta.h.

Double_t bsim::Location::z

z position of location

Definition at line 59 of file dkmeta.h.


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