ATLAS Offline Software
Loading...
Searching...
No Matches
TrigMuonClusterFeature.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5//
6#ifndef TRIGMUON_TRIGMUONCLUSTERFEATURE_H
7#define TRIGMUON_TRIGMUONCLUSTERFEATURE_H
8/*******************************************************
9
10NAME: TrigMuonClusterFeature.h
11PACKAGE: Trigger/TrigEvent/TrigMuonEvent
12AUTHORS: Antonio Policicchio <Antonio.Policicchio@cern.ch>
13 Stefano Giagu <stefano.giagu@cern.ch>
14PURPOSE: Keep the important output variables
15 from the muon ROI cluster trigger.
16DATE: V1.0 Jan 13th , 2009
17
18******************************************************/
19
20
26
27#include <vector>
28#include <map>
29#include <string>
30
31// Forward declaration(s):
32class MsgStream;
33
36 virtual public INavigable4Momentum {
37
38 public:
39
41 TrigMuonClusterFeature( float eta, float phi, int nroi, int njet, int ntrk );
42
43 ~TrigMuonClusterFeature () override = default;
44
47 //copy c'tor
48 TrigMuonClusterFeature ( const TrigMuonClusterFeature& mfeature ) = default;
49 //move c'tor
51 //move assignment
52 TrigMuonClusterFeature& operator=(TrigMuonClusterFeature&&) noexcept = default;
54 TrigMuonClusterFeature& operator=(const TrigMuonClusterFeature& mfeature) = default;
55
56 virtual double pt() const override { return 0.0; }
57 virtual double eta() const override { return m_eta; }
58 virtual double phi() const override { return m_phi; }
59 virtual double m() const override { return 0.0; }
60
61 inline int getNRoi() const { return m_nroi ;};
62 inline int getNTRK() const { return m_ntrk ;};
63 inline int getNJet() const { return m_njet ;};
64 inline float getEta() const { return m_eta ; };
65 inline float getPhi() const { return m_phi ; };
66
67 private:
68 float m_eta{};
69 float m_phi{};
70 int m_nroi{};
71 int m_njet{};
72 int m_ntrk{};
73
74};
75
76std::string str( const TrigMuonClusterFeature& d );
78MsgStream& operator<< ( MsgStream& m, const TrigMuonClusterFeature& d );
82inline bool operator!= ( const TrigMuonClusterFeature& a, const TrigMuonClusterFeature& b ) { return !(a==b); }
83
91void diff( const TrigMuonClusterFeature& a, const TrigMuonClusterFeature& b, std::map<std::string, double>& variableChange );
92
93CLASS_DEF( TrigMuonClusterFeature , 233283613 , 1 )
94
96
97#endif
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
An STL vector of pointers that by default owns its pointed-to elements.
static Double_t a
void diff(const TrigMuonClusterFeature &a, const TrigMuonClusterFeature &b, std::map< std::string, double > &variableChange)
comparison with feedback Function compares two objects and returns "semi verbose" output in the form ...
MsgStream & operator<<(MsgStream &m, const TrigMuonClusterFeature &d)
Helper operator for printing the object.
bool operator!=(const TrigMuonClusterFeature &a, const TrigMuonClusterFeature &b)
Operator comparing two TrigMuonClusterFeature objects for inequality.
bool operator==(const TrigMuonClusterFeature &a, const TrigMuonClusterFeature &b)
Operator comparing two TrigMuonClusterFeature objects for equality.
Derived DataVector<T>.
Definition DataVector.h:795
P4PtEtaPhiMBase is a base class for classes with 4-momentum behavior, for which pt,...
virtual double eta() const override
pseudo rapidity
TrigMuonClusterFeature()=default
~TrigMuonClusterFeature() override=default
TrigMuonClusterFeature(const TrigMuonClusterFeature &mfeature)=default
virtual double pt() const override
transverse momentum
TrigMuonClusterFeature(TrigMuonClusterFeature &&) noexcept=default
virtual double phi() const override
phi in [-pi,pi[
virtual double m() const override
mass