ATLAS Offline Software
Loading...
Searching...
No Matches
TrigMuonClusterFeature.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 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#include <iostream>
20#include <vector>
21#include <map>
22#include <string>
23
29
30// Forward declaration(s):
31class MsgStream;
32
35 virtual public INavigable4Momentum {
36
37 public:
38
41 TrigMuonClusterFeature( float eta, float phi, int nroi, int njet, int ntrk );
42
45
52
53 //Ovveride pure virtual methods
54 double pt(void) const { return 0.0; }
55 double eta(void) const { return m_eta; }
56 double phi(void) const { return m_phi; }
57 double m(void) const { return 0.0; }
58
59 inline int getNRoi() const { return m_nroi ;};
60 inline int getNTRK() const { return m_ntrk ;};
61 inline int getNJet() const { return m_njet ;};
62 inline float getEta() const { return m_eta ; };
63 inline float getPhi() const { return m_phi ; };
64
65 private:
66 float m_eta;
67 float m_phi;
68 int m_nroi;
69 int m_njet;
70 int m_ntrk;
71
72};
73
74std::string str( const TrigMuonClusterFeature& d );
76MsgStream& operator<< ( MsgStream& m, const TrigMuonClusterFeature& d );
80inline bool operator!= ( const TrigMuonClusterFeature& a, const TrigMuonClusterFeature& b ) { return !(a==b); }
81
89void diff( const TrigMuonClusterFeature& a, const TrigMuonClusterFeature& b, std::map<std::string, double>& variableChange );
90
91CLASS_DEF( TrigMuonClusterFeature , 233283613 , 1 )
92
94
95#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,...
TrigMuonClusterFeature & operator=(const TrigMuonClusterFeature &mfeature)
Assignement operator.
double pt(void) const
transverse momentum
double eta(void) const
pseudo rapidity
double phi(void) const
phi in [-pi,pi[
double m(void) const
mass