ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArTest
LArEventTest
LArEventTest
DumpLArRawChannels.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef DUMPLARRAWCHANNEL_H
6
#define DUMPLARRAWCHANNEL_H
7
#include "
AthenaBaseComps/AthAlgorithm.h
"
8
#include "
LArRawEvent/LArRawChannelContainer.h
"
9
#include "
CaloIdentifier/LArEM_ID.h
"
10
#include "
LArIdentifier/LArOnlineID.h
"
11
#include "
LArCabling/LArOnOffIdMapping.h
"
12
#include "
StoreGate/ReadCondHandleKey.h
"
13
14
#include "TTree.h"
15
#include "GaudiKernel/ITHistSvc.h"
16
17
18
//#include "LArDetDescr/LArDetDescrManager.h"
19
#include <fstream>
20
21
class
DumpLArRawChannels
:
public
AthAlgorithm
22
{
23
public
:
24
DumpLArRawChannels
(
const
std::string & name, ISvcLocator * pSvcLocator);
25
26
~DumpLArRawChannels
();
27
28
//standart algorithm methods
29
StatusCode
initialize
();
30
StatusCode
execute
(
const
EventContext& ctx);
31
StatusCode
finalize
();
32
private
:
33
SG::ReadCondHandleKey<LArOnOffIdMapping>
m_cablingKey
{
this
,
"keyCabling"
,
"LArOnOffIdMap"
,
"Input key for Id mapping"
};
34
int
m_count
,
m_chan
;
35
//LArRawChannelContainer* m_larChannelCont;
36
const
LArOnlineID
*
m_onlineHelper
;
37
const
LArEM_ID
*
m_emId
;
38
std::ofstream
m_outfile
;
39
std::string
m_key
,
m_FileName
;
40
private
:
41
42
std::string
m_ntup
;
43
TTree*
m_tree
=
nullptr
;
44
int
m_evt
=0;
45
float
m_e
=0,
m_t
=0,
m_Q
=0;
46
unsigned
m_gain
=0;
47
unsigned
m_id
=0;
48
bool
m_toLog
;
49
bool
m_toFile
=
false
;
50
51
ServiceHandle<ITHistSvc>
m_thistSvc
;
52
53
class
mySort
{
54
public
:
55
bool
operator()
(
const
LArRawChannel
*
a
,
const
LArRawChannel
* b);
56
};
57
};
58
59
#endif
AthAlgorithm.h
LArEM_ID.h
LArOnOffIdMapping.h
LArOnlineID.h
a
static Double_t a
Definition
LArPhysWaveHECTool.cxx:38
LArRawChannelContainer.h
ReadCondHandleKey.h
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
DumpLArRawChannels::mySort
Definition
DumpLArRawChannels.h:53
DumpLArRawChannels::mySort::operator()
bool operator()(const LArRawChannel *a, const LArRawChannel *b)
Definition
DumpLArRawChannels.cxx:190
DumpLArRawChannels::m_toLog
bool m_toLog
Definition
DumpLArRawChannels.h:48
DumpLArRawChannels::m_emId
const LArEM_ID * m_emId
Definition
DumpLArRawChannels.h:37
DumpLArRawChannels::m_evt
int m_evt
Definition
DumpLArRawChannels.h:44
DumpLArRawChannels::m_outfile
std::ofstream m_outfile
Definition
DumpLArRawChannels.h:38
DumpLArRawChannels::m_t
float m_t
Definition
DumpLArRawChannels.h:45
DumpLArRawChannels::m_gain
unsigned m_gain
Definition
DumpLArRawChannels.h:46
DumpLArRawChannels::m_thistSvc
ServiceHandle< ITHistSvc > m_thistSvc
Definition
DumpLArRawChannels.h:51
DumpLArRawChannels::m_FileName
std::string m_FileName
Definition
DumpLArRawChannels.h:39
DumpLArRawChannels::m_toFile
bool m_toFile
Definition
DumpLArRawChannels.h:49
DumpLArRawChannels::m_id
unsigned m_id
Definition
DumpLArRawChannels.h:47
DumpLArRawChannels::m_count
int m_count
Definition
DumpLArRawChannels.h:34
DumpLArRawChannels::~DumpLArRawChannels
~DumpLArRawChannels()
Definition
DumpLArRawChannels.cxx:26
DumpLArRawChannels::m_Q
float m_Q
Definition
DumpLArRawChannels.h:45
DumpLArRawChannels::initialize
StatusCode initialize()
Definition
DumpLArRawChannels.cxx:30
DumpLArRawChannels::m_e
float m_e
Definition
DumpLArRawChannels.h:45
DumpLArRawChannels::DumpLArRawChannels
DumpLArRawChannels(const std::string &name, ISvcLocator *pSvcLocator)
Definition
DumpLArRawChannels.cxx:13
DumpLArRawChannels::m_key
std::string m_key
Definition
DumpLArRawChannels.h:39
DumpLArRawChannels::m_tree
TTree * m_tree
Definition
DumpLArRawChannels.h:43
DumpLArRawChannels::execute
StatusCode execute(const EventContext &ctx)
Execute method.
Definition
DumpLArRawChannels.cxx:74
DumpLArRawChannels::m_ntup
std::string m_ntup
Definition
DumpLArRawChannels.h:42
DumpLArRawChannels::m_chan
int m_chan
Definition
DumpLArRawChannels.h:34
DumpLArRawChannels::m_onlineHelper
const LArOnlineID * m_onlineHelper
Definition
DumpLArRawChannels.h:36
DumpLArRawChannels::finalize
StatusCode finalize()
Definition
DumpLArRawChannels.cxx:183
DumpLArRawChannels::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition
DumpLArRawChannels.h:33
LArEM_ID
Helper class for LArEM offline identifiers.
Definition
LArEM_ID.h:111
LArOnlineID
Definition
LArOnlineID.h:21
LArRawChannel
Liquid Argon ROD output object base class.
Definition
LArRawChannel.h:40
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
ServiceHandle
Definition
ClusterMakerTool.h:36
Generated on
for ATLAS Offline Software by
1.17.0