ATLAS Offline Software
Trigger
TrigT1
TrigGepPerf
src
Trigger/TrigT1/TrigGepPerf/src/Cluster.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TRIGL0GEPPERF_CLUSTER_H
6
#define TRIGL0GEPPERF_CLUSTER_H
7
8
#include <vector>
9
#include "TLorentzVector.h"
10
11
namespace
Gep
{
12
13
struct
Cluster
{
14
15
Cluster
() {}
16
Cluster
(
const
TLorentzVector& tlv):
vec
{tlv} {}
17
~Cluster
() {}
18
19
bool
isEmptyCluster
()
const
{
return
ncells
== 0;}
20
float
et
()
const
{
return
vec
.Et();}
21
22
void
erase
() {
23
ncells
= 0;
24
time
= 0.;
25
vec
.SetPxPyPzE(0.,0.,0.,0.);
26
cell_id
= {};
27
}
28
29
void
setEtEtaPhi
(
double
et
,
double
eta,
double
phi) {
30
vec
.SetPtEtaPhiM(
et
, eta, phi, 0.0);
31
}
32
33
34
int
ncells
{0};
35
float
time
{0};
36
TLorentzVector
vec
;
37
std::vector<unsigned int>
cell_id
;
38
39
};
40
}
41
42
#endif //TRIGL0GEPPERF_CUSTOMTOPOCLUSTER_H
Gep::Cluster::Cluster
Cluster()
Definition:
Trigger/TrigT1/TrigGepPerf/src/Cluster.h:15
et
Extra patterns decribing particle interation process.
Gep::Cluster::~Cluster
~Cluster()
Definition:
Trigger/TrigT1/TrigGepPerf/src/Cluster.h:17
Gep::Cluster::setEtEtaPhi
void setEtEtaPhi(double et, double eta, double phi)
Definition:
Trigger/TrigT1/TrigGepPerf/src/Cluster.h:29
Gep::Cluster::ncells
int ncells
Definition:
Trigger/TrigT1/TrigGepPerf/src/Cluster.h:34
Gep::Cluster
Definition:
Trigger/TrigT1/TrigGepPerf/src/Cluster.h:13
vec
std::vector< size_t > vec
Definition:
CombinationsGeneratorTest.cxx:12
Gep::Cluster::erase
void erase()
Definition:
Trigger/TrigT1/TrigGepPerf/src/Cluster.h:22
Gep
Definition:
Trigger/TrigT1/TrigGepPerf/src/Cluster.h:11
Gep::Cluster::Cluster
Cluster(const TLorentzVector &tlv)
Definition:
Trigger/TrigT1/TrigGepPerf/src/Cluster.h:16
Gep::Cluster::cell_id
std::vector< unsigned int > cell_id
Definition:
Trigger/TrigT1/TrigGepPerf/src/Cluster.h:37
Gep::Cluster::isEmptyCluster
bool isEmptyCluster() const
Definition:
Trigger/TrigT1/TrigGepPerf/src/Cluster.h:19
Gep::Cluster::et
float et() const
Definition:
Trigger/TrigT1/TrigGepPerf/src/Cluster.h:20
Gep::Cluster::vec
TLorentzVector vec
Definition:
Trigger/TrigT1/TrigGepPerf/src/Cluster.h:36
Gep::Cluster::time
float time
Definition:
Trigger/TrigT1/TrigGepPerf/src/Cluster.h:35
Generated on Thu Nov 7 2024 21:11:57 for ATLAS Offline Software by
1.8.18