Jpp  17.3.2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | Friends | List of all members
JRECONSTRUCTION::JAtmosphericMuon Class Reference

Auxiliary class to evaluate atmospheric muon hypothesis. More...

#include <JEvtToolkit.hh>

Public Member Functions

 JAtmosphericMuon ()
 Default constructor. More...
 
 JAtmosphericMuon (const double theta1, const double theta2)
 Constructor. More...
 
double operator() (JEvt::const_iterator __begin, JEvt::const_iterator __end) const
 Test is event is atmospheric muon. More...
 

Public Attributes

double dot1
 
double dot2
 

Friends

std::istream & operator>> (std::istream &in, JAtmosphericMuon &object)
 Read atmospheric muon analyser from input. More...
 
std::ostream & operator<< (std::ostream &out, const JAtmosphericMuon &object)
 Write atmospheric muon analyser to output. More...
 

Detailed Description

Auxiliary class to evaluate atmospheric muon hypothesis.

The hypothesis is tested by means of the difference in quality between the best upward and best downward track.

Definition at line 710 of file JReconstruction/JEvtToolkit.hh.

Constructor & Destructor Documentation

JRECONSTRUCTION::JAtmosphericMuon::JAtmosphericMuon ( )
inline

Default constructor.

Definition at line 715 of file JReconstruction/JEvtToolkit.hh.

JRECONSTRUCTION::JAtmosphericMuon::JAtmosphericMuon ( const double  theta1,
const double  theta2 
)
inline

Constructor.

Parameters
theta1upper hemisphere angle [deg]
theta2lower hemisphere angle [deg]

Definition at line 727 of file JReconstruction/JEvtToolkit.hh.

728  :
729  dot1(cos(theta1 * JMATH::PI/180.0)),
730  dot2(cos(theta2 * JMATH::PI/180.0))
731  {}
static const double PI
Mathematical constants.

Member Function Documentation

double JRECONSTRUCTION::JAtmosphericMuon::operator() ( JEvt::const_iterator  __begin,
JEvt::const_iterator  __end 
) const
inline

Test is event is atmospheric muon.

Parameters
__beginbegin of data
__endend of data
Returns
negative if preferably down / positive if preferably up

Definition at line 741 of file JReconstruction/JEvtToolkit.hh.

743  {
744  double Qup = 0.0;
745  double Qdown = 0.0;
746 
747  for (JEvt::const_iterator i = __begin; i != __end; ++i) {
748 
749  if (i->getDZ() >= dot1) {
750 
751  if (i->getQ() > Qup) {
752  Qup = i->getQ();
753  }
754 
755  } else if (i->getDZ() <= dot2) {
756 
757  if (i->getQ() > Qdown) {
758  Qdown = i->getQ();
759  }
760  }
761  }
762 
763  return Qup - Qdown;
764  }

Friends And Related Function Documentation

std::istream& operator>> ( std::istream &  in,
JAtmosphericMuon object 
)
friend

Read atmospheric muon analyser from input.

Parameters
ininput stream
objectatmospheric muon analyser
Returns
input stream

Definition at line 774 of file JReconstruction/JEvtToolkit.hh.

775  {
776  double theta1, theta2;
777 
778  in >> theta1 >> theta2;
779 
780  object.dot1 = cos(theta1 * JMATH::PI/180.0);
781  object.dot2 = cos(theta2 * JMATH::PI/180.0);
782 
783  return in;
784  }
static const double PI
Mathematical constants.
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
Definition: JCanberra.sh:46
std::ostream& operator<< ( std::ostream &  out,
const JAtmosphericMuon object 
)
friend

Write atmospheric muon analyser to output.

Parameters
outoutput stream
objectatmospheric muon analyser
Returns
output stream

Definition at line 794 of file JReconstruction/JEvtToolkit.hh.

795  {
796  out << acos(object.dot1) * 180.0 / JMATH::PI << ' '
797  << acos(object.dot2) * 180.0 / JMATH::PI;
798 
799  return out;
800  }
static const double PI
Mathematical constants.

Member Data Documentation

double JRECONSTRUCTION::JAtmosphericMuon::dot1

Definition at line 803 of file JReconstruction/JEvtToolkit.hh.

double JRECONSTRUCTION::JAtmosphericMuon::dot2

Definition at line 804 of file JReconstruction/JEvtToolkit.hh.


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