BOSS 7.1.3
BESIII Offline Software System
Loading...
Searching...
No Matches
MagFieldReader.h
Go to the documentation of this file.
1#ifndef MAGFIELDREADER_H
2#define MAGFIELDREADER_H 1
3
4// Include files
5// from STL
6#include <string>
7
8// from Gaudi
9#include "GaudiKernel/Algorithm.h"
10#include "GaudiKernel/NTuple.h"
13
14// Forward references
16
17/** @class MagFieldReader MagFieldReader.h
18 * @param An Algorithm to read and plot magnetic filed maps
19 * @param for x and y kept constant and varying z. The x, y
20 * @param positions and the z range can be set in job options.
21 *
22 */
23
24class MagFieldReader : public Algorithm {
25public:
26 /// Standard constructor
27 MagFieldReader( const std::string& name, ISvcLocator* pSvcLocator );
28
29 virtual ~MagFieldReader( ){ }; ///< Destructor
30
31 virtual StatusCode initialize(); ///< Algorithm initialization
32 virtual StatusCode execute (); ///< Algorithm execution
33 virtual StatusCode finalize (); ///< Algorithm finalization
34
35protected:
36
37private:
38
39 StatusCode readField();
40
41 // Pointer to the magnetic field service
42 IMagneticFieldSvc* m_pIMF;
43
44 // range and steps in z to get the magnetic field
45 double m_zMin, m_zMax, m_step;
46
47 // range in x and y
48 double m_xMin, m_xMax, m_yMin, m_yMax;
49
50 NTuple::Tuple* m_ntuple;
51 NTuple::Tuple* m_tuple1;
52 NTuple::Tuple* m_tuple2;
53 NTuple::Tuple* m_tuple3;
54 NTuple::Tuple* m_tuple4;
55 NTuple::Item<float> m_x, m_y, m_z, m_Bx, m_By, m_Bz, m_r;
56 NTuple::Item<float> m_x2, m_y2, m_z2, m_Bx2, m_By2, m_Bz2, m_r2;
57 NTuple::Item<float> m_x3, m_y3, m_z3, m_Bx3, m_By3, m_Bz3, m_r3, m_phi3;
58 NTuple::Item<float> m_sigma_bx,m_sigma_by,m_sigma_bz;
59 NTuple::Item<float> m_time;
60
61 std::string m_filename;
62
63 IBesTimerSvc* m_timersvc;
64 BesTimer* m_timer;
65};
66#endif // MAGFIELDREADER_H
*********Class see also m_nmax DOUBLE PRECISION m_MasPhot DOUBLE PRECISION m_phsu DOUBLE PRECISION m_Xenph DOUBLE PRECISION m_r2 DOUBLE PRECISION m_WtMass INTEGER m_nmax INTEGER m_Nevgen INTEGER m_IsFSR INTEGER m_MarTot *COMMON c_KarFin $ !Output file $ !Event serial number $ !alpha QED at Thomson limit $ !minimum energy at CMS for remooval $ !infrared dimensionless $ !dummy photon IR regulator $ !crude photon multiplicity enhancement factor *EVENT $ !MC crude volume of PhhSpace *Sfactors $ !YFS formfactor IR part only $ !YFS formfactor non IR finite part $ !mass product $ !fermion momentum $ !fermion momentum $ !shadow of q1 fermion momentum $ m_r2(4)
NTuple::Array< double > m_z
NTuple::Array< double > m_x
NTuple::Tuple * m_tuple1
Definition MdcHistItem.h:45
NTuple::Array< double > m_y
MagFieldReader(const std::string &name, ISvcLocator *pSvcLocator)
Standard constructor.
virtual StatusCode execute()
Algorithm execution.
virtual ~MagFieldReader()
virtual StatusCode finalize()
Algorithm finalization.
virtual StatusCode initialize()
Destructor.