|
ATLAS Offline Software
|
Go to the documentation of this file.
15 m_onlineHelper(nullptr)
26 ATH_MSG_FATAL(
"LArAccumulatedCalibDigitContainerKey must be set");
27 return StatusCode::FAILURE;
33 return StatusCode::FAILURE;
38 std::vector<std::string>
part;
56 std::unordered_set<unsigned int> chanids;
73 if(pLArAccCalibDigitContainer.
isValid()){
78 if(pLArAccCalibDigitContainer->
empty())
return StatusCode::SUCCESS;
81 for (
auto ijDig: * pLArAccCalibDigitContainer) {
83 chid = (ijDig->hardwareID()).get_identifier32().
get_compact();
84 chanids.emplace(chid);
88 unsigned ntriggers = ijDig->nTriggers();
89 std::vector <double>
sample;
92 std::vector <double> samplesum;
94 for (
auto samplesum_it: ijDig->sampleSum()) {
95 samplesum.push_back((
double)(samplesum_it));
97 sample.push_back((
double)(samplesum_it)/ntriggers);
101 double samplemax = * std::max_element(
sample.begin(),
sample.end());
102 double samplemin = * std::min_element(
sample.begin(),
sample.end());
105 delay = ijDig->delay();
108 sample_max = samplemax;
109 sample_min = samplemin;
117 unsigned int subdet = partitionNb / 2;
121 if (samplemax <= 3000.) {
122 sample_max30 = samplemax;
135 return StatusCode::SUCCESS;
143 if ((
ft == 3 ||
ft == 10 ||
ft == 16 ||
ft == 22) && (sl > 2))
part =
be*2+
pn + 2;
SG::ReadHandleKey< LArAccumulatedCalibDigitContainer > m_accCalibDigitContainerKey
Gaudi::Property< std::vector< std::string > > m_partitions
virtual StatusCode fillHistograms(const EventContext &ctx) const override
adds event to the monitoring histograms
int slot(const HWIdentifier id) const
Return the slot number of a hardware cell identifier: slot = [1,15] Slot-ID in top part of the crat...
value_type get_compact() const
Get the compact id.
const std::string & key() const
Return the StoreGate ID for the referenced object.
bool empty() const
Test if the key is blank.
int barrel_ec(const HWIdentifier id) const
Return the position barrel or endcap of a hardware cell identifier: barrel_ec = [0,...
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
const LArOnlineID * m_onlineHelper
Base class for Athena Monitoring Algorithms.
LArCalibDelayMonAlg(const std::string &name, ISvcLocator *pSvcLocator)
int channel(const HWIdentifier id) const
Return the channel number of a hardware cell identifier channel = [0,127] in all FEB.
virtual StatusCode initialize() override
Overwrite dummy method from AlgTool.
::StatusCode StatusCode
StatusCode definition for legacy code.
int pos_neg(const HWIdentifier id) const
Return the side of a hardware cell identifier pos_neg = [0,1] positive-side or negative-side Barrel...
double delay(std::size_t d)
void fill(const ToolHandle< GenericMonitoringTool > &groupHandle, std::vector< std::reference_wrapper< Monitored::IMonitoredVariable >> &&variables) const
Fills a vector of variables to a group by reference.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Header file to be included by clients of the Monitored infrastructure.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
ToolHandleArray< GenericMonitoringTool > m_tools
Array of Generic Monitoring Tools.
std::vector< std::map< std::string, int > > m_histoGroups
virtual StatusCode initialize() override
initialize
int feedthrough(const HWIdentifier id) const
Return the feedthrough of a hardware cell identifier : feedthrough = [0,31] Barrel - A/C side or H/...
#define ATH_MSG_WARNING(x)
Declare a monitored scalar variable.
unsigned int returnPartition(int be, int pn, int ft, int sl) const
Gaudi::Property< std::vector< std::string > > m_SubDetNames
Gaudi::Property< std::string > m_MonGroupName
bool empty() const noexcept
Returns true if the collection is empty.