Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | Static Public Attributes | Friends | List of all members
JAANET::JHead Struct Reference

Monte Carlo run header. More...

#include <JHead.hh>

Inheritance diagram for JAANET::JHead:

Public Member Functions

 JHead ()
 Default constructor. More...
 
 JHead (const Head &header)
 Copy constructor. More...
 
virtual ~JHead ()
 Virtual destructor. More...
 
bool less (const JHead &header) const
 Comparison of headers. More...
 
bool equals (const JHead &header) const
 Test compatibility of headers. More...
 
JHeadadd (const JHead &header)
 Addition of headers. More...
 
 ClassDef (JHead, 1)
 

Public Attributes

JAANET::start_run start_run
 
JAANET::XSecFile XSecFile
 
JAANET::detector detector
 
JAANET::muon_desc_file muon_desc_file
 
JAANET::target target
 
std::vector< JAANET::physicsphysics
 
JAANET::simul simul
 
JAANET::cut_primary cut_primary
 
JAANET::cut_seamuon cut_seamuon
 
JAANET::cut_in cut_in
 
JAANET::cut_nu cut_nu
 
JAANET::spectrum spectrum
 
JAANET::can can
 
JAANET::genvol genvol
 
JAANET::coord_origin coord_origin
 
JAANET::genhencut genhencut
 
JAANET::norma norma
 
JAANET::livetime livetime
 
JAANET::seabottom seabottom
 
JAANET::DAQ DAQ
 
JAANET::end_event end_event
 

Static Public Attributes

static const std::string GENHEN = "GENHEN"
 Generators. More...
 
static const std::string GENIE = "GENIE"
 
static const std::string GSEAGEN = "gSeaGen"
 
static const std::string MUPAGE = "HEMAS-DPM"
 
static const std::string JSIRENE = "JSirene"
 
static const std::string KM3 = "KM3"
 

Friends

bool operator== (const JHead &first, const JHead &second)
 Equal operator. More...
 
bool operator< (const JHead &first, const JHead &second)
 Less than operator. More...
 

Detailed Description

Monte Carlo run header.

This class extends the Head class so that the data from specific tags can be promoted to concrete data types.

Note that for the copy of 'new' JHead data (i.e. data not obtained via a previous JAANET::copy) to become effective, the key words in the corresponding map should be set.
To this end, method JAANET::push can be used which is available in JHeadToolkit.hh.

Definition at line 727 of file JHead.hh.

Constructor & Destructor Documentation

JAANET::JHead::JHead ( )
inline

Default constructor.

Definition at line 744 of file JHead.hh.

745  {}
JAANET::JHead::JHead ( const Head &  header)
inline

Copy constructor.

Parameters
headerheader

Definition at line 753 of file JHead.hh.

754  {
755  copy(header, *this);
756  }
void copy(const Head &from, JHead &to)
Copy header from from to to.
Definition: JHead.cc:40
virtual JAANET::JHead::~JHead ( )
inlinevirtual

Virtual destructor.

Definition at line 762 of file JHead.hh.

763  {}

Member Function Documentation

bool JAANET::JHead::less ( const JHead header) const
inline

Comparison of headers.

Parameters
headerheader
Returns
true if this header less than given header; else false

Definition at line 772 of file JHead.hh.

773  {
774  return (cut_primary .less(header.cut_primary));
775  }
JAANET::cut_primary cut_primary
Definition: JHead.hh:858
bool less(const JHead &header) const
Comparison of headers.
Definition: JHead.hh:772
Phase space of primary particle.
Definition: JHead.hh:218
bool JAANET::JHead::equals ( const JHead header) const
inline

Test compatibility of headers.

Parameters
headerheader
Returns
true if compatible; else false

Definition at line 784 of file JHead.hh.

