ATLAS Offline Software
LArGeoModel/LArGeoH62004Algs/src/Other/LArTBH6BeamInfo.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 LArTBH6BeamInfo_H
6 #define LArTBH6BeamInfo_H
7 
8 #include "GaudiKernel/Algorithm.h"
9 
10 #include "Identifier/Identifier.h"
11 
12 #include <string>
13 
14 class StoreGateSvc;
15 
16 class LArTBH6BeamInfo : public Algorithm {
17 
18 public:
19 
20 // Constructor
21  LArTBH6BeamInfo(const std::string& name, ISvcLocator* pSvcLocator);
22 
23 // Destructor
24  virtual ~LArTBH6BeamInfo();
25 
26 // Gaudi
30 
31 private:
32 
33  typedef std::vector<double> dVect;
34 
39  bool fitVect(const dVect &vec_x, const dVect &vec_xz, const dVect &vec_ex,
40  double &a1, double &a2, double &chi2, dVect &residual);
41 
42  std::vector<std::string> m_HitsCollNames;
43  bool m_Primary;
44  int m_pcode;
45 
47  float m_cryoX;
48  int m_numEv;
49 
50 };
51 #endif
LArTBH6BeamInfo::~LArTBH6BeamInfo
virtual ~LArTBH6BeamInfo()
ClusterSeg::residual
@ residual
Definition: ClusterNtuple.h:20
LArTBH6BeamInfo::finalize
StatusCode finalize()
LArTBH6BeamInfo::m_Primary
bool m_Primary
Definition: LArG4/LArG4H6SD/src/LArTBH6BeamInfo.h:48
python.FakeAthena.Algorithm
def Algorithm(name)
Definition: FakeAthena.py:41
LArTBH6BeamInfo::LArTBH6BeamInfo
LArTBH6BeamInfo(const std::string &name, ISvcLocator *pSvcLocator)
LArTBH6BeamInfo::fitVect
bool fitVect(const dVect &vec_x, const dVect &vec_xz, const dVect &vec_ex, double &a1, double &a2, double &chi2, dVect &residual)
Fit data to the function u = a1 + a2*w.
LArTBH6BeamInfo::m_numEv
int m_numEv
Definition: LArG4/LArG4H6SD/src/LArTBH6BeamInfo.h:52
LArTBH6BeamInfo::dVect
std::vector< double > dVect
Definition: LArGeoModel/LArGeoH62004Algs/src/Other/LArTBH6BeamInfo.h:33
LArTBH6BeamInfo::m_cryoX
float m_cryoX
Definition: LArG4/LArG4H6SD/src/LArTBH6BeamInfo.h:51
StoreGateSvc
The Athena Transient Store API.
Definition: StoreGateSvc.h:128
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
chi2
double chi2(TH1 *h0, TH1 *h1)
Definition: comparitor.cxx:522
LArTBH6BeamInfo::m_HitsCollNames
std::vector< std::string > m_HitsCollNames
Definition: LArG4/LArG4H6SD/src/LArTBH6BeamInfo.h:47
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
LArTBH6BeamInfo::m_pcode
int m_pcode
Definition: LArG4/LArG4H6SD/src/LArTBH6BeamInfo.h:49
LArTBH6BeamInfo::m_StoreGate
StoreGateSvc * m_StoreGate
Definition: LArGeoModel/LArGeoH62004Algs/src/Other/LArTBH6BeamInfo.h:46
LArTBH6BeamInfo
Definition: LArG4/LArG4H6SD/src/LArTBH6BeamInfo.h:21
LArTBH6BeamInfo::execute
StatusCode execute()
LArTBH6BeamInfo::initialize
StatusCode initialize()