#include <sstream>
#include <cmath>
#include "GaudiKernel/MsgStream.h"
#include "TrigMuonEvent/MuonFeature.h"
Go to the source code of this file.
◆ diff()
Comparison with feedback.
Definition at line 236 of file MuonFeature.cxx.
239 if( std::abs( left.
algoId() - right.
algoId() ) > DELTA ) {
240 varChange[
"algoId" ] =
static_cast< double >( left.
algoId() - right.
algoId() );
243 varChange[
"saddress" ] =
static_cast< double >( left.
saddress() - right.
saddress() );
245 if( std::abs( left.
pt() - right.
pt() ) > DELTA ) {
246 varChange[
"pt" ] = left.
pt() - right.
pt();
248 if( std::abs( left.
radius() - right.
radius() ) > DELTA ) {
251 if( std::abs( left.
eta() - right.
eta() ) > DELTA ) {
252 varChange[
"eta" ] = left.
eta() - right.
eta();
254 if( std::abs( left.
phi() - right.
phi() ) > DELTA ) {
255 varChange[
"phi" ] = left.
phi() - right.
phi();
260 if( std::abs( left.
zeta() - right.
zeta() ) > DELTA ) {
261 varChange[
"zeta" ] = left.
zeta() - right.
zeta();
266 if( std::abs( left.
beta() - right.
beta() ) > DELTA ) {
267 varChange[
"beta" ] = left.
beta() - right.
beta();
269 if( std::abs( left.
sp1_r() - right.
sp1_r() ) > DELTA ) {
270 varChange[
"sp1_r" ] = left.
sp1_r() - right.
sp1_r();
272 if( std::abs( left.
sp1_z() - right.
sp1_z() ) > DELTA ) {
273 varChange[
"sp1_z" ] = left.
sp1_z() - right.
sp1_z();
278 if( std::abs( left.
sp2_r() - right.
sp2_r() ) > DELTA ) {
279 varChange[
"sp2_r" ] = left.
sp2_r() - right.
sp2_r();
281 if( std::abs( left.
sp2_z() - right.
sp2_z() ) > DELTA ) {
282 varChange[
"sp2_z" ] = left.
sp2_z() - right.
sp2_z();
287 if( std::abs( left.
sp3_r() - right.
sp3_r() ) > DELTA ) {
288 varChange[
"sp3_r" ] = left.
sp3_r() - right.
sp3_r();
290 if( std::abs( left.
sp3_z() - right.
sp3_z() ) > DELTA ) {
291 varChange[
"sp3_z" ] = left.
sp3_z() - right.
sp3_z();
◆ operator<<()
◆ operator==()
Operator comparing two MuonFeature objects for equality.
Definition at line 198 of file MuonFeature.cxx.
202 ( std::abs( left.
pt() - right.
pt() ) > DELTA ) ||
203 ( std::abs( left.
radius() - right.
radius() ) > DELTA ) ||
204 ( std::abs( left.
eta() - right.
eta() ) > DELTA ) ||
205 ( std::abs( left.
phi() - right.
phi() ) > DELTA ) ||
207 ( std::abs( left.
zeta() - right.
zeta() ) > DELTA ) ||
209 ( std::abs( left.
beta() - right.
beta() ) > DELTA ) ||
210 ( std::abs( left.
sp1_r() - right.
sp1_r() ) > DELTA ) ||
211 ( std::abs( left.
sp1_z() - right.
sp1_z() ) > DELTA ) ||
213 ( std::abs( left.
sp2_r() - right.
sp2_r() ) > DELTA ) ||
214 ( std::abs( left.
sp2_z() - right.
sp2_z() ) > DELTA ) ||
216 ( std::abs( left.
sp3_r() - right.
sp3_r() ) > DELTA ) ||
217 ( std::abs( left.
sp3_z() - right.
sp3_z() ) > DELTA ) ||
◆ str()
Helper function for printing the object.
Definition at line 180 of file MuonFeature.cxx.
184 <<
"; saddress: " <<
muon.saddress()
185 <<
"; eta: " <<
muon.eta()
186 <<
"; phi: " <<
muon.phi()
187 <<
"; pt: " <<
muon.pt();