785  {
786  return (cut_primary .equals(header.cut_primary) &&
787  cut_seamuon .equals(header.cut_seamuon) &&
788  cut_in .equals(header.cut_in) &&
789  cut_nu .equals(header.cut_nu) &&
790  can .equals(header.can) &&
791  coord_origin.equals(header.coord_origin) &&
792  genvol .equals(header.genvol) &&
793  norma .equals(header.norma) &&
794  seabottom .equals(header.seabottom) &&
795  livetime .equals(header.livetime) &&
796  DAQ .equals(header.DAQ));
797  }
Phase space of incident neutrino.
Definition: JHead.hh:248
JAANET::genvol genvol
Definition: JHead.hh:864
Neutrino vertex volume.
Definition: JHead.hh:363
JAANET::norma norma
Definition: JHead.hh:867
bool equals(const norma &object) const
Equality.
Definition: JHead.hh:509
Normalisation of DAQ data.
Definition: JHead.hh:650
Phase space of incoming particle.
Definition: JHead.hh:238
bool equals(const seabottom &object) const
Equality.
Definition: JHead.hh:636
Normlisation of CORSIKA events.
Definition: JHead.hh:494
JAANET::cut_primary cut_primary
Definition: JHead.hh:858
bool equals(const coord_origin &object) const
Equality.
Definition: JHead.hh:461
Coordinate origin.
Definition: JHead.hh:432
JAANET::can can
Definition: JHead.hh:863
bool equals(const genvol &object) const
Equality.
Definition: JHead.hh:381
bool equals(const can &object) const
Equality.
Definition: JHead.hh:345
JAANET::cut_seamuon cut_seamuon
Definition: JHead.hh:859
JAANET::livetime livetime
Definition: JHead.hh:868
JAANET::seabottom seabottom
Definition: JHead.hh:869
bool equals(const DAQ &object) const
Equality.
Definition: JHead.hh:665
Normalisation of MUPAGE events.
Definition: JHead.hh:537
bool equals(const livetime &object) const
Equality.
Definition: JHead.hh:553
JAANET::cut_in cut_in
Definition: JHead.hh:860
bool equals(const JHead &header) const
Test compatibility of headers.
Definition: JHead.hh:784
JAANET::cut_nu cut_nu
Definition: JHead.hh:861
Phase space of atmospheric muon generation.
Definition: JHead.hh:228
Phase space of primary particle.
Definition: JHead.hh:218
JAANET::coord_origin coord_origin
Definition: JHead.hh:865
bool equals(const cut &object) const
Equality.
Definition: JHead.hh:198
JAANET::DAQ DAQ
Definition: JHead.hh:870
The bottom of the sea.
Definition: JHead.hh:622
The cylinder used for photon tracking.
Definition: JHead.hh:329
JHead& JAANET::JHead::add ( const JHead header)
inline

Addition of headers.

Parameters
headerheader
Returns
this header

Definition at line 806 of file JHead.hh.

807  {
808  if (equals(header)) {
809 
810  genvol .add(header.genvol);
811  norma .add(header.norma);
812  livetime.add(header.livetime);
813  DAQ .add(header.DAQ);
814 
815  } else {
816  THROW(JException, "JHead::add() header not compatible.");
817  }
818 
819  return *this;
820  }
norma & add(const norma &object)
Addition.
Definition: JHead.hh:520
JAANET::genvol genvol
Definition: JHead.hh:864
Neutrino vertex volume.
Definition: JHead.hh:363
JAANET::norma norma
Definition: JHead.hh:867
Normalisation of DAQ data.
Definition: JHead.hh:650
livetime & add(const livetime &object)
Addition.
Definition: JHead.hh:565
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Definition: JException.hh:633
Normlisation of CORSIKA events.
Definition: JHead.hh:494
DAQ & add(const DAQ &object)
Addition.
Definition: JHead.hh:677
genvol & add(const genvol &object)
Addition.
Definition: JHead.hh:394
JAANET::livetime livetime
Definition: JHead.hh:868
Normalisation of MUPAGE events.
Definition: JHead.hh:537
bool equals(const JHead &header) const
Test compatibility of headers.
Definition: JHead.hh:784
JAANET::DAQ DAQ
Definition: JHead.hh:870
JAANET::JHead::ClassDef ( JHead  ,
 
)

Friends And Related Function Documentation

bool operator== ( const JHead first,
const JHead second 
)
friend

Equal operator.

Parameters
firstfirst header
secondsecond header
Returns
true if two headers are equal; else false

Definition at line 830 of file JHead.hh.

832  {
833  return first.equals(second);
834  }
bool equals(const JHead &header) const
Test compatibility of headers.
Definition: JHead.hh:784
bool operator< ( const JHead first,
const JHead second 
)
friend

Less than operator.

Parameters
firstfirst header
secondsecond header
Returns
true if first header is less than second header; else false

Definition at line 844 of file JHead.hh.

846  {
847  return first.less(second);
848  }
bool less(const JHead &header) const
Comparison of headers.
Definition: JHead.hh:772

Member Data Documentation

const std::string JAANET::JHead::GENHEN = "GENHEN"
static

Generators.

Definition at line 733 of file JHead.hh.

const std::string JAANET::JHead::GENIE = "GENIE"
static

Definition at line 734 of file JHead.hh.

const std::string JAANET::JHead::GSEAGEN = "gSeaGen"
static

Definition at line 735 of file JHead.hh.

const std::string JAANET::JHead::MUPAGE = "HEMAS-DPM"
static

Definition at line 736 of file JHead.hh.

const std::string JAANET::JHead::JSIRENE = "JSirene"
static

Definition at line 737 of file JHead.hh.

const std::string JAANET::JHead::KM3 = "KM3"
static

Definition at line 738 of file JHead.hh.

JAANET::start_run JAANET::JHead::start_run

Definition at line 851 of file JHead.hh.

JAANET::XSecFile JAANET::JHead::XSecFile

Definition at line 852 of file JHead.hh.

JAANET::detector JAANET::JHead::detector

Definition at line 853 of file JHead.hh.

JAANET::muon_desc_file JAANET::JHead::muon_desc_file

Definition at line 854 of file JHead.hh.

JAANET::target JAANET::JHead::target

Definition at line 855 of file JHead.hh.

std::vector<JAANET::physics> JAANET::JHead::physics

Definition at line 856 of file JHead.hh.

JAANET::simul JAANET::JHead::simul

Definition at line 857 of file JHead.hh.

JAANET::cut_primary JAANET::JHead::cut_primary

Definition at line 858 of file JHead.hh.

JAANET::cut_seamuon JAANET::JHead::cut_seamuon

Definition at line 859 of file JHead.hh.

JAANET::cut_in JAANET::JHead::cut_in

Definition at line 860 of file JHead.hh.

JAANET::cut_nu JAANET::JHead::cut_nu

Definition at line 861 of file JHead.hh.

JAANET::spectrum JAANET::JHead::spectrum

Definition at line 862 of file JHead.hh.

JAANET::can JAANET::JHead::can

Definition at line 863 of file JHead.hh.

JAANET::genvol JAANET::JHead::genvol

Definition at line 864 of file JHead.hh.

JAANET::coord_origin JAANET::JHead::coord_origin

Definition at line 865 of file JHead.hh.

JAANET::genhencut JAANET::JHead::genhencut

Definition at line 866 of file JHead.hh.

JAANET::norma JAANET::JHead::norma

Definition at line 867 of file JHead.hh.

JAANET::livetime JAANET::JHead::livetime

Definition at line 868 of file JHead.hh.

JAANET::seabottom JAANET::JHead::seabottom

Definition at line 869 of file JHead.hh.

JAANET::DAQ JAANET::JHead::DAQ

Definition at line 870 of file JHead.hh.

JAANET::end_event JAANET::JHead::end_event

Definition at line 871 of file JHead.hh.


The documentation for this struct was generated from the following files: