ATLAS Offline Software
LArCalorimeter
LArG4
LArG4H6SD
src
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 "
AthenaBaseComps/AthAlgorithm.h
"
9
10
#include "Identifier/Identifier.h"
11
12
#include <string>
13
14
#include "
StoreGate/WriteHandle.h
"
15
#include "
StoreGate/ReadHandle.h
"
16
#include "
TBEvent/TBTrack.h
"
17
#include "
TBEvent/TBEventInfo.h
"
18
#include "
HitManagement/AthenaHitsVector.h
"
19
#include "
LArG4TBSimEvent/LArG4H6FrontHitCollection.h
"
20
21
class
LArTBH6BeamInfo
:
public
AthAlgorithm
{
22
23
public
:
24
25
// Constructor
26
LArTBH6BeamInfo
(
const
std::string&
name
, ISvcLocator* pSvcLocator);
27
28
// Destructor
29
virtual
~LArTBH6BeamInfo
();
30
31
// Gaudi
32
StatusCode
initialize
();
33
StatusCode
execute
();
34
StatusCode
finalize
();
35
36
private
:
37
38
typedef
std::vector<double>
dVect
;
39
44
bool
fitVect
(
const
dVect
&vec_x,
const
dVect
&vec_xz,
const
dVect
&vec_ex,
45
double
&a1,
double
&a2,
double
&
chi2
,
dVect
&
residual
);
46
47
std::vector<std::string>
m_HitsCollNames
;
48
bool
m_Primary
;
49
int
m_pcode
;
50
51
float
m_cryoX
;
52
int
m_numEv
;
53
54
SG::ReadHandle<TBEventInfo>
m_theEventInfo
;
55
SG::WriteHandle<TBTrack>
m_track
;
56
std::vector< SG::ReadHandle< AthenaHitsVector<LArG4H6FrontHit> > >
m_hitcoll
;
57
};
58
#endif
AthenaHitsVector.h
LArTBH6BeamInfo::m_theEventInfo
SG::ReadHandle< TBEventInfo > m_theEventInfo
Definition:
LArTBH6BeamInfo.h:54
ClusterSeg::residual
@ residual
Definition:
ClusterNtuple.h:20
SG::ReadHandle< TBEventInfo >
LArTBH6BeamInfo::finalize
StatusCode finalize()
Definition:
LArTBH6BeamInfo.cxx:182
LArTBH6BeamInfo::m_Primary
bool m_Primary
Definition:
LArTBH6BeamInfo.h:48
LArTBH6BeamInfo::LArTBH6BeamInfo
LArTBH6BeamInfo(const std::string &name, ISvcLocator *pSvcLocator)
Definition:
LArTBH6BeamInfo.cxx:16
LArTBH6BeamInfo::m_track
SG::WriteHandle< TBTrack > m_track
Definition:
LArTBH6BeamInfo.h:55
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.
Definition:
LArTBH6BeamInfo.cxx:189
LArTBH6BeamInfo::m_numEv
int m_numEv
Definition:
LArTBH6BeamInfo.h:52
LArTBH6BeamInfo::dVect
std::vector< double > dVect
Definition:
LArTBH6BeamInfo.h:38
LArTBH6BeamInfo::m_cryoX
float m_cryoX
Definition:
LArTBH6BeamInfo.h:51
AthAlgorithm.h
WriteHandle.h
Handle class for recording to StoreGate.
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
TBTrack.h
LArG4H6FrontHitCollection.h
AthAlgorithm
Definition:
AthAlgorithm.h:47
LArTBH6BeamInfo::m_HitsCollNames
std::vector< std::string > m_HitsCollNames
Definition:
LArTBH6BeamInfo.h:47
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:221
LArTBH6BeamInfo::m_pcode
int m_pcode
Definition:
LArTBH6BeamInfo.h:49
SG::WriteHandle< TBTrack >
LArTBH6BeamInfo
Definition:
LArTBH6BeamInfo.h:21
LArTBH6BeamInfo::execute
StatusCode execute()
Definition:
LArTBH6BeamInfo.cxx:59
LArTBH6BeamInfo::initialize
StatusCode initialize()
Definition:
LArTBH6BeamInfo.cxx:42
TBEventInfo.h
ReadHandle.h
Handle class for reading from StoreGate.
LArTBH6BeamInfo::m_hitcoll
std::vector< SG::ReadHandle< AthenaHitsVector< LArG4H6FrontHit > > > m_hitcoll
Definition:
LArTBH6BeamInfo.h:56
LArTBH6BeamInfo::~LArTBH6BeamInfo
virtual ~LArTBH6BeamInfo()
Definition:
LArTBH6BeamInfo.cxx:35
Generated on Thu Nov 7 2024 21:20:04 for ATLAS Offline Software by
1.8.18