13 #include "GaudiKernel/MsgStream.h"
19 static const double DELTA = 0.001;
22 m_pt(0.), m_sigma_pt(0.), m_charge(0.0), m_flag(0), m_muFastTrack(), m_IDTrack()
33 m_muFastTrack(muFastOutput),
34 m_IDTrack(IdscanOutput)
48 m_flag(
fs*10000+fe*100+fm),
49 m_muFastTrack(muFastOutput),
50 m_IDTrack(IdscanOutput)
65 m_flag(
fs*10000+fe*100+fm),
66 m_muFastTrack(muFastOutput),
67 m_IDTrack(IdscanOutput)
80 m_muFastTrack(muFastOutput),
81 m_IDTrack(IdscanOutput)
89 double stmp = modf(
m_sigma_pt/10000., &ftmp)*1000000.;
90 return static_cast<float>(stmp);
100 else return static_cast<int>(floor(
m_sigma_pt/10000.));
103 int a =
static_cast<int>(
m_flag/10000);
109 int a =
static_cast<int>(
m_flag/10000);
110 int b =
static_cast<int>((
m_flag-
a*10000)/100);
115 int a =
static_cast<int>(
m_flag/10000);
116 int b =
static_cast<int>((
m_flag-
a*10000)/100);
117 int c =
static_cast<int>(
m_flag-
a*10000-
b*100);
128 m_pt (muon_feature->m_pt),
129 m_sigma_pt (muon_feature->m_sigma_pt),
130 m_charge (muon_feature->m_charge),
131 m_flag (muon_feature->m_flag),
132 m_muFastTrack (muon_feature->m_muFastTrack),
133 m_IDTrack (muon_feature->m_IDTrack)
141 m_pt(muon_feature.m_pt),
142 m_sigma_pt(muon_feature.m_sigma_pt),
143 m_charge(muon_feature.m_charge),
144 m_flag (muon_feature.m_flag),
145 m_muFastTrack (muon_feature.m_muFastTrack),
146 m_IDTrack (muon_feature.m_IDTrack)
175 std::stringstream
ss;
176 ss <<
"Pt: " <<
d.pt()
177 <<
"; sigmaPt: " <<
d.sigma_pt()
178 <<
"; charge: " <<
d.charge()
179 <<
"; flag: " <<
d.getFlag()
180 <<
"; Eta: " <<
d.eta()
181 <<
"; Phi: " <<
d.phi();
188 return (
m <<
str(
d ) );
193 if( std::abs(
a.pt() -
b.pt() ) > DELTA )
return false;
194 if( std::abs(
a.charge() -
b.charge() ) > DELTA )
return false;
195 if( std::abs(
a.sigma_pt() -
b.sigma_pt() ) > DELTA )
return false;
196 if( std::abs(
a.getFlag() -
b.getFlag() ) > DELTA )
return false;
197 if( std::abs(
a.eta() -
b.eta() ) > DELTA )
return false;
198 if( std::abs(
a.phi() -
b.phi() ) > DELTA )
return false;
213 std::map< std::string, double >& variableChange ) {
215 if( std::abs(
a.pt() -
b.pt() ) > DELTA ) {
216 variableChange[
"Pt" ] =
a.pt() -
b.pt();
218 if( std::abs(
a.charge() -
b.charge() ) > DELTA ) {
219 variableChange[
"Charge" ] =
a.charge() -
b.charge();
221 if( std::abs(
a.sigma_pt() -
b.sigma_pt() ) > DELTA ) {
222 variableChange[
"sigmaPt" ] =
a.sigma_pt() -
b.sigma_pt();
224 if( std::abs(
a.getFlag() -
b.getFlag() ) > DELTA ) {
225 variableChange[
"flag" ] =
a.getFlag() -
b.getFlag();
227 if( std::abs(
a.eta() -
b.eta() ) > DELTA ) {
228 variableChange[
"Eta" ] =
a.eta() -
b.eta();
230 if( std::abs(
a.phi() -
b.phi() ) > DELTA ) {
231 variableChange[
"Phi" ] =
a.phi() -
b.phi();