ATLAS Offline Software
Loading...
Searching...
No Matches
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
11namespace Gep{
12
13 struct Cluster {
14
16 Cluster(const TLorentzVector& tlv):vec{tlv} {}
17
18 bool isEmptyCluster() const {return ncells == 0;}
19 float et() const {return vec.Et();}
20
21 void erase() {
22 ncells = 0;
23 time = 0.;
24 vec.SetPxPyPzE(0.,0.,0.,0.);
25 cell_id = {};
26 }
27
28 void setEtEtaPhi(double et, double eta, double phi) {
29 vec.SetPtEtaPhiM(et, eta, phi, 0.0);
30 }
31
32
33 int ncells {0};
34 float time {0};
35 TLorentzVector vec;
36 std::vector<unsigned int> cell_id;
37
38 };
39}
40
41#endif //TRIGL0GEPPERF_CUSTOMTOPOCLUSTER_H
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
std::vector< unsigned int > cell_id
void setEtEtaPhi(double et, double eta, double phi)
Cluster(const TLorentzVector &tlv)