ATLAS Offline Software
Loading...
Searching...
No Matches
TrigL2Bphys.h
Go to the documentation of this file.
1// -*- C++ -*-
2
3/*
4 Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
5*/
6
7
23
24#ifndef TRIG_L2BPHYS
25#define TRIG_L2BPHYS
26
27#include <vector>
28#include <iostream>
29#include <string>
30#include <map>
31
34#include "AthLinks/ElementLink.h"
35#include "AthLinks/ElementLinkVector.h"
37class TrigL2Bphys;
38
39
41
42
44 public:
45
50
52 TrigL2Bphys(int roi, float eta, float phi, pType particleType,
53 float mass, const ElementLink<TrigL2BphysContainer>& sDecay);
54
56 TrigL2Bphys(int roi, float eta, float phi, pType particleType, float mass);
57
58
59 TrigL2Bphys(const TrigL2Bphys& te) = default;
60 TrigL2Bphys& operator=(const TrigL2Bphys& te) = default;
61
63 ~TrigL2Bphys() = default;
64
66 int roiId() const { return m_roiID; }
68 pType particleType() const { return m_particleType; }
70 float eta() const { return m_eta; }
72 float phi() const { return m_phi; }
74 float mass() const { return m_mass; }
76 float fitmass() const { return m_fitmass; }
78 float fitchi2() const { return m_fitchi2; }
80 int fitndof() const { return m_fitndof; }
82 float fitx() const { return m_fitx; }
84 float fity() const { return m_fity; }
86 float fitz() const { return m_fitz; }
87
89 const TrigL2Bphys* pSecondDecay() const ;
91
94
96 void fitmass(float FitMass);
98 void fitchi2(float FitChi2);
100 void fitndof(int FitNdof);
102 void fitx(float FitX);
104 void fity(float FitY);
106 void fitz(float FitZ);
110 void pSecondDecay(ElementLink<TrigL2BphysContainer> p_secondaryDecay);
111
112 private:
113
114 // private data members
115
118 float m_eta;
119 float m_phi;
120 float m_mass;
124 float m_fitx;
125 float m_fity;
126 float m_fitz;
129};
130
131std::string str( const TrigL2Bphys& p ); //<! printing helper
132MsgStream& operator<< ( MsgStream& m, const TrigL2Bphys& p ); //<! printing helper (wraps above)
133bool operator== ( const TrigL2Bphys& a, const TrigL2Bphys& b );
134inline bool operator!= ( const TrigL2Bphys& a, const TrigL2Bphys& b ) { return !(a==b); }
142void diff( const TrigL2Bphys& a, const TrigL2Bphys& b, std::map<std::string, double>& variableChange );
143
144
145CLASS_DEF( TrigL2Bphys , 118841261 , 1 )
146
147#endif // TRIG_BPHYS
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
#define ELEMENTLINK_FWD(TYPE, VALUE_TYPE)
Forward declaration helper for ElementLink.
static Double_t a
MsgStream & operator<<(MsgStream &m, const TrigL2Bphys &p)
bool operator==(const TrigL2Bphys &a, const TrigL2Bphys &b)
bool operator!=(const TrigL2Bphys &a, const TrigL2Bphys &b)
void diff(const TrigL2Bphys &a, const TrigL2Bphys &b, std::map< std::string, double > &variableChange)
comparison with feedback Function compares two objects and returns "semi verbose" output in the form ...
ElementLinkVector implementation for standalone ROOT.
float fity() const
accessor method: y position of vertex
Definition TrigL2Bphys.h:84
const ElementLink< TrigL2BphysContainer > & secondaryDecayLink() const
const ElementLinkVector< TrigInDetTrackCollection > & trackVector() const
accessor method:vector of tracks used to make particle
Definition TrigL2Bphys.h:93
float fitz() const
accessor method: z position of vertex
Definition TrigL2Bphys.h:86
TrigL2Bphys()
constructors; note: default constructor needed by POOL
void addTrack(const ElementLink< TrigInDetTrackCollection > &track)
set method: add track to particle
pType particleType() const
accessor method: particle Type
Definition TrigL2Bphys.h:68
TrigL2Bphys(const TrigL2Bphys &te)=default
const TrigL2Bphys * pSecondDecay() const
accessor method: secondary decay particle
float m_fitchi2
float fitx() const
accessor method: x position of vertex
Definition TrigL2Bphys.h:82
ElementLink< TrigL2BphysContainer > m_secondaryDecay
float mass() const
accessor method: mass
Definition TrigL2Bphys.h:74
float phi() const
accessor method: phi
Definition TrigL2Bphys.h:72
float eta() const
accessor method: eta
Definition TrigL2Bphys.h:70
pType
enum for different particle types
Definition TrigL2Bphys.h:47
pType m_particleType
int roiId() const
accessor method: ID of L1 RoI
Definition TrigL2Bphys.h:66
float m_fitmass
~TrigL2Bphys()=default
destructor
TrigL2Bphys & operator=(const TrigL2Bphys &te)=default
ElementLinkVector< TrigInDetTrackCollection > m_trackVector
int fitndof() const
accessor method: ndof from vertex fit
Definition TrigL2Bphys.h:80
float fitchi2() const
accessor method: chi2 from vertex fit
Definition TrigL2Bphys.h:78
float fitmass() const
accessor method: mass from vertex fit
Definition TrigL2Bphys.h:76