ATLAS Offline Software
CBNTAA_TBTrack.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TBREC_CBNTAA_TBTRACK_H
6 #define TBREC_CBNTAA_TBTRACK_H
7 
8 #include "GaudiKernel/NTuple.h"
9 #include "GaudiKernel/SmartDataPtr.h"
10 #include "CBNT_TBRecBase.h"
11 #include <fstream>
12 #include <string>
13 
14 
16 {
17  public:
18  CBNTAA_TBTrack(const std::string & name, ISvcLocator * pSvcLocator);
19 
20  virtual ~CBNTAA_TBTrack() {};
21 
22  virtual StatusCode CBNT_initialize() override;
23  virtual StatusCode CBNT_execute() override;
24  virtual StatusCode CBNT_finalize() override;
25 
26  private:
27  // by A. Mineanko
30  StatusCode getXcryoYtable(float &x, float &y, float &eBeam);
31  int m_nRun;
32 
33  // Beam track parameters
42 
43  // taken from CBNTAA_BeamInstrumentation
44  //Private function to build names for ntuple entries. Concatinates strings
45  //but omitts characters that are problematic for root like -+:*/
46  std::string add_name(const char* base, const std::string& extension);
47 };
48 
49 #endif
CBNTAA_TBTrack::m_beam_chi2_y
float m_beam_chi2_y
Definition: CBNTAA_TBTrack.h:37
base
std::string base
Definition: hcg.cxx:78
CBNTAA_TBTrack::m_readFileforXcryo
bool m_readFileforXcryo
Get Xcryo and Ytable from a text file.
Definition: CBNTAA_TBTrack.h:29
CBNTAA_TBTrack::m_nRun
int m_nRun
Definition: CBNTAA_TBTrack.h:31
CBNTAA_TBTrack::m_beam_intercept_y
float m_beam_intercept_y
Definition: CBNTAA_TBTrack.h:39
CBNT_TBRecBase.h
CBNTAA_TBTrack::CBNT_finalize
virtual StatusCode CBNT_finalize() override
Definition: CBNTAA_TBTrack.cxx:99
CBNTAA_TBTrack
Definition: CBNTAA_TBTrack.h:16
x
#define x
CBNTAA_TBTrack::CBNT_execute
virtual StatusCode CBNT_execute() override
Definition: CBNTAA_TBTrack.cxx:46
CBNT_TBRecBase
Definition: CBNT_TBRecBase.h:21
CBNTAA_TBTrack::getXcryoYtable
StatusCode getXcryoYtable(float &x, float &y, float &eBeam)
Definition: CBNTAA_TBTrack.cxx:121
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CBNTAA_TBTrack::CBNT_initialize
virtual StatusCode CBNT_initialize() override
Definition: CBNTAA_TBTrack.cxx:30
CBNTAA_TBTrack::m_beam_coor_x
float m_beam_coor_x
Definition: CBNTAA_TBTrack.h:34
CBNTAA_TBTrack::m_beam_coor_y
float m_beam_coor_y
Definition: CBNTAA_TBTrack.h:35
CBNTAA_TBTrack::CBNTAA_TBTrack
CBNTAA_TBTrack(const std::string &name, ISvcLocator *pSvcLocator)
Definition: CBNTAA_TBTrack.cxx:14
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
CBNTAA_TBTrack::m_beam_chi2_x
float m_beam_chi2_x
Definition: CBNTAA_TBTrack.h:36
y
#define y
CBNTAA_TBTrack::m_beam_slope_x
float m_beam_slope_x
Definition: CBNTAA_TBTrack.h:40
CBNTAA_TBTrack::m_beam_slope_y
float m_beam_slope_y
Definition: CBNTAA_TBTrack.h:41
Generate_ecmenergies.eBeam
float eBeam
Definition: Generate_ecmenergies.py:9
CBNTAA_TBTrack::add_name
std::string add_name(const char *base, const std::string &extension)
Definition: CBNTAA_TBTrack.cxx:104
CBNTAA_TBTrack::m_beam_intercept_x
float m_beam_intercept_x
Definition: CBNTAA_TBTrack.h:38
CBNTAA_TBTrack::~CBNTAA_TBTrack
virtual ~CBNTAA_TBTrack()
Definition: CBNTAA_TBTrack.h:20