ATLAS Offline Software
Loading...
Searching...
No Matches
ZdcUtils.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef HIEVENTUTILS_ZDCUTILS_H
6#define HIEVENTUTILS_ZDCUTILS_H
7
8#include <functional>
9#include <vector>
10#include <set>
11
14
15namespace ZDC
16{
17
19 {
20 int m_side;
21 int m_type;
22 int m_mod;
23 BySideTypeMod(int side, int type=0, int mod=-1) : m_side(side),m_type(type),m_mod(mod) {}
24 bool operator() (const xAOD::ZdcModule* in_side)
25 {
26 return (
27 (in_side->side()==m_side||m_side==0) &&
28 in_side->type()==m_type &&
29 (in_side->zdcModule()==m_mod || m_mod==-1));
30 }
31 };
32
36
39
40 float getAmplitudeSum(const xAOD::ZdcModuleContainer* in, std::function<bool (const xAOD::ZdcModule*)> incFunction, std::string suffix="");
41 float getAmplitudeSumG0(const xAOD::ZdcModuleContainer* in, std::function<bool (const xAOD::ZdcModule*)> incFunction, std::string suffix="");
42 float getAmplitudeSumG1(const xAOD::ZdcModuleContainer* in, std::function<bool (const xAOD::ZdcModule*)> incFunction);
43}
44#endif //ZDCUTILS
int zdcModule() const
BySideTypeMod sideC_HadPix(-1, 1, 1)
float getAmplitudeSumG0(const xAOD::ZdcModuleContainer *in, std::function< bool(const xAOD::ZdcModule *)> incFunction, std::string suffix="")
float getAmplitudeSum(const xAOD::ZdcModuleContainer *in, std::function< bool(const xAOD::ZdcModule *)> incFunction, std::string suffix="")
BySideTypeMod sideA(1)
BySideTypeMod sideA_HadPix(1, 1, 1)
float getAmplitudeSumG1(const xAOD::ZdcModuleContainer *in, std::function< bool(const xAOD::ZdcModule *)> incFunction)
BySideTypeMod sideAC(0)
BySideTypeMod sideC(-1)
ZdcModuleContainer_v1 ZdcModuleContainer
ZdcModule_v1 ZdcModule
Definition ZdcModule.h:15
BySideTypeMod(int side, int type=0, int mod=-1)
Definition ZdcUtils.h:23
bool operator()(const xAOD::ZdcModule *in_side)
Definition ZdcUtils.h:24