|
ATLAS Offline Software
|
#include <ZdcLEDAnalysisTool.h>
|
| ZdcLEDAnalysisTool (const std::string &name) |
|
virtual | ~ZdcLEDAnalysisTool () override |
|
StatusCode | initialize () override |
| Dummy implementation of the initialisation function. More...
|
|
StatusCode | recoZdcModules (const xAOD::ZdcModuleContainer &moduleContainer, const xAOD::ZdcModuleContainer &moduleSumContainer) override |
|
StatusCode | reprocessZdc () override |
|
ZDCMsg::MessageFunctionPtr | MakeMessageFunction () |
|
virtual void | print () const =0 |
| Print the state of the tool. More...
|
|
virtual void | print () const |
| Print the state of the tool. More...
|
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysInitialize () override |
| Perform system initialization for an algorithm. More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
|
void | initialize_ppPbPb2023 () |
|
void | initialize_ppALFA2023 () |
|
void | initialize_zdcStandalone () |
|
ZDCLEDModuleResults | processZDCModule (const xAOD::ZdcModule &module) |
|
ZDCLEDModuleResults | processRPDModule (const xAOD::ZdcModule &module) |
|
ZDCLEDModuleResults | processModuleData (int iside, int imod, const std::vector< unsigned short > &data, unsigned int startSample, unsigned int endSample, float gainScale) |
|
double | getAmplitudeCorrection (int iside, int imod, bool highGain, float fitAmp) |
|
void | setFADCCorrections (unsigned int runNumber) |
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &) |
| specialization for handling Gaudi::Property<SG::VarHandleBase> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &) |
| specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
|
|
|
bool | m_init {false} |
|
std::string | m_name |
|
Gaudi::Property< std::string > | m_configuration {this, "Configuration", "ppPbPb2023", "Which config files to use"} |
|
bool | m_writeAux {false} |
|
Gaudi::Property< std::string > | m_auxSuffix {this, "AuxSuffix", "", "Append this tag onto end of AuxData"} |
|
Gaudi::Property< bool > | m_doRPD {this, "doRPD", true, "Process RPD Data?"} |
|
Gaudi::Property< bool > | m_doZDC {this, "doZDC", true, "Process ZDC Data?"} |
|
std::vector< unsigned int > | m_LEDCalreqIdx |
|
std::vector< unsigned int > | m_LEDBCID |
|
const std::vector< std::string > | m_LEDNames = {"Blue1", "Green", "Blue2"} |
|
const std::vector< std::string > | m_calreqNames = {"CalReq1", "CalReq2", "CalReq3"} |
|
unsigned int | m_HGADCOverflow {4095} |
|
unsigned int | m_numSamples {24} |
|
unsigned int | m_preSample {0} |
|
float | m_deltaTSample {3.125} |
|
unsigned int | m_sampleAnaStartZDC {0} |
|
unsigned int | m_sampleAnaEndZDC {23} |
|
unsigned int | m_sampleAnaStartRPD {0} |
|
unsigned int | m_sampleAnaEndRPD {23} |
|
float | m_ZdcLowGainScale {10} |
|
Gaudi::Property< std::string > | m_zdcModuleContainerName {this, "ZdcModuleContainerName", "ZdcModules", "Location of ZDC processed data"} |
|
const xAOD::ZdcModuleContainer * | m_zdcModules {nullptr} |
|
Gaudi::Property< std::string > | m_zdcSumContainerName {this, "ZdcSumContainerName", "ZdcSums", "Location of ZDC processed sums"} |
|
const xAOD::ZdcModuleContainer * | m_zdcSums {nullptr} |
|
SG::ReadHandleKey< xAOD::EventInfo > | m_eventInfoKey |
|
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > | m_eventTypeKey |
|
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > | m_robBCIDKey |
|
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > | m_DAQModeKey |
|
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > | m_ZdcLEDType {this, "ZdcLEDType", "", "ZDC LED Type (0-Blue1, 1-Green, 2-Blue2}"} |
|
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > | m_ZdcLEDPresampleADC {this, "ZdcLEDPresampleADC", "", "ZDC LED presample"} |
|
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > | m_ZdcLEDADCSum {this, "ZdcLEDADCSum", "", "ZDC LED pulse FADC sum"} |
|
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > | m_ZdcLEDMaxADC {this, "ZdcLEDMaxADC", "", "ZDC LED pulse max FADC value"} |
|
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > | m_ZdcLEDMaxSample {this, "ZdcLEDMaxSample", "", "ZDC LED max FADC sample"} |
|
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > | m_ZdcLEDAvgTime {this, "ZdcLEDAvgTime", "", "ZDC LED average time"} |
|
bool | m_doFADCCorr {} |
|
unsigned int | m_runNumber {} |
|
int | m_forceCalibRun {} |
|
std::array< std::array< std::unique_ptr< const TH1 >, 4 >, 2 > | m_FADCCorrHG |
|
std::array< std::array< std::unique_ptr< const TH1 >, 4 >, 2 > | m_FADCCorrLG |
|
StoreGateSvc_t | m_evtStore |
| Pointer to StoreGate (event store by default) More...
|
|
StoreGateSvc_t | m_detStore |
| Pointer to StoreGate (detector store by default) More...
|
|
std::vector< SG::VarHandleKeyArray * > | m_vhka |
|
bool | m_varHandleArraysDeclared |
|
Definition at line 59 of file ZdcLEDAnalysisTool.h.
◆ StoreGateSvc_t
◆ ZdcLEDAnalysisTool()
ZDC::ZdcLEDAnalysisTool::ZdcLEDAnalysisTool |
( |
const std::string & |
name | ) |
|
Definition at line 22 of file ZdcLEDAnalysisTool.cxx.
28 #ifndef XAOD_STANDALONE
29 declareInterface<IZdcAnalysisTool>(
this);
◆ ~ZdcLEDAnalysisTool()
ZDC::ZdcLEDAnalysisTool::~ZdcLEDAnalysisTool |
( |
| ) |
|
|
overridevirtual |
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ getAmplitudeCorrection()
double ZDC::ZdcLEDAnalysisTool::getAmplitudeCorrection |
( |
int |
iside, |
|
|
int |
imod, |
|
|
bool |
highGain, |
|
|
float |
fitAmp |
|
) |
| |
|
private |
Definition at line 426 of file ZdcLEDAnalysisTool.cxx.
428 double amplCorrFactor = 1;
430 double fadcCorr = highGain ?
m_FADCCorrHG[iside][imod]->Interpolate(fitAmp) :
m_FADCCorrLG[iside][imod]->Interpolate(fitAmp);
431 amplCorrFactor *= fadcCorr;
433 return amplCorrFactor;
◆ getKey()
Get the (hashed) key of an object that is in the event store.
This is a bit of a special one. StoreGateSvc
and xAOD::TEvent
both provide ways for getting the SG::sgkey_t
key for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.
In order to allow tools to efficiently perform this operation, they can use this helper function.
- See also
- asg::AsgTool::getName
- Parameters
-
ptr | The bare pointer to the object that the event store should know about |
- Returns
- The hashed key of the object in the store. If not found, an invalid (zero) key.
Definition at line 119 of file AsgTool.cxx.
121 #ifdef XAOD_STANDALONE
127 return (
proxy ==
nullptr ? 0 :
proxy->sgkey() );
128 #endif // XAOD_STANDALONE
◆ getName()
const std::string & asg::AsgTool::getName |
( |
const void * |
ptr | ) |
const |
|
inherited |
Get the name of an object that is / should be in the event store.
This is a bit of a special one. StoreGateSvc
and xAOD::TEvent
both provide ways for getting the std::string
name for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.
In order to allow tools to efficiently perform this operation, they can use this helper function.
- See also
- asg::AsgTool::getKey
- Parameters
-
ptr | The bare pointer to the object that the event store should know about |
- Returns
- The string name of the object in the store. If not found, an empty string.
Definition at line 106 of file AsgTool.cxx.
108 #ifdef XAOD_STANDALONE
114 static const std::string
dummy =
"";
116 #endif // XAOD_STANDALONE
◆ getProperty()
template<class T >
const T* asg::AsgTool::getProperty |
( |
const std::string & |
name | ) |
const |
|
inherited |
Get one of the tool's properties.
◆ initialize()
StatusCode ZDC::ZdcLEDAnalysisTool::initialize |
( |
| ) |
|
|
overridevirtual |
Dummy implementation of the initialisation function.
It's here to allow the dual-use tools to skip defining an initialisation function. Since many are doing so...
Reimplemented from asg::AsgTool.
Definition at line 40 of file ZdcLEDAnalysisTool.cxx.
55 return StatusCode::FAILURE;
62 return StatusCode::FAILURE;
77 std::ostringstream BCIDList;
78 BCIDList <<
"LED BCIDs:";
132 return StatusCode::SUCCESS;
◆ initialize_ppALFA2023()
void ZDC::ZdcLEDAnalysisTool::initialize_ppALFA2023 |
( |
| ) |
|
|
private |
◆ initialize_ppPbPb2023()
void ZDC::ZdcLEDAnalysisTool::initialize_ppPbPb2023 |
( |
| ) |
|
|
private |
◆ initialize_zdcStandalone()
void ZDC::ZdcLEDAnalysisTool::initialize_zdcStandalone |
( |
| ) |
|
|
private |
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ MakeMessageFunction()
Definition at line 74 of file ZdcLEDAnalysisTool.h.
76 std::function<
bool(
int, std::string)> msgFunction = [
this](
int messageZdcLevel,
const std::string&
message)->
bool
79 bool passesStreamOutputLevel = messageAthenaLevel >= this->
msg().level();
80 if (passesStreamOutputLevel) {
83 return passesStreamOutputLevel;
◆ msg() [1/2]
◆ msg() [2/2]
◆ msg_level_name()
const std::string & asg::AsgTool::msg_level_name |
( |
| ) |
const |
|
inherited |
A deprecated function for getting the message level's name.
Instead of using this, weirdly named function, user code should get the string name of the current minimum message level (in case they really need it...), with:
MSG::name( msg().level() )
This function's name doesn't follow the ATLAS coding rules, and as such will be removed in the not too distant future.
- Returns
- The string name of the current minimum message level that's printed
Definition at line 101 of file AsgTool.cxx.
◆ msgLvl()
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ print() [1/2]
void asg::AsgTool::print |
( |
| ) |
const |
|
virtualinherited |
Print the state of the tool.
Implements asg::IAsgTool.
Reimplemented in JetRecTool, JetFinder, JetModifiedMassDrop, JetFromPseudojet, JetReclusterer, JetReclusteringTool, JetTruthLabelingTool, JetPileupLabelingTool, HI::HIPileupTool, JetDumper, JetBottomUpSoftDrop, JetRecursiveSoftDrop, JetSoftDrop, JetConstituentsRetriever, JetSubStructureMomentToolsBase, JetSplitter, JetToolRunner, JetPruner, JetPseudojetRetriever, JetTrimmer, AsgHelloTool, and KtDeltaRTool.
Definition at line 131 of file AsgTool.cxx.
◆ print() [2/2]
virtual void asg::IAsgTool::print |
( |
| ) |
const |
|
pure virtualinherited |
Print the state of the tool.
Implemented in JetRecTool, JetFinder, JetModifiedMassDrop, JetFromPseudojet, JetReclusterer, JetReclusteringTool, JetTruthLabelingTool, JetPileupLabelingTool, HI::HIPileupTool, asg::AsgTool, JetDumper, JetBottomUpSoftDrop, JetRecursiveSoftDrop, JetSoftDrop, JetConstituentsRetriever, JetSubStructureMomentToolsBase, JetSplitter, JetToolRunner, JetPruner, JetPseudojetRetriever, JetTrimmer, AsgHelloTool, and KtDeltaRTool.
◆ processModuleData()
ZDCLEDModuleResults ZDC::ZdcLEDAnalysisTool::processModuleData |
( |
int |
iside, |
|
|
int |
imod, |
|
|
const std::vector< unsigned short > & |
data, |
|
|
unsigned int |
startSample, |
|
|
unsigned int |
endSample, |
|
|
float |
gainScale |
|
) |
| |
|
private |
Definition at line 380 of file ZdcLEDAnalysisTool.cxx.
385 int maxADCsub = -999;
386 unsigned int maxSample = 0;
388 bool highgain = (gainScale<1.1);
391 ATH_MSG_ERROR(
"Start or end sample number greater than number of samples");
392 return ZDCLEDModuleResults();
408 if (FADCsub > maxADCsub) {
413 avgTime +=
time*FADCsub;
421 return ZDCLEDModuleResults(preFADC, ADCSum*gainScale, maxADCsub*gainScale, maxSample, avgTime);
◆ processRPDModule()
◆ processZDCModule()
Definition at line 350 of file ZdcLEDAnalysisTool.cxx.
357 std::vector<uint16_t> HGSamples = g1dataAcc (
module);
358 std::vector<uint16_t> LGSamples = g0dataAcc (
module);
360 std::vector<uint16_t>::const_iterator maxIter = std::max_element(HGSamples.begin(), HGSamples.end());
361 if (maxIter != HGSamples.end()) {
◆ recoZdcModules()
Implements ZDC::IZdcAnalysisTool.
Definition at line 167 of file ZdcLEDAnalysisTool.cxx.
172 return StatusCode::FAILURE;
175 if (moduleContainer.
size()==0)
return StatusCode::SUCCESS;
178 if (!eventInfo.isValid())
return StatusCode::FAILURE;
184 ATH_MSG_WARNING(
"ZDC or RPD decoding error found - abandoning ZdcLEDAnalysisTool!");
185 return StatusCode::SUCCESS;
188 unsigned int thisRunNumber = eventInfo->runNumber();
190 ATH_MSG_INFO(
"ZDC LED analysis tool will be configured for run " << thisRunNumber <<
" m_doFADCCorr = " <<
m_doFADCCorr);
193 unsigned int calibRunNumber = thisRunNumber;
195 ATH_MSG_INFO(
"FADC corrections will be configured for run " << calibRunNumber);
205 bool haveZdcEventInfo =
false;
207 unsigned int bcid = eventInfo->bcid();
212 for (
auto modSum : moduleSumContainer) {
216 if (modSum->zdcSide() == 0) {
221 eventType = eventTypeHandle(*modSum);
222 DAQMode = DAQModeHandle(*modSum);
223 haveZdcEventInfo =
true;
224 moduleSumEventInfo_ptr = modSum;
227 if (!haveZdcEventInfo) {
228 ATH_MSG_ERROR(
"Zdc event data not available (moduleSum with side = 0)");
229 return StatusCode::FAILURE;
241 if (!robBCIDHandle.isValid())
return StatusCode::FAILURE;
243 const std::vector<uint16_t>& robBCIDvec = robBCIDHandle(*moduleSumEventInfo_ptr);
244 if (robBCIDHandle->size() == 0)
return StatusCode::FAILURE;
246 unsigned int checkBCID = robBCIDvec[0];
247 for (
unsigned int bcid : robBCIDvec) {
248 if (
bcid != checkBCID) {
249 ATH_MSG_ERROR(
"Inconsistent BCIDs in rob header, cannot continue in standalone mode");
250 return StatusCode::FAILURE;
283 return StatusCode::SUCCESS;
302 for (
const auto zdcModule : moduleContainer)
305 if (zdcModule->zdcType() == 0) {
308 else if (zdcModule->zdcType() == 1 && zdcModule->zdcModule() == 4) {
312 ATH_MSG_DEBUG(
"Writing aux decors to module with side, module, channel = " << zdcModule->zdcSide() <<
", " << zdcModule->zdcModule()
313 <<
", " << zdcModule->zdcChannel());
315 moduleLEDPresampleADCHandle(*zdcModule) = std::floor(
results.getPresampleADC() + 1.0e-6);
316 moduleLEDADCSumHandle(*zdcModule) =
results.getADCSum();
317 moduleLEDMaxADCHandle(*zdcModule) =
results.getMaxADC();
318 moduleLEDMaxSampleHandle(*zdcModule) =
results.getMaxSample();
319 moduleLEDAvgTimeHandle(*zdcModule) =
results.getAvgTime();
324 LEDTypeHandle(*moduleSumEventInfo_ptr) = evtLEDType;
329 return StatusCode::SUCCESS;
◆ renounce()
◆ renounceArray()
◆ reprocessZdc()
StatusCode ZDC::ZdcLEDAnalysisTool::reprocessZdc |
( |
| ) |
|
|
overridevirtual |
◆ setFADCCorrections()
void ZDC::ZdcLEDAnalysisTool::setFADCCorrections |
( |
unsigned int |
runNumber | ) |
|
|
private |
Definition at line 436 of file ZdcLEDAnalysisTool.cxx.
439 std::string runString;
442 else runString = (
"ZdcFADCCorr_Run"+TString::Itoa(
runNumber,10)+
".root").
Data();
448 ATH_MSG_INFO(
"No FADC corrections file - disabling correction");
454 std::unique_ptr<TFile> fFADCCorr(TFile::Open(
filename.c_str(),
"READ"));
456 if (!fFADCCorr->IsOpen()) {
457 ATH_MSG_INFO (
"setFADCCorrections: failed to open file: " <<
filename <<
". Disabling correction.");
465 bool readSuccess =
true;
466 std::array<std::array<std::unique_ptr<const TH1>, 4>, 2> histogramsHG;
467 std::array<std::array<std::unique_ptr<const TH1>, 4>, 2> histogramsLG;
469 for (
size_t side : {0, 1}) {
470 for (
int module : {0, 1, 2, 3}) {
474 ATH_MSG_DEBUG(
"setFADCCorrections: Searching for histograms HG and LG: " << histNameHG <<
", " << histNameLG);
476 TH1* histHG_ptr =
static_cast<TH1*
>(fFADCCorr->GetObjectChecked(histNameHG.c_str(),
"TH1"));
477 TH1* histLG_ptr =
static_cast<TH1*
>(fFADCCorr->GetObjectChecked(histNameLG.c_str(),
"TH1"));
479 if (!histHG_ptr || !histLG_ptr) {
480 std::string errMsg =
"setFADCCorrections: unable to read FADC correction histogram(s) ";
481 if (!histHG_ptr) errMsg += histNameHG +
" ";
482 if (!histLG_ptr) errMsg += histNameLG;
493 if ( std::abs(histHG_ptr->GetXaxis()->GetXmin()+0.5) > 1
e-3 || std::abs(histHG_ptr->GetXaxis()->GetXmax() - 4095.5) > 1
e-3) {
494 ATH_MSG_ERROR(
"setFADCCorrections: invalid axis range for HG FADC corrections in histogram with name " << histNameHG);
498 if (std::abs(histLG_ptr->GetXaxis()->GetXmin()+0.5) > 1
e-3 || std::abs(histLG_ptr->GetXaxis()->GetXmax() - 4095.5) > 1
e-3) {
499 ATH_MSG_ERROR(
"setFADCCorrections: invalid axis range for HG FADC corrections in histogram with name " << histNameLG);
514 ATH_MSG_INFO(
"Successfully configured FADC correction");
518 ATH_MSG_ERROR(
"setFADCCorrections: due to at least one error, FADC corrections are not implemented");
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ m_auxSuffix
Gaudi::Property<std::string> ZDC::ZdcLEDAnalysisTool::m_auxSuffix {this, "AuxSuffix", "", "Append this tag onto end of AuxData"} |
|
private |
◆ m_calreqNames
const std::vector<std::string> ZDC::ZdcLEDAnalysisTool::m_calreqNames = {"CalReq1", "CalReq2", "CalReq3"} |
|
private |
◆ m_configuration
Gaudi::Property<std::string> ZDC::ZdcLEDAnalysisTool::m_configuration {this, "Configuration", "ppPbPb2023", "Which config files to use"} |
|
private |
◆ m_DAQModeKey
◆ m_deltaTSample
float ZDC::ZdcLEDAnalysisTool::m_deltaTSample {3.125} |
|
private |
◆ m_detStore
◆ m_doFADCCorr
bool ZDC::ZdcLEDAnalysisTool::m_doFADCCorr {} |
|
private |
◆ m_doRPD
Gaudi::Property<bool> ZDC::ZdcLEDAnalysisTool::m_doRPD {this, "doRPD", true, "Process RPD Data?"} |
|
private |
◆ m_doZDC
Gaudi::Property<bool> ZDC::ZdcLEDAnalysisTool::m_doZDC {this, "doZDC", true, "Process ZDC Data?"} |
|
private |
◆ m_eventInfoKey
Initial value:{
this, "EventInfoKey", "EventInfo", "Location of the event info."}
Definition at line 145 of file ZdcLEDAnalysisTool.h.
◆ m_eventTypeKey
Initial value:{
this, "ZdcEventTypeKey", "", "ZDC Event type"}
Definition at line 148 of file ZdcLEDAnalysisTool.h.
◆ m_evtStore
◆ m_FADCCorrHG
std::array< std::array<std::unique_ptr<const TH1>,4>,2> ZDC::ZdcLEDAnalysisTool::m_FADCCorrHG |
|
private |
◆ m_FADCCorrLG
std::array< std::array<std::unique_ptr<const TH1>,4>,2> ZDC::ZdcLEDAnalysisTool::m_FADCCorrLG |
|
private |
◆ m_forceCalibRun
int ZDC::ZdcLEDAnalysisTool::m_forceCalibRun {} |
|
private |
◆ m_HGADCOverflow
unsigned int ZDC::ZdcLEDAnalysisTool::m_HGADCOverflow {4095} |
|
private |
◆ m_init
bool ZDC::ZdcLEDAnalysisTool::m_init {false} |
|
private |
◆ m_LEDBCID
std::vector<unsigned int> ZDC::ZdcLEDAnalysisTool::m_LEDBCID |
|
private |
◆ m_LEDCalreqIdx
std::vector<unsigned int> ZDC::ZdcLEDAnalysisTool::m_LEDCalreqIdx |
|
private |
◆ m_LEDNames
const std::vector<std::string> ZDC::ZdcLEDAnalysisTool::m_LEDNames = {"Blue1", "Green", "Blue2"} |
|
private |
◆ m_name
std::string ZDC::ZdcLEDAnalysisTool::m_name |
|
private |
◆ m_numSamples
unsigned int ZDC::ZdcLEDAnalysisTool::m_numSamples {24} |
|
private |
◆ m_preSample
unsigned int ZDC::ZdcLEDAnalysisTool::m_preSample {0} |
|
private |
◆ m_robBCIDKey
Initial value:{
this, "ROBBCIDKey", "", "BCID from LUCROD ROB headers"}
Definition at line 151 of file ZdcLEDAnalysisTool.h.
◆ m_runNumber
unsigned int ZDC::ZdcLEDAnalysisTool::m_runNumber {} |
|
private |
◆ m_sampleAnaEndRPD
unsigned int ZDC::ZdcLEDAnalysisTool::m_sampleAnaEndRPD {23} |
|
private |
◆ m_sampleAnaEndZDC
unsigned int ZDC::ZdcLEDAnalysisTool::m_sampleAnaEndZDC {23} |
|
private |
◆ m_sampleAnaStartRPD
unsigned int ZDC::ZdcLEDAnalysisTool::m_sampleAnaStartRPD {0} |
|
private |
◆ m_sampleAnaStartZDC
unsigned int ZDC::ZdcLEDAnalysisTool::m_sampleAnaStartZDC {0} |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_writeAux
bool ZDC::ZdcLEDAnalysisTool::m_writeAux {false} |
|
private |
◆ m_ZdcLEDADCSum
◆ m_ZdcLEDAvgTime
◆ m_ZdcLEDMaxADC
◆ m_ZdcLEDMaxSample
◆ m_ZdcLEDPresampleADC
◆ m_ZdcLEDType
◆ m_ZdcLowGainScale
float ZDC::ZdcLEDAnalysisTool::m_ZdcLowGainScale {10} |
|
private |
◆ m_zdcModuleContainerName
Gaudi::Property<std::string> ZDC::ZdcLEDAnalysisTool::m_zdcModuleContainerName {this, "ZdcModuleContainerName", "ZdcModules", "Location of ZDC processed data"} |
|
private |
◆ m_zdcModules
◆ m_zdcSumContainerName
Gaudi::Property<std::string> ZDC::ZdcLEDAnalysisTool::m_zdcSumContainerName {this, "ZdcSumContainerName", "ZdcSums", "Location of ZDC processed sums"} |
|
private |
◆ m_zdcSums
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
char data[hepevt_bytes_allocation_ATLAS]
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Class containing ZDC Module information.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
Helper class to provide constant type-safe access to aux data.
virtual void setOwner(IDataHandleHolder *o)=0
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Handle class for reading a decoration on an object.
Handle class for adding a decoration to an object.
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
@ ForwardDet
The forward detectors.
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
std::function< bool(int, std::string)> MessageFunction
std::string to_string(const DetectorType &type)
setEventNumber setTimeStamp bcid
std::shared_ptr< MessageFunction > MessageFunctionPtr
std::string PathResolverFindCalibFile(const std::string &logical_file_name)
def time(flags, cells_name, *args, **kw)
#define ATH_MSG_WARNING(x)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
setBGCode setTAP setLVL2ErrorBits bool
size_type size() const noexcept
Returns the number of elements in the collection.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>