Auxiliary class to evaluate atmospheric muon hypothesis.
More...
#include <JEvtToolkit.hh>
|
| JAtmosphericMuon () |
| Default constructor.
|
|
| JAtmosphericMuon (const double theta1, const double theta2) |
| Constructor.
|
|
double | operator() (JEvt::const_iterator __begin, JEvt::const_iterator __end) const |
| Test is event is atmospheric muon.
|
|
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 735 of file JReconstruction/JEvtToolkit.hh.
◆ JAtmosphericMuon() [1/2]
JRECONSTRUCTION::JAtmosphericMuon::JAtmosphericMuon |
( |
| ) |
|
|
inline |
◆ JAtmosphericMuon() [2/2]
JRECONSTRUCTION::JAtmosphericMuon::JAtmosphericMuon |
( |
const double | theta1, |
|
|
const double | theta2 ) |
|
inline |
Constructor.
- Parameters
-
theta1 | upper hemisphere angle [deg] |
theta2 | lower hemisphere angle [deg] |
Definition at line 752 of file JReconstruction/JEvtToolkit.hh.
753 :
756 {}
static const double PI
Mathematical constants.
◆ operator()()
double JRECONSTRUCTION::JAtmosphericMuon::operator() |
( |
JEvt::const_iterator | __begin, |
|
|
JEvt::const_iterator | __end ) const |
|
inline |
Test is event is atmospheric muon.
- Parameters
-
__begin | begin of data |
__end | end of data |
- Returns
- negative if preferably down / positive if preferably up
Definition at line 766 of file JReconstruction/JEvtToolkit.hh.
768 {
769 double Qup = 0.0;
770 double Qdown = 0.0;
771
772 for (JEvt::const_iterator i = __begin; i != __end; ++i) {
773
774 if (i->getDZ() >=
dot1) {
775
776 if (i->getQ() > Qup) {
777 Qup = i->getQ();
778 }
779
780 }
else if (i->getDZ() <=
dot2) {
781
782 if (i->getQ() > Qdown) {
783 Qdown = i->getQ();
784 }
785 }
786 }
787
788 return Qup - Qdown;
789 }
◆ operator>>
Read atmospheric muon analyser from input.
- Parameters
-
in | input stream |
object | atmospheric muon analyser |
- Returns
- input stream
Definition at line 799 of file JReconstruction/JEvtToolkit.hh.
800 {
801 double theta1, theta2;
802
803 in >> theta1 >> theta2;
804
805 object.dot1 = cos(theta1 *
JMATH::PI/180.0);
806 object.dot2 = cos(theta2 *
JMATH::PI/180.0);
807
808 return in;
809 }
◆ operator<<
std::ostream & operator<< |
( |
std::ostream & | out, |
|
|
const JAtmosphericMuon & | object ) |
|
friend |
Write atmospheric muon analyser to output.
- Parameters
-
out | output stream |
object | atmospheric muon analyser |
- Returns
- output stream
Definition at line 819 of file JReconstruction/JEvtToolkit.hh.
820 {
823
824 return out;
825 }
◆ dot1
double JRECONSTRUCTION::JAtmosphericMuon::dot1 |
◆ dot2
double JRECONSTRUCTION::JAtmosphericMuon::dot2 |
The documentation for this class was generated from the following file: