ATLAS Offline Software
LArBadChannel2Ascii.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 //Dear emacs, this is -*-c++-*-
6 
7 #ifndef LArBadChannel2Ascii_H
8 #define LArBadChannel2Ascii_H
9 
14 #include <string>
15 #include <vector>
16 #include <iosfwd> //ofstream
17 
19 {
20 public:
21 
22  //Delegate constructor
24 
26 
27  virtual StatusCode initialize() final;
28  virtual StatusCode execute() final;
29 
30 private:
31 
32  SG::ReadCondHandleKey<LArBadChannelCont> m_BCKey{this,"BCKey","LArBadChannel"};
33  SG::ReadCondHandleKey<LArBadFebCont> m_BFKey{this,"BFKey","LArBadFeb"};
34  SG::ReadCondHandleKey<LArOnOffIdMapping> m_cablingKey{this,"LArOnOffIdMapKey","LArOnOffIdMap"};
35 
36  Gaudi::Property<std::string> m_fileName{this,"FileName",""};
37  Gaudi::Property<std::string> m_executiveSummaryFile{this,"ExecutiveSummaryFile",""};
38  Gaudi::Property<bool> m_wMissing{this,"WithMissing",false};
39  Gaudi::Property<bool> m_skipDisconnected{this,"SkipDisconnected",true};
40  Gaudi::Property<bool> m_isSC{"SuperCell",false};
41 
42  enum DetPart {
43  EMB=0,
45  HEC,
47  nParts
48  };
49 
50 
63  };
64 
65  void writeSum(std::ofstream& exeFile, const std::vector<unsigned>& probs, const std::vector<unsigned>& nChans) const ;
66 };
67 
68 #endif
LArBadChannel2Ascii::CoarseProblemType
CoarseProblemType
Definition: LArBadChannel2Ascii.h:51
LArBadChannel2Ascii::GrandTotalDead
@ GrandTotalDead
Definition: LArBadChannel2Ascii.h:61
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
LArBadChannel2Ascii::m_BFKey
SG::ReadCondHandleKey< LArBadFebCont > m_BFKey
Definition: LArBadChannel2Ascii.h:33
LArBadChannel2Ascii::m_skipDisconnected
Gaudi::Property< bool > m_skipDisconnected
Definition: LArBadChannel2Ascii.h:39
LArBadChannel2Ascii::nParts
@ nParts
Definition: LArBadChannel2Ascii.h:47
LArBadXCont
Conditions-Data class holding LAr Bad Channel or Bad Feb information.
Definition: LArBadChannelCont.h:28
LArBadChannel2Ascii::DeadPhys
@ DeadPhys
Definition: LArBadChannel2Ascii.h:53
LArBadChannel2Ascii::Distorted
@ Distorted
Definition: LArBadChannel2Ascii.h:58
LArBadChannel2Ascii::Noisy
@ Noisy
Definition: LArBadChannel2Ascii.h:56
LArBadChannel2Ascii::nProblemTypes
@ nProblemTypes
Definition: LArBadChannel2Ascii.h:62
LArBadChannel2Ascii::EMB
@ EMB
Definition: LArBadChannel2Ascii.h:43
LArBadChannel2Ascii::PeakReco
@ PeakReco
Definition: LArBadChannel2Ascii.h:59
LArBadChannel2Ascii::DeadFEB
@ DeadFEB
Definition: LArBadChannel2Ascii.h:55
AthAlgorithm.h
LArBadChannel2Ascii::initialize
virtual StatusCode initialize() final
Definition: LArBadChannel2Ascii.cxx:14
LArBadChannelCont.h
LArOnOffIdMapping.h
LArBadChannel2Ascii::m_fileName
Gaudi::Property< std::string > m_fileName
Definition: LArBadChannel2Ascii.h:36
LArBadChannel2Ascii::DeadCalib
@ DeadCalib
Definition: LArBadChannel2Ascii.h:54
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LArBadChannel2Ascii::writeSum
void writeSum(std::ofstream &exeFile, const std::vector< unsigned > &probs, const std::vector< unsigned > &nChans) const
Definition: LArBadChannel2Ascii.cxx:244
LArBadChannel2Ascii::m_isSC
Gaudi::Property< bool > m_isSC
Definition: LArBadChannel2Ascii.h:40
LArBadChannel2Ascii::EMEC
@ EMEC
Definition: LArBadChannel2Ascii.h:44
LArBadChannel2Ascii::execute
virtual StatusCode execute() final
Definition: LArBadChannel2Ascii.cxx:28
AthAlgorithm
Definition: AthAlgorithm.h:47
ReadCondHandleKey.h
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
LArBadChannel2Ascii::~LArBadChannel2Ascii
~LArBadChannel2Ascii()=default
SG::ReadCondHandleKey
Definition: ReadCondHandleKey.h:20
LArBadChannel2Ascii::Fibre
@ Fibre
Definition: LArBadChannel2Ascii.h:60
LArBadChannel2Ascii::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition: LArBadChannel2Ascii.h:34
LArBadChannel2Ascii::DeadReadout
@ DeadReadout
Definition: LArBadChannel2Ascii.h:52
LArBadChannel2Ascii::m_executiveSummaryFile
Gaudi::Property< std::string > m_executiveSummaryFile
Definition: LArBadChannel2Ascii.h:37
LArBadChannel2Ascii::m_BCKey
SG::ReadCondHandleKey< LArBadChannelCont > m_BCKey
Definition: LArBadChannel2Ascii.h:32
LArBadChannel2Ascii::Sporadic
@ Sporadic
Definition: LArBadChannel2Ascii.h:57
LArBadChannel2Ascii::FCAL
@ FCAL
Definition: LArBadChannel2Ascii.h:46
LArBadChannel2Ascii::DetPart
DetPart
Definition: LArBadChannel2Ascii.h:42
AthAlgorithm::AthAlgorithm
AthAlgorithm()
Default constructor:
LArBadChannel2Ascii
Definition: LArBadChannel2Ascii.h:19
LArBadChannel2Ascii::HEC
@ HEC
Definition: LArBadChannel2Ascii.h:45
LArBadChannel2Ascii::m_wMissing
Gaudi::Property< bool > m_wMissing
Definition: LArBadChannel2Ascii.h:38