ATLAS Offline Software
T2TrackBeamSpotTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRIGT2BEAMSPOT_T2TRACKBEAMSPOTTOOL_H
6 #define TRIGT2BEAMSPOT_T2TRACKBEAMSPOTTOOL_H
7 
8 #include <vector>
9 
10 // base class
12 
13 //Athena tools
14 #include "GaudiKernel/EventIDBase.h"
15 #include "GaudiKernel/ToolHandle.h"
16 #include "TrkTrack/Track.h"
17 #include "T2BSTrackFilterTool.h"
18 
19 //Monitoring tool
21 
22 
23 namespace PESA {
24 
25 class T2Track;
26 
28 public:
29 
31 
32  T2TrackBeamSpotTool(const std::string& type, const std::string& name, const IInterface* parent);
33  ~T2TrackBeamSpotTool() = default;
34 
35  StatusCode initialize() final;
36 
42  void updateBS(const TrackCollection& tracks, EventIDBase const& eventID) const;
43 
44 private:
45 
51  void updateBS(std::vector<const Trk::Track*>&& tracks, unsigned bcid) const;
52 
60  void updateBS(std::vector<TrackData>&& tracks) const;
61 
62 
65  double m_beamSizeLS;
66 
67  ToolHandle<T2BSTrackFilterTool> m_trackFilterTool{this, "TrackFilter", "PESA::T2BSTrackFilterTool/T2BSTrackFilterTool" };
68  ToolHandle<GenericMonitoringTool> m_monTool{this, "MonTool", "", "Monitoring tool"};
69 };
70 
71 } // namespace PESA
72 
73 #endif // TRIGT2BEAMSPOT_T2TRACKBEAMSPOTTOOL_H
PESA::T2BSTrackFilterTool
Definition: T2BSTrackFilterTool.h:30
PESA::T2TrackBeamSpotTool::initialize
StatusCode initialize() final
Definition: T2TrackBeamSpotTool.cxx:121
PESA::T2TrackBeamSpotTool
Definition: T2TrackBeamSpotTool.h:27
PESA::T2TrackBeamSpotTool::m_doLeastSquares
bool m_doLeastSquares
Definition: T2TrackBeamSpotTool.h:63
PESA::T2TrackBeamSpotTool::m_beamSizeLS
double m_beamSizeLS
Definition: T2TrackBeamSpotTool.h:65
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
PESA::T2TrackBeamSpotTool::updateBS
void updateBS(const TrackCollection &tracks, EventIDBase const &eventID) const
Update beam spot data with new track information.
Definition: T2TrackBeamSpotTool.cxx:132
Track.h
PESA
Local tools.
Definition: T2BeamSpot.cxx:13
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
vector
Definition: MultiHisto.h:13
AthAlgTool.h
PESA::T2BSTrackFilterTool::TrackData
Class which holds track parameters.
Definition: T2BSTrackFilterTool.h:38
test_pyathena.parent
parent
Definition: test_pyathena.py:15
DataVector< Trk::Track >
Monitored.h
Header file to be included by clients of the Monitored infrastructure.
T2BSTrackFilterTool.h
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
xAOD::bcid
setEventNumber setTimeStamp bcid
Definition: EventInfo_v1.cxx:133
PESA::T2TrackBeamSpotTool::T2TrackBeamSpotTool
T2TrackBeamSpotTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: T2TrackBeamSpotTool.cxx:113
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
PESA::T2TrackBeamSpotTool::m_doLogLikelihood
bool m_doLogLikelihood
Definition: T2TrackBeamSpotTool.h:64
Track
Definition: TriggerChamberClusterOnTrackCreator.h:21
AthAlgTool
Definition: AthAlgTool.h:26
PESA::T2TrackBeamSpotTool::~T2TrackBeamSpotTool
~T2TrackBeamSpotTool()=default
PESA::T2TrackBeamSpotTool::m_trackFilterTool
ToolHandle< T2BSTrackFilterTool > m_trackFilterTool
Definition: T2TrackBeamSpotTool.h:67
PESA::T2TrackBeamSpotTool::m_monTool
ToolHandle< GenericMonitoringTool > m_monTool
Definition: T2TrackBeamSpotTool.h:68