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 969 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 986 of file JReconstruction/JEvtToolkit.hh.
987 :
990 {}
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 1000 of file JReconstruction/JEvtToolkit.hh.
1002 {
1003 double Qup = 0.0;
1004 double Qdown = 0.0;
1005
1006 for (JEvt::const_iterator i = __begin; i != __end; ++i) {
1007
1008 if (i->getDZ() >=
dot1) {
1009
1010 if (i->getQ() > Qup) {
1011 Qup = i->getQ();
1012 }
1013
1014 }
else if (i->getDZ() <=
dot2) {
1015
1016 if (i->getQ() > Qdown) {
1017 Qdown = i->getQ();
1018 }
1019 }
1020 }
1021
1022 return Qup - Qdown;
1023 }
◆ operator>>
Read atmospheric muon analyser from input.
- Parameters
-
| in | input stream |
| object | atmospheric muon analyser |
- Returns
- input stream
Definition at line 1033 of file JReconstruction/JEvtToolkit.hh.
1034 {
1035 double theta1, theta2;
1036
1037 in >> theta1 >> theta2;
1038
1039 object.dot1 = cos(theta1 *
JMATH::PI/180.0);
1040 object.dot2 = cos(theta2 *
JMATH::PI/180.0);
1041
1042 return in;
1043 }
◆ 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 1053 of file JReconstruction/JEvtToolkit.hh.
1054 {
1057
1058 return out;
1059 }
◆ dot1
| double JRECONSTRUCTION::JAtmosphericMuon::dot1 |
◆ dot2
| double JRECONSTRUCTION::JAtmosphericMuon::dot2 |
The documentation for this class was generated from the following file: