|
ATLAS Offline Software
|
Go to the documentation of this file.
24 #ifndef XAOD_STANDALONE
25 declareInterface<IZdcAnalysisTool>(
this);
48 std::ifstream
fin(
file.c_str());
51 return StatusCode::FAILURE;
57 std::array<unsigned int, 4096> sideALUT =
data[
"LucrodHighGain"][
"LUTs"][
"sideA"];
59 std::array<unsigned int, 4096> sideCLUT =
data[
"LucrodHighGain"][
"LUTs"][
"sideC"];
61 std::array<unsigned int, 256> combLUT =
data[
"LucrodHighGain"][
"LUTs"][
"comb"];
80 return StatusCode::SUCCESS;
87 std::vector<float> moduleEnergy = {0., 0., 0., 0., 0., 0., 0., 0.};
90 if (!eventInfo.
isValid())
return StatusCode::FAILURE;
95 ATH_MSG_WARNING(
"ZDC decoding error found - abandoning ZdcTrigValidTool!");
96 return StatusCode::SUCCESS;
101 bool trigMatch =
false;
102 for (
const auto zdcModule : moduleContainer) {
104 if (zdcModule->zdcType() == 1)
continue;
107 if (zdcModule->zdcSide() > 0) {
108 moduleEnergy.at(zdcModule->zdcModule()) = zdcModuleAmp(*zdcModule);
112 if (zdcModule->zdcSide() < 0) {
113 moduleEnergy.at(zdcModule->zdcModule() + 4) = zdcModuleAmp(*zdcModule);
123 std::bitset<3>
bin(wordOut);
127 unsigned int wordOutCTP = 0;
136 if (not trigDecTool->isPassed(trig, TrigDefs::Physics | TrigDefs::allowResurrectedDecision))
145 trigMatch = (wordOut == wordOutCTP) ? 1 : 0;
149 for(
const auto zdc_sum : moduleSumContainer){
150 if(
m_writeAux) trigValStatus(*zdc_sum) = trigMatch;
154 return StatusCode::SUCCESS;
char data[hepevt_bytes_allocation_ATLAS]
std::shared_ptr< const ZDCTriggerSimDataBase > SimDataCPtr
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Handle class for reading a decoration on an object.
::StatusCode StatusCode
StatusCode definition for legacy code.
Handle class for adding a decoration to an object.
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 bool isValid() override final
Can the handle be successfully dereferenced?
std::string PathResolverFindCalibFile(const std::string &logical_file_name)
#define ATH_MSG_WARNING(x)
bool isEventFlagBitSet(EventFlagSubDet subDet, size_t bit) const
Check one particular bit of one particular sub-detector.
Define enumerations for event-level ZDC data.