ATLAS Offline Software
LArAutoCorrValidationAlg.h
Go to the documentation of this file.
1 //Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
5 */
6 
13 #ifndef LARAUTOCORRVALIDATIONALG_H
14 #define LARAUTOCORRVALIDATIONALG_H
15 
16 #include <vector>
17 #include <string>
18 
22 
24 
25 
32 {
33 
34 
35 
36  public:
40  LArAutoCorrValidationAlg (const std::string& name, ISvcLocator* pSvcLocator);
41 
42  private:
45  bool validateChannel(const LArCondObj& ref, const LArCondObj& val, const HWIdentifier chid, const int gain, const LArOnOffIdMapping *cabling,const LArBadChannelCont *bcCont) override final;
46 
47  LArCondObj getRefObj(const HWIdentifier chid, const int gain) const override final{
48  return m_reference->get(chid,gain);
49  }
50 
51 
53  virtual StatusCode summary(const LArOnOffIdMapping *cabling,const LArBadChannelCont *bcCont) override;
54 
56  virtual StatusCode preLoop() override;
57 
58 
60  //float m_covTolerance;
61  std::vector<std::string> m_covToleranceFEBInit;
63 
65  //float m_covToleranceFEB;
66  std::vector<std::string> m_covToleranceInit;
68 
71 
73 
74  //The following is for keeping track of entire FEBs
76  bool febSummary(const LArOnOffIdMapping *cabling,const LArBadChannelCont *bcCont);
77 
78  class DataPerFEB {
79  public:
80  DataPerFEB () : chid(0), febid(0), gain(0),
81  covVal(0.),covRef(0.) {}
82  DataPerFEB (const HWIdentifier cid, const HWIdentifier fid, int g) : chid(cid), febid(fid), gain(g),
83  covVal(0.),covRef(0.),nEntries(0) {}
84  HWIdentifier chid; //We need to remember the first connected channel for the offline id conversion
86  int gain;
87  double covVal;
88  double covRef;
89  unsigned nEntries;
90  };
91 
92  std::vector<DataPerFEB> m_vDataPerFEB;
93 
94  //The following is for keeping track of the global average
96  unsigned m_nEntriesGlobal;
97 };
98 
99 
100 #endif
101 
LArAutoCorrValidationAlg::DataPerFEB
Definition: LArAutoCorrValidationAlg.h:78
LArAutoCorrValidationAlg::DataPerFEB::chid
HWIdentifier chid
Definition: LArAutoCorrValidationAlg.h:84
LArCalibValidationAlg::m_reference
const REFCONTAINER * m_reference
Pointer to container with reference values.
Definition: LArCalibValidationAlg.h:182
LArAutoCorrValidationAlg::m_nSamplesToCheck
unsigned m_nSamplesToCheck
Number of elements of the Covariance vector that should be checked.
Definition: LArAutoCorrValidationAlg.h:70
LArBadXCont
Conditions-Data class holding LAr Bad Channel or Bad Feb information.
Definition: LArBadChannelCont.h:28
LArAutoCorrValidationAlg::m_nEntriesGlobal
unsigned m_nEntriesGlobal
Definition: LArAutoCorrValidationAlg.h:96
CaloCondBlobAlgs_fillNoiseFromASCII.gain
gain
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:110
ReadCellNoiseFromCool.cabling
cabling
Definition: ReadCellNoiseFromCool.py:154
LArAutoCorrValidationAlg::m_covTolerance
CaloCellGroupList m_covTolerance
Definition: LArAutoCorrValidationAlg.h:67
CaloCellGroupList
Definition: CaloCellGroup.h:59
LArAutoCorrValidationAlg::DataPerFEB::DataPerFEB
DataPerFEB(const HWIdentifier cid, const HWIdentifier fid, int g)
Definition: LArAutoCorrValidationAlg.h:82
LArAutoCorrValidationAlg::DataPerFEB::covRef
double covRef
Definition: LArAutoCorrValidationAlg.h:88
HWIdentifier
Definition: HWIdentifier.h:13
LArAutoCorrValidationAlg::DataPerFEB::gain
int gain
Definition: LArAutoCorrValidationAlg.h:86
LArAutoCorrValidationAlg::m_checkFifthSample
bool m_checkFifthSample
Definition: LArAutoCorrValidationAlg.h:72
LArAutoCorrValidationAlg::DataPerFEB::covVal
double covVal
Definition: LArAutoCorrValidationAlg.h:87
LArAutoCorrValidationAlg::validateChannel
bool validateChannel(const LArCondObj &ref, const LArCondObj &val, const HWIdentifier chid, const int gain, const LArOnOffIdMapping *cabling, const LArBadChannelCont *bcCont) override final
Method to validate readout channels.
Definition: LArAutoCorrValidationAlg.cxx:68
python.CaloCondTools.g
g
Definition: CaloCondTools.py:15
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LArAutoCorrValidationAlg
Definition: LArAutoCorrValidationAlg.h:32
LArAutoCorrValidationAlg::DataPerFEB::febid
HWIdentifier febid
Definition: LArAutoCorrValidationAlg.h:85
LArAutoCorrValidationAlg::getRefObj
LArCondObj getRefObj(const HWIdentifier chid, const int gain) const override final
Method implmented in derived class to get the reference object from ref-container.
Definition: LArAutoCorrValidationAlg.h:47
LArAutoCorrValidationAlg::preLoop
virtual StatusCode preLoop() override
Executed before the loop over all channels to reset global sums.
Definition: LArAutoCorrValidationAlg.cxx:28
LArAutoCorrValidationBase
LArCalibValidationAlg< LArAutoCorrComplete, LArAutoCorrComplete > LArAutoCorrValidationBase
@LArAutoCorrValidatonAlg.h
Definition: LArAutoCorrValidationAlg.h:23
LArAutoCorrValidationAlg::DataPerFEB::nEntries
unsigned nEntries
Definition: LArAutoCorrValidationAlg.h:89
LArAutoCorrComplete.h
LArCalibValidationAlg::LArCondObj
CONDITIONSCONTAINER::LArCondObj LArCondObj
Definition: LArCalibValidationAlg.h:80
LArAutoCorrValidationAlg::DataPerFEB::DataPerFEB
DataPerFEB()
Definition: LArAutoCorrValidationAlg.h:80
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
LArAutoCorrValidationAlg::m_covGlobalVal
double m_covGlobalVal
Definition: LArAutoCorrValidationAlg.h:95
LArAutoCorrValidationAlg::m_covToleranceFEBInit
std::vector< std::string > m_covToleranceFEBInit
Covariace tolerance of one FEB (job-Property)
Definition: LArAutoCorrValidationAlg.h:61
CaloCellGroup.h
LArAutoCorrValidationAlg::LArAutoCorrValidationAlg
LArAutoCorrValidationAlg(const std::string &name, ISvcLocator *pSvcLocator)
Regular algorithm constructor.
Definition: LArAutoCorrValidationAlg.cxx:9
LArAutoCorrValidationAlg::m_covToleranceFEB
CaloCellGroupList m_covToleranceFEB
Definition: LArAutoCorrValidationAlg.h:62
ref
const boost::regex ref(r_ef)
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
LArAutoCorrValidationAlg::m_covGlobalRef
double m_covGlobalRef
Definition: LArAutoCorrValidationAlg.h:95
LArCalibValidationAlg
Algorithm to validate LAr Autocorr;.
Definition: LArCalibValidationAlg.h:47
LArAutoCorrValidationAlg::m_covToleranceInit
std::vector< std::string > m_covToleranceInit
Covariance tolerance (job-Property)
Definition: LArAutoCorrValidationAlg.h:66
LArCalibValidationAlg.h
LArAutoCorrValidationAlg::summary
virtual StatusCode summary(const LArOnOffIdMapping *cabling, const LArBadChannelCont *bcCont) override
Summary method executed after the loop over all channels.
Definition: LArAutoCorrValidationAlg.cxx:167
LArAutoCorrValidationAlg::m_vDataPerFEB
std::vector< DataPerFEB > m_vDataPerFEB
Definition: LArAutoCorrValidationAlg.h:92
LArAutoCorrValidationAlg::febSummary
bool febSummary(const LArOnOffIdMapping *cabling, const LArBadChannelCont *bcCont)
Method to compare FEB averages.
Definition: LArAutoCorrValidationAlg.cxx:140
LArOnOffIdMapping
Definition: LArOnOffIdMapping.h:20