ATLAS Offline Software
Loading...
Searching...
No Matches
TileCalibHitNtuple.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 TILESIMUTILS_TILECALIBHITNTUPLE_H
6#define TILESIMUTILS_TILECALIBHITNTUPLE_H
7
8/********************************************************************
9 *
10 * NAME: TileCalibHitNtuple
11 * PACKAGE: offline/TileCalorimeter/TileSimUtils
12 *
13 * AUTHOR : A. Solodkov
14 * CREATED: Nov 08, 2012
15 *
16 * PURPOSE: Store coordinates of every
17 * single calibration hit in ntuple
18 *
19 * Input: event number, DM cell ID, hit coordiates
20 * Output: ntuple
21 * Parameters: stream name, ntuple name, max tree size
22 *
23 ********************************************************************/
24
25// Atlas includes
27#include "GaudiKernel/ServiceHandle.h"
28#include "GaudiKernel/ITHistSvc.h"
29
30#include <string>
31#include <vector>
32
33#include <inttypes.h>
34
40
41 public:
42 TileCalibHitNtuple(const std::string& type, const std::string& name, const IInterface* parent);
43
44 virtual ~TileCalibHitNtuple();
45
46 virtual StatusCode initialize();
47 virtual StatusCode finalize();
48
49 static const InterfaceID& interfaceID();
50
51 void storeHit(int det, int mod, int tow, int samp, int reg, int calc, int evt, float x, float y, float z, float e,
52 const char *volume = 0, int pid = 0, float ekine = 0., float xLocal = 0., float yLocal = 0.,
53 float zLocal = 0., float phiLocal = 0.);
54
55 private:
56
57 // handle to THistSvc
59
60 // NTuple parameters
61 std::string m_streamName;
62 std::string m_ntupleID;
63 int64_t m_treeSize;
64
65 // The ntuple
67
69
70 // ntuple variables
71 short m_det;
72 short m_mod;
73 short m_tow;
74 short m_samp;
75 short m_reg;
76 short m_calc;
77 short m_evt;
78 float m_xPos;
79 float m_yPos;
80 float m_zPos;
81 float m_ener;
82 char m_volume[100];
83 short m_pid;
84 float m_ekine;
85 float m_xLocal;
86 float m_yLocal;
87 float m_zLocal;
89
90};
91
92#endif
#define y
#define x
#define z
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
ServiceHandle< ITHistSvc > m_thistSvc
TileCalibHitNtuple(const std::string &type, const std::string &name, const IInterface *parent)
Constructor.
virtual ~TileCalibHitNtuple()
Destructor.
virtual StatusCode finalize()
finalize method
void storeHit(int det, int mod, int tow, int samp, int reg, int calc, int evt, float x, float y, float z, float e, const char *volume=0, int pid=0, float ekine=0., float xLocal=0., float yLocal=0., float zLocal=0., float phiLocal=0.)
virtual StatusCode initialize()
intialize method
static const InterfaceID & interfaceID()
AlgTool InterfaceID.