ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArTest
LArCalibTest
LArCalibTest
LArCablingChecker.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 LARCABLINGCHECKER
6
#define LARCABLINGCHECKER
7
#include "
AthenaBaseComps/AthAlgorithm.h
"
8
#include "
LArRawEvent/LArDigitContainer.h
"
9
//#include "CaloIdentifier/LArEM_ID.h"
10
#include "
LArIdentifier/LArOnlineID.h
"
11
12
#include "
StoreGate/ReadCondHandleKey.h
"
13
#include "
LArRecConditions/LArBadChannelCont.h
"
14
#include "
LArCabling/LArOnOffIdMapping.h
"
15
#include "
LArRecConditions/LArCalibLineMapping.h
"
16
17
#include <fstream>
18
#include <vector>
19
20
class
LArCablingChecker
:
public
AthAlgorithm
21
{
22
public
:
23
LArCablingChecker
(
const
std::string & name, ISvcLocator * pSvcLocator);
24
25
~LArCablingChecker
();
26
27
//standard algorithm methods
28
StatusCode
initialize
();
29
StatusCode
execute
(
const
EventContext& ctx);
30
StatusCode
finalize
();
31
32
private
:
33
int
m_count
;
34
35
SG::ReadCondHandleKey<LArOnOffIdMapping>
m_cablingKey
{
this
,
"CablingKey"
,
"LArOnOffIdMap"
,
"SG Key of LArOnOffIdMapping object"
};
36
SG::ReadCondHandleKey<LArBadChannelCont>
m_BCKey
{
this
,
"BadChanKey"
,
"LArBadChannel"
,
"SG bad channels key"
};
37
SG::ReadCondHandleKey<LArCalibLineMapping>
m_CLKey
{
this
,
"CalibLineKey"
,
"LArCalibLineMap"
,
"SG calib line key"
};
38
39
const
LArOnlineID
*
m_onlineHelper
;
40
const
LArEM_ID
*
m_emId
;
41
42
std::ofstream
m_outfile
;
43
std::string
m_key
;
44
std::string
m_outFileName
;
45
//std::vector<unsigned> m_vPattern;
46
47
std::vector<bool> *
m_errorcellsThisEvent
;
48
int
m_errorCounterThisEvent
;
49
std::vector<bool> *
m_errorcellsPreviousEvent
;
50
int
m_errorCounterPreviousEvent
;
51
int
m_numberOfEventsWithThisErrorState
;
52
LArOnlineID::size_type
m_channelHashMax
;
53
54
// Properties
55
bool
m_PrintAllCellsAndEvents
;
56
bool
m_PrintDisconnectedCells
;
57
int
m_ADCThreshold
;
58
int
m_DACHighGainThreshold
;
59
int
m_DACMediumGainThreshold
;
60
int
m_DACLowGainThreshold
;
61
bool
m_printEventSummary
;
62
bool
m_useBadChannelTool
;
63
};
64
65
#endif
AthAlgorithm.h
LArBadChannelCont.h
LArCalibLineMapping.h
LArDigitContainer.h
LArOnOffIdMapping.h
LArOnlineID.h
ReadCondHandleKey.h
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
LArCablingChecker::m_outFileName
std::string m_outFileName
Definition
LArCablingChecker.h:44
LArCablingChecker::m_onlineHelper
const LArOnlineID * m_onlineHelper
Definition
LArCablingChecker.h:39
LArCablingChecker::m_printEventSummary
bool m_printEventSummary
Definition
LArCablingChecker.h:61
LArCablingChecker::m_key
std::string m_key
Definition
LArCablingChecker.h:43
LArCablingChecker::m_PrintDisconnectedCells
bool m_PrintDisconnectedCells
Definition
LArCablingChecker.h:56
LArCablingChecker::LArCablingChecker
LArCablingChecker(const std::string &name, ISvcLocator *pSvcLocator)
Definition
LArCablingChecker.cxx:14
LArCablingChecker::m_emId
const LArEM_ID * m_emId
Definition
LArCablingChecker.h:40
LArCablingChecker::m_numberOfEventsWithThisErrorState
int m_numberOfEventsWithThisErrorState
Definition
LArCablingChecker.h:51
LArCablingChecker::m_errorCounterPreviousEvent
int m_errorCounterPreviousEvent
Definition
LArCablingChecker.h:50
LArCablingChecker::m_CLKey
SG::ReadCondHandleKey< LArCalibLineMapping > m_CLKey
Definition
LArCablingChecker.h:37
LArCablingChecker::finalize
StatusCode finalize()
Definition
LArCablingChecker.cxx:374
LArCablingChecker::m_outfile
std::ofstream m_outfile
Definition
LArCablingChecker.h:42
LArCablingChecker::m_BCKey
SG::ReadCondHandleKey< LArBadChannelCont > m_BCKey
Definition
LArCablingChecker.h:36
LArCablingChecker::m_errorcellsThisEvent
std::vector< bool > * m_errorcellsThisEvent
Definition
LArCablingChecker.h:47
LArCablingChecker::m_errorcellsPreviousEvent
std::vector< bool > * m_errorcellsPreviousEvent
Definition
LArCablingChecker.h:49
LArCablingChecker::m_count
int m_count
Definition
LArCablingChecker.h:33
LArCablingChecker::m_ADCThreshold
int m_ADCThreshold
Definition
LArCablingChecker.h:57
LArCablingChecker::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition
LArCablingChecker.h:35
LArCablingChecker::m_errorCounterThisEvent
int m_errorCounterThisEvent
Definition
LArCablingChecker.h:48
LArCablingChecker::initialize
StatusCode initialize()
Definition
LArCablingChecker.cxx:44
LArCablingChecker::execute
StatusCode execute(const EventContext &ctx)
Execute method.
Definition
LArCablingChecker.cxx:76
LArCablingChecker::m_channelHashMax
LArOnlineID::size_type m_channelHashMax
Definition
LArCablingChecker.h:52
LArCablingChecker::m_DACLowGainThreshold
int m_DACLowGainThreshold
Definition
LArCablingChecker.h:60
LArCablingChecker::m_useBadChannelTool
bool m_useBadChannelTool
Definition
LArCablingChecker.h:62
LArCablingChecker::~LArCablingChecker
~LArCablingChecker()
Definition
LArCablingChecker.cxx:40
LArCablingChecker::m_PrintAllCellsAndEvents
bool m_PrintAllCellsAndEvents
Definition
LArCablingChecker.h:55
LArCablingChecker::m_DACMediumGainThreshold
int m_DACMediumGainThreshold
Definition
LArCablingChecker.h:59
LArCablingChecker::m_DACHighGainThreshold
int m_DACHighGainThreshold
Definition
LArCablingChecker.h:58
LArEM_ID
Helper class for LArEM offline identifiers.
Definition
LArEM_ID.h:111
LArOnlineID
Definition
LArOnlineID.h:21
LArOnlineID::size_type
Identifier::size_type size_type
Definition
LArOnlineID.h:24
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
Generated on
for ATLAS Offline Software by
1.17.0