ATLAS Offline Software
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
();
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
DumpLArRawChannels::m_thistSvc
ServiceHandle< ITHistSvc > m_thistSvc
Definition:
DumpLArRawChannels.h:51
LArEM_ID.h
DumpLArRawChannels::m_toLog
bool m_toLog
Definition:
DumpLArRawChannels.h:48
DumpLArRawChannels::m_key
std::string m_key
Definition:
DumpLArRawChannels.h:39
DumpLArRawChannels::m_ntup
std::string m_ntup
Definition:
DumpLArRawChannels.h:42
DumpLArRawChannels::DumpLArRawChannels
DumpLArRawChannels(const std::string &name, ISvcLocator *pSvcLocator)
Definition:
DumpLArRawChannels.cxx:13
DumpLArRawChannels::m_emId
const LArEM_ID * m_emId
Definition:
DumpLArRawChannels.h:37
DumpLArRawChannels::execute
StatusCode execute()
Definition:
DumpLArRawChannels.cxx:74
DumpLArRawChannels::~DumpLArRawChannels
~DumpLArRawChannels()
Definition:
DumpLArRawChannels.cxx:26
DumpLArRawChannels::m_t
float m_t
Definition:
DumpLArRawChannels.h:45
DumpLArRawChannels::m_evt
int m_evt
Definition:
DumpLArRawChannels.h:44
DumpLArRawChannels::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition:
DumpLArRawChannels.h:33
AthAlgorithm.h
DumpLArRawChannels::m_gain
unsigned m_gain
Definition:
DumpLArRawChannels.h:46
DumpLArRawChannels::m_count
int m_count
Definition:
DumpLArRawChannels.h:34
LArOnOffIdMapping.h
DumpLArRawChannels::initialize
StatusCode initialize()
Definition:
DumpLArRawChannels.cxx:30
LArRawChannel
Liquid Argon ROD output object base class.
Definition:
LArRawChannel.h:40
DumpLArRawChannels::mySort
Definition:
DumpLArRawChannels.h:53
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
DumpLArRawChannels::m_tree
TTree * m_tree
Definition:
DumpLArRawChannels.h:43
DumpLArRawChannels::m_onlineHelper
const LArOnlineID * m_onlineHelper
Definition:
DumpLArRawChannels.h:36
AthAlgorithm
Definition:
AthAlgorithm.h:47
ReadCondHandleKey.h
DumpLArRawChannels::m_Q
float m_Q
Definition:
DumpLArRawChannels.h:45
DumpLArRawChannels::m_e
float m_e
Definition:
DumpLArRawChannels.h:45
DumpLArRawChannels::mySort::operator()
bool operator()(const LArRawChannel *a, const LArRawChannel *b)
Definition:
DumpLArRawChannels.cxx:190
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:221
DumpLArRawChannels::m_FileName
std::string m_FileName
Definition:
DumpLArRawChannels.h:39
plotBeamSpotMon.b
b
Definition:
plotBeamSpotMon.py:77
LArOnlineID
Definition:
LArOnlineID.h:20
DumpLArRawChannels::m_toFile
bool m_toFile
Definition:
DumpLArRawChannels.h:49
DumpLArRawChannels::finalize
StatusCode finalize()
Definition:
DumpLArRawChannels.cxx:183
SG::ReadCondHandleKey< LArOnOffIdMapping >
a
TList * a
Definition:
liststreamerinfos.cxx:10
DumpLArRawChannels::m_outfile
std::ofstream m_outfile
Definition:
DumpLArRawChannels.h:38
LArEM_ID
Helper class for LArEM offline identifiers.
Definition:
LArEM_ID.h:118
DumpLArRawChannels::m_id
unsigned m_id
Definition:
DumpLArRawChannels.h:47
LArRawChannelContainer.h
DumpLArRawChannels::m_chan
int m_chan
Definition:
DumpLArRawChannels.h:34
LArOnlineID.h
DumpLArRawChannels
Definition:
DumpLArRawChannels.h:22
ServiceHandle< ITHistSvc >
Generated on Thu Nov 7 2024 21:13:53 for ATLAS Offline Software by
1.8.18