ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
HeavyIonPhys
HIEventUtils
HIEventUtils
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
12
#include "
xAODForward/ZdcModule.h
"
13
#include "
xAODForward/ZdcModuleContainer.h
"
14
15
namespace
ZDC
16
{
17
18
struct
BySideTypeMod
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
33
BySideTypeMod
sideA
(1);
34
BySideTypeMod
sideC
(-1);
35
BySideTypeMod
sideAC
(0);
36
37
BySideTypeMod
sideA_HadPix
(1,1,1);
38
BySideTypeMod
sideC_HadPix
(-1,1,1);
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
ZdcModuleContainer.h
ZdcModule.h
xAOD::ZdcModule_v1::zdcModule
int zdcModule() const
ZDC
Definition
LISAnalysisTool.cxx:19
ZDC::sideC_HadPix
BySideTypeMod sideC_HadPix(-1, 1, 1)
ZDC::getAmplitudeSumG0
float getAmplitudeSumG0(const xAOD::ZdcModuleContainer *in, std::function< bool(const xAOD::ZdcModule *)> incFunction, std::string suffix="")
ZDC::getAmplitudeSum
float getAmplitudeSum(const xAOD::ZdcModuleContainer *in, std::function< bool(const xAOD::ZdcModule *)> incFunction, std::string suffix="")
ZDC::sideA
BySideTypeMod sideA(1)
ZDC::sideA_HadPix
BySideTypeMod sideA_HadPix(1, 1, 1)
ZDC::getAmplitudeSumG1
float getAmplitudeSumG1(const xAOD::ZdcModuleContainer *in, std::function< bool(const xAOD::ZdcModule *)> incFunction)
ZDC::sideAC
BySideTypeMod sideAC(0)
ZDC::sideC
BySideTypeMod sideC(-1)
xAOD::ZdcModuleContainer
ZdcModuleContainer_v1 ZdcModuleContainer
Definition
ZdcModuleContainer.h:18
xAOD::ZdcModule
ZdcModule_v1 ZdcModule
Definition
ZdcModule.h:15
type
ZDC::BySideTypeMod
Definition
ZdcUtils.h:19
ZDC::BySideTypeMod::m_mod
int m_mod
Definition
ZdcUtils.h:22
ZDC::BySideTypeMod::BySideTypeMod
BySideTypeMod(int side, int type=0, int mod=-1)
Definition
ZdcUtils.h:23
ZDC::BySideTypeMod::operator()
bool operator()(const xAOD::ZdcModule *in_side)
Definition
ZdcUtils.h:24
ZDC::BySideTypeMod::m_side
int m_side
Definition
ZdcUtils.h:20
ZDC::BySideTypeMod::m_type
int m_type
Definition
ZdcUtils.h:21
Generated on
for ATLAS Offline Software by
1.17.0