ATLAS Offline Software
Loading...
Searching...
No Matches
LArTBH6BeamInfo.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef LArTBH6BeamInfo_H
6#define LArTBH6BeamInfo_H
7
9
10#include "Identifier/Identifier.h"
11
12#include <string>
13
16#include "TBEvent/TBTrack.h"
17#include "TBEvent/TBEventInfo.h"
20
22
23public:
24
25// Constructor
26 LArTBH6BeamInfo(const std::string& name, ISvcLocator* pSvcLocator);
27
28// Destructor
29 virtual ~LArTBH6BeamInfo() = default;
30
31// Gaudi
32 virtual StatusCode initialize() override;
33 virtual StatusCode execute() override;
34 virtual StatusCode finalize() override;
35
36private:
37 typedef std::vector<double> dVect;
38
43 bool fitVect(const dVect &vec_x, const dVect &vec_xz, const dVect &vec_ex,
44 double &a1, double &a2, double &chi2, dVect &residual);
45
46 Gaudi::Property<std::vector<std::string>> m_HitsCollNames{this, "HitsContainer"};
47 Gaudi::Property<bool> m_Primary{this, "PrimaryTrackOnly", true};
48 Gaudi::Property<int> m_pcode{this, "PrimaryParticle", 999};
49
50 float m_cryoX{0.f};
51 int m_numEv{0};
52
55 std::vector< SG::ReadHandle< AthenaHitsVector<LArG4H6FrontHit> > > m_hitcoll;
56};
57#endif
Handle class for reading from StoreGate.
Handle class for recording to StoreGate.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Property< int > m_pcode
virtual StatusCode execute() override
virtual StatusCode finalize() override
Gaudi::Property< bool > m_Primary
LArTBH6BeamInfo(const std::string &name, ISvcLocator *pSvcLocator)
virtual ~LArTBH6BeamInfo()=default
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.
std::vector< SG::ReadHandle< AthenaHitsVector< LArG4H6FrontHit > > > m_hitcoll
virtual StatusCode initialize() override
SG::WriteHandle< TBTrack > m_track
std::vector< double > dVect
SG::ReadHandle< TBEventInfo > m_theEventInfo
Gaudi::Property< std::vector< std::string > > m_HitsCollNames
double chi2(TH1 *h0, TH1 *h1)