 |
ATLAS Offline Software
|
Go to the documentation of this file.
25 declareProperty(
"PostPulseFracThresh",
m_forcePostPulseFracThresh,
"If there is a good pulse and post-pulse and size of post-pulse as a fraction of good pulse is less than or equal to this number, ignore post-pulse");
44 std::array<std::vector<float>, 2> finalOutputCalibFactors;
47 finalConfig.nBaselineSamples = 7;
48 finalConfig.endSignalSample = 23;
49 finalConfig.pulse2ndDerivThresh = -18;
50 finalConfig.postPulseFracThresh = 0.15;
51 finalConfig.goodPulseSampleStart = 8;
52 finalConfig.goodPulseSampleStop = 10;
53 finalConfig.nominalBaseline = 100;
54 finalConfig.pileupBaselineSumThresh = 53;
55 finalConfig.pileupBaselineStdDevThresh = 2;
56 finalConfig.nNegativesAllowed = 2;
57 finalConfig.ADCOverflow = 4095;
58 finalOutputCalibFactors.at(
RPDUtils::sideC) = std::vector<float>(16, 1.0);
59 finalOutputCalibFactors.at(
RPDUtils::sideA) = std::vector<float>(16, 1.0);
107 ATH_MSG_DEBUG(
"nBaselineSamples = " << finalConfig.nBaselineSamples);
108 ATH_MSG_DEBUG(
"endSignalSample = " << finalConfig.endSignalSample);
109 ATH_MSG_DEBUG(
"pulse2ndDerivThresh = " << finalConfig.pulse2ndDerivThresh);
110 ATH_MSG_DEBUG(
"postPulseFracThresh = " << finalConfig.postPulseFracThresh);
111 ATH_MSG_DEBUG(
"goodPulseSampleStart = " << finalConfig.goodPulseSampleStart);
112 ATH_MSG_DEBUG(
"goodPulseSampleStop = " << finalConfig.goodPulseSampleStop);
113 ATH_MSG_DEBUG(
"nominalBaseline = " << finalConfig.nominalBaseline);
114 ATH_MSG_DEBUG(
"pileupBaselineSumThresh = " << finalConfig.pileupBaselineSumThresh);
115 ATH_MSG_DEBUG(
"pileupBaselineStdDevThresh = " << finalConfig.pileupBaselineStdDevThresh);
116 ATH_MSG_DEBUG(
"nNegativesAllowed = " << finalConfig.nNegativesAllowed);
150 return StatusCode::SUCCESS;
154 return std::make_shared<ZDCMsg::MessageFunction>(
155 [
this] (
int const messageZdcLevel,
const std::string&
message) ->
bool {
156 auto const messageAthenaLevel =
static_cast<MSG::Level>(messageZdcLevel);
157 bool const passesStreamOutputLevel = messageAthenaLevel >= this->
msg().level();
158 if (passesStreamOutputLevel) {
161 return passesStreamOutputLevel;
174 for (
auto const module : moduleContainer) {
194 analyzer->analyzeData();
220 for (
auto const module : moduleContainer) {
245 for (
auto const sum: moduleSumContainer) {
256 if (moduleContainer.
empty()) {
257 return StatusCode::SUCCESS;
262 return StatusCode::FAILURE;
267 return StatusCode::SUCCESS;
273 writeAOD(moduleContainer, moduleSumContainer);
275 return StatusCode::SUCCESS;
281 return StatusCode::FAILURE;
def retrieve(aClass, aKey=None)
std::string vecToString(std::vector< T > const &v)
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
unsigned constexpr int nChannels
constexpr std::initializer_list< unsigned int > sides
constexpr int ZDCSumsGlobalZDCSide
Helper class to provide constant type-safe access to aux data.
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
::StatusCode StatusCode
StatusCode definition for legacy code.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
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?
unsigned constexpr int sideA
std::shared_ptr< MessageFunction > MessageFunctionPtr
const AccessorWrapper< T > * accessor(xAOD::JetAttribute::AttributeID id)
Returns an attribute accessor corresponding to an AttributeID.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
#define ATH_MSG_WARNING(x)
unsigned constexpr int sideC
bool isEventFlagBitSet(EventFlagSubDet subDet, size_t bit) const
Check one particular bit of one particular sub-detector.
unsigned int ZDCSideToSideIndex(int const ZDCSide)
Define enumerations for event-level ZDC data.
bool empty() const noexcept
Returns true if the collection is empty.
unsigned constexpr int ZDCModuleRPDType