ATLAS Offline Software
LArFlatFromFile.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 
6 #ifndef LARFLATFROMFILE_H
7 #define LARFLATFROMFILE_H 1
8 
9 #include <string>
13 
14 class LArOnlineID;
16 
18 {
19 
21  // Public methods:
23  public:
25  LArFlatFromFile( const std::string& name, ISvcLocator* pSvcLocator );
26 
28  virtual ~LArFlatFromFile()=default;
29 
30  // Athena algorithm's Hooks
31  virtual StatusCode initialize() override;
32  virtual StatusCode execute() override {return StatusCode::SUCCESS;}
33  virtual StatusCode finalize() override {return StatusCode::SUCCESS;}
34  virtual StatusCode stop() override;
35 
36  private:
39 
40 
41  void singleFloatFlat(const char* blobName, const std::string& input,
42  const std::string& outputName, const unsigned nGain);
43  void ofcFlat(const std::string& input, const std::string& outputName);
44 
45 
46  void errIfConnected(const HWIdentifier chid, const int gain, const std::string& objName, const std::string& message="") const;
47 
48  unsigned m_hashMax{};
51 
52 
53  SG::ReadCondHandleKey<LArOnOffIdMapping> m_cablingKey{this,"CablingKey","LArOnOffIdMap","SG Key of LArOnOffIdMapping object"};
54 
56  Gaudi::Property<std::string> m_OFCInput{this, "OFCInput","","Input file name"};
57  Gaudi::Property<std::string> m_SingleInput{this, "SingleInput","","Input file name"};
58 
59  // SC switch
60  Gaudi::Property<bool> m_isSC{this,"SuperCells",false,"Run for SC ?"};
61 
62  // OFC properties
63  Gaudi::Property<unsigned> m_ngain{this,"NGains",1,"Number of gains to process"};
64  Gaudi::Property<unsigned> m_nsample{this,"NSamples",4,"Number of samples to process"};
65 
66  // Single properties
67  Gaudi::Property<std::string> m_Folder{this, "Folder","","Folder to create"};
68  Gaudi::Property<std::string> m_BlobName{this, "Blob","","Blob name"};
69 
70  // Check input file completness?
71  Gaudi::Property<bool> m_checkCompletness{this, "checkInput", true, "Check if input file is complete"};
72 
73  bool m_forceStop{};
74 };
75 
76 #endif
LArFlatFromFile::m_OFCInput
Gaudi::Property< std::string > m_OFCInput
Input files.
Definition: LArFlatFromFile.h:56
LArFlatFromFile::ofcFlat
void ofcFlat(const std::string &input, const std::string &outputName)
Definition: LArFlatFromFile.cxx:109
CaloCondBlobAlgs_fillNoiseFromASCII.gain
gain
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:110
LArFlatFromFile::m_checkCompletness
Gaudi::Property< bool > m_checkCompletness
Definition: LArFlatFromFile.h:71
LArFlatFromFile::m_BlobName
Gaudi::Property< std::string > m_BlobName
Definition: LArFlatFromFile.h:68
HWIdentifier
Definition: HWIdentifier.h:13
ReweightUtils.message
message
Definition: ReweightUtils.py:15
LArFlatFromFile::stop
virtual StatusCode stop() override
Definition: LArFlatFromFile.cxx:232
LArFlatFromFile::LArFlatFromFile
LArFlatFromFile()
Default constructor:
AthAlgorithm.h
LArFlatFromFile
Definition: LArFlatFromFile.h:18
LArFlatFromFile::initialize
virtual StatusCode initialize() override
Definition: LArFlatFromFile.cxx:25
LArFlatFromFile::m_onlineSCID
const LArOnline_SuperCellID * m_onlineSCID
Definition: LArFlatFromFile.h:50
LArOnOffIdMapping.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
PlotPulseshapeFromCool.input
input
Definition: PlotPulseshapeFromCool.py:106
LArFlatFromFile::m_onlineID
const LArOnlineID * m_onlineID
Definition: LArFlatFromFile.h:49
LArFlatFromFile::singleFloatFlat
void singleFloatFlat(const char *blobName, const std::string &input, const std::string &outputName, const unsigned nGain)
Definition: LArFlatFromFile.cxx:33
LArFlatFromFile::m_ngain
Gaudi::Property< unsigned > m_ngain
Definition: LArFlatFromFile.h:63
LArFlatFromFile::m_SingleInput
Gaudi::Property< std::string > m_SingleInput
Definition: LArFlatFromFile.h:57
LArFlatFromFile::~LArFlatFromFile
virtual ~LArFlatFromFile()=default
Destructor:
AthAlgorithm
Definition: AthAlgorithm.h:47
ReadCondHandleKey.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
LArOnlineID
Definition: LArOnlineID.h:20
LArFlatFromFile::m_isSC
Gaudi::Property< bool > m_isSC
Definition: LArFlatFromFile.h:60
LArOnline_SuperCellID
Definition: LArOnline_SuperCellID.h:20
lumiFormat.outputName
string outputName
Definition: lumiFormat.py:65
LArFlatFromFile::errIfConnected
void errIfConnected(const HWIdentifier chid, const int gain, const std::string &objName, const std::string &message="") const
Definition: LArFlatFromFile.cxx:292
SG::ReadCondHandleKey< LArOnOffIdMapping >
LArFlatFromFile::finalize
virtual StatusCode finalize() override
Definition: LArFlatFromFile.h:33
LArFlatFromFile::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition: LArFlatFromFile.h:53
LArFlatFromFile::m_nsample
Gaudi::Property< unsigned > m_nsample
Definition: LArFlatFromFile.h:64
LArFlatFromFile::m_hashMax
unsigned m_hashMax
Definition: LArFlatFromFile.h:48
LArFlatFromFile::execute
virtual StatusCode execute() override
Definition: LArFlatFromFile.h:32
LArFlatFromFile::m_Folder
Gaudi::Property< std::string > m_Folder
Definition: LArFlatFromFile.h:67
LArFlatFromFile::m_forceStop
bool m_forceStop
Definition: LArFlatFromFile.h:73