ATLAS Offline Software
IInDetBeamSpotWriterTool.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 #ifndef INDET_IINDETBEAMPSPOTWRITERTOOL_H
6 #define INDET_IINDETBEAMPSPOTWRITERTOOL_H
7 // Author James Walder : jwalder@cern.ch
9 // AlgTool to handle main Beamspot writing functions
10 //
11 // Principle expectation is a croncrete implementation
12 // to write to a database
14 
15 #include "GaudiKernel/IAlgTool.h"
16 #include <vector>
18 // #include "BeamSpotID.h"
19 
20 static const InterfaceID IID_IInDetBeamSpotWriterTool("IInDetBeamSpotWriterTool", 1 , 0);
21 
22 namespace BeamSpot {
25  struct BeamSpotDB{
27  posX(0.),posY(0.),posZ(0.),
28  sigmaX(0.),sigmaY(0.),sigmaZ(0.),
29  tiltX(0.),tiltY(0.),sigmaXY(0.),
30  posXErr(0.),posYErr(0.),posZErr(0.),
31  sigmaXErr(0.),sigmaYErr(0.),sigmaZErr(0.),
32  tiltXErr(0.),tiltYErr(0.),sigmaXYErr(0.)
33  {}
35  int status;
38  };
39 
40 class ID;
41 }
42 
43 
44 namespace InDet {
47  class IInDetBeamSpotWriterTool : virtual public IAlgTool {
48  public:
50  static const InterfaceID& interfaceID() {
51  return IID_IInDetBeamSpotWriterTool;
52  }
53  // Actual operator function
54 
55  //General methods for all beamspot determination methods
56  virtual StatusCode initialize() = 0;
57  virtual StatusCode finalize() = 0;
58 
63  virtual StatusCode write(std::map<BeamSpot::ID, BeamSpot::BeamSpotDB> &) = 0;
64 
65  virtual void setLBfromAcceptedEvents(bool ) = 0;
66  virtual void setLBfromViewedEvents(bool ) = 0;
67 
68 
69  };
70 
71 
72 } // namespace
73 #endif
74 
75 
BeamSpot::BeamSpotDB::tiltY
float tiltY
Definition: IInDetBeamSpotWriterTool.h:36
BeamSpot::BeamSpotDB::posX
float posX
Definition: IInDetBeamSpotWriterTool.h:36
InDet::IInDetBeamSpotWriterTool::setLBfromViewedEvents
virtual void setLBfromViewedEvents(bool)=0
InDet::IInDetBeamSpotWriterTool::write
virtual StatusCode write(std::map< BeamSpot::ID, BeamSpot::BeamSpotDB > &)=0
Principle method to output the beamspot information.
BeamSpot::BeamSpotDB::posYErr
float posYErr
Definition: IInDetBeamSpotWriterTool.h:37
BeamSpot::BeamSpotDB::posY
float posY
Definition: IInDetBeamSpotWriterTool.h:36
BeamSpot::BeamSpotDB::tiltX
float tiltX
Definition: IInDetBeamSpotWriterTool.h:36
InDet
Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
BeamSpot::BeamSpotDB::posZErr
float posZErr
Definition: IInDetBeamSpotWriterTool.h:37
BeamSpot::BeamSpotDB::tiltXErr
float tiltXErr
Definition: IInDetBeamSpotWriterTool.h:37
BeamSpot::BeamSpotDB::sigmaY
float sigmaY
Definition: IInDetBeamSpotWriterTool.h:36
IInDetBeamSpotTool.h
BeamSpot::BeamSpotDB::sigmaZErr
float sigmaZErr
Definition: IInDetBeamSpotWriterTool.h:37
BeamSpot::BeamSpotDB::sigmaXYErr
float sigmaXYErr
Definition: IInDetBeamSpotWriterTool.h:37
BeamSpot::BeamSpotDB::sigmaXErr
float sigmaXErr
Definition: IInDetBeamSpotWriterTool.h:37
BeamSpot::BeamSpotDB::BeamSpotDB
BeamSpotDB()
Definition: IInDetBeamSpotWriterTool.h:26
InDet::IInDetBeamSpotWriterTool::setLBfromAcceptedEvents
virtual void setLBfromAcceptedEvents(bool)=0
InDet::IInDetBeamSpotWriterTool::finalize
virtual StatusCode finalize()=0
BeamSpot::BeamSpotDB::sigmaXY
float sigmaXY
Definition: IInDetBeamSpotWriterTool.h:36
BeamSpot::BeamSpotDB::status
int status
Definition: IInDetBeamSpotWriterTool.h:35
BeamSpot::BeamSpotDB::sigmaYErr
float sigmaYErr
Definition: IInDetBeamSpotWriterTool.h:37
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
InDet::IInDetBeamSpotWriterTool
Abstract class to control the outputing of beamspot information.
Definition: IInDetBeamSpotWriterTool.h:47
InDet::IInDetBeamSpotWriterTool::initialize
virtual StatusCode initialize()=0
BeamSpot::ID
Definition: BeamSpotID.h:10
BeamSpot::BeamSpotDB::isSuccessfulFit
bool isSuccessfulFit
Definition: IInDetBeamSpotWriterTool.h:34
BeamSpot
Definition: IInDetBeamSpotTool.h:21
BeamSpot::BeamSpotDB::tiltYErr
float tiltYErr
Definition: IInDetBeamSpotWriterTool.h:37
InDet::IInDetBeamSpotWriterTool::interfaceID
static const InterfaceID & interfaceID()
Retrieve interface ID.
Definition: IInDetBeamSpotWriterTool.h:50
BeamSpot::BeamSpotDB::sigmaZ
float sigmaZ
Definition: IInDetBeamSpotWriterTool.h:36
BeamSpot::BeamSpotDB
A simple struct to hold vertex info.
Definition: IInDetBeamSpotWriterTool.h:25
BeamSpot::BeamSpotDB::posZ
float posZ
Definition: IInDetBeamSpotWriterTool.h:36
BeamSpot::BeamSpotDB::posXErr
float posXErr
Definition: IInDetBeamSpotWriterTool.h:37
BeamSpot::BeamSpotDB::sigmaX
float sigmaX
Definition: IInDetBeamSpotWriterTool.h:36