ATLAS Offline Software
PixelCluster_v1.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef XAODINDETMEASUREMENT_VERSION_PIXELCLUSTER_V1_H
6 #define XAODINDETMEASUREMENT_VERSION_PIXELCLUSTER_V1_H
7 
9 #include "Identifier/Identifier.h"
11 
12 namespace xAOD {
13 
16 
18 
19  public:
21  PixelCluster_v1() = default;
23  virtual ~PixelCluster_v1() = default;
24 
27 
29  xAOD::UncalibMeasType type() const override final {
31  }
32  unsigned int numDimensions() const override final { return 2; }
33 
37 
39  const std::vector<Identifier> rdoList() const;
40 
43  int channelsInPhi() const;
44  int channelsInEta() const;
45 
48  float widthInEta() const;
49 
53  float omegaX() const;
54  float omegaY() const;
55 
57  const std::vector<int>& totList() const;
59  int totalToT() const;
60 
62  const std::vector<float>& chargeList() const;
64  float totalCharge() const;
65 
67  float energyLoss() const;
68 
70  bool isSplit() const;
71 
73  float splitProbability1() const;
74  float splitProbability2() const;
75 
77  int lvl1a() const;
78 
80 
83 
85  void setRDOlist(const std::vector<Identifier>& rdolist);
86 
90 
93 
97  void setOmegas(float omegax, float omegay);
98 
100  void setToTlist(const std::vector<int>& tots);
101 
104 
106  void setChargelist(const std::vector<float>& charges);
107 
110 
112  void setEnergyLoss(float dEdX);
113 
115  void setIsSplit(bool isSplit);
116 
118  void setSplitProbabilities(float prob1, float prob2);
119 
121  void setLVL1A(int lvl1a);
122 
124 };
125 
126 } // namespace xAOD
129 #endif
xAOD::PixelCluster_v1::chargeList
const std::vector< float > & chargeList() const
Returns the list of charges of the channels building the cluster.
xAOD::PixelCluster_v1::~PixelCluster_v1
virtual ~PixelCluster_v1()=default
Virtual destructor.
xAOD::PixelCluster_v1::setTotalCharge
void setTotalCharge(float totalCharge)
Sets the total charge.
xAOD::PixelCluster_v1::widthInEta
float widthInEta() const
Returns the width of the cluster in phi (x) and eta (y) directions, respectively.
DATAVECTOR_BASE
DATAVECTOR_BASE(xAOD::PixelCluster_v1, xAOD::UncalibratedMeasurement_v1)
xAOD::PixelCluster_v1::rdoList
const std::vector< Identifier > rdoList() const
Returns the list of identifiers of the channels building the cluster.
Definition: PixelCluster_v1.cxx:33
xAOD::PixelCluster_v1::PixelCluster_v1
PixelCluster_v1()=default
Default constructor.
xAOD::PixelCluster_v1::setRDOlist
void setRDOlist(const std::vector< Identifier > &rdolist)
Sets the list of identifiers of the channels building the cluster.
Definition: PixelCluster_v1.cxx:25
xAOD::PixelCluster_v1::setChargelist
void setChargelist(const std::vector< float > &charges)
Sets the list of charges of the channels building the cluster.
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::PixelCluster_v1::setIsSplit
void setIsSplit(bool isSplit)
Sets if the cluster is split or not.
xAOD::PixelCluster_v1::setWidthInEta
void setWidthInEta(float widthInEta)
Sets the width of the cluster in eta (y) direction.
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
xAOD::PixelCluster_v1::numDimensions
unsigned int numDimensions() const override final
Returns the number of dimensions of the measurement.
Definition: PixelCluster_v1.h:32
xAOD::PixelCluster_v1::totalCharge
float totalCharge() const
Returns the sum of the charges of the channels building the cluster.
xAOD::PixelCluster_v1::setTotalToT
void setTotalToT(int totalToT)
Sets the total ToT.
xAOD::PixelCluster_v1::splitProbability2
float splitProbability2() const
xAOD::PixelCluster_v1::setSplitProbabilities
void setSplitProbabilities(float prob1, float prob2)
Sets the splitting probabilities for the cluster.
GeoPrimitives.h
UncalibratedMeasurement_v1.h
xAOD::UncalibratedMeasurement_v1
Definition: UncalibratedMeasurement_v1.h:13
xAOD::PixelCluster_v1::setToTlist
void setToTlist(const std::vector< int > &tots)
Sets the list of ToT of the channels building the cluster.
xAOD::PixelCluster_v1::type
xAOD::UncalibMeasType type() const override final
Returns the type of the pixel cluster as a simple enumeration.
Definition: PixelCluster_v1.h:29
xAOD::PixelCluster_v1::setLVL1A
void setLVL1A(int lvl1a)
Sets the LVL1 accept.
xAOD::PixelCluster_v1::energyLoss
float energyLoss() const
Return the energy loss in the cluster in MeV.
xAOD::PixelCluster_v1::globalPosition
ConstVectorMap< 3 > globalPosition() const
Returns the global position of the pixel cluster.
Definition: PixelCluster_v1.cxx:15
xAOD::PixelCluster_v1::setEnergyLoss
void setEnergyLoss(float dEdX)
Sets the energy loss in the cluster in MeV.
xAOD::PixelCluster_v1::totalToT
int totalToT() const
Returns the sum of the ToTs of the channels building the cluster.
xAOD::PixelCluster_v1::setOmegas
void setOmegas(float omegax, float omegay)
Sets omegax and omegay, i.e.
xAOD::PixelCluster_v1::omegaX
float omegaX() const
Returns omegax and omegay, i.e.
xAOD::PixelCluster_v1::totList
const std::vector< int > & totList() const
Returns the list of ToT of the channels building the cluster.
xAOD::PixelCluster_v1::omegaY
float omegaY() const
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
xAOD::PixelCluster_v1
Definition: PixelCluster_v1.h:17
xAOD::PixelCluster_v1::setChannelsInPhiEta
void setChannelsInPhiEta(int channelsInPhi, int channelsInEta)
Sets the dimensions of the cluster in numbers of channels in phi (x) and eta (y) directions.
Definition: PixelCluster_v1.cxx:46
xAOD::VectorMap
Eigen::Map< MeasVector< N > > VectorMap
Definition: MeasurementDefs.h:57
xAOD::UncalibMeasType
UncalibMeasType
Define the type of the uncalibrated measurement.
Definition: MeasurementDefs.h:24
xAOD::PixelCluster_v1::channelsInEta
int channelsInEta() const
xAOD::ConstVectorMap
Eigen::Map< const MeasVector< N > > ConstVectorMap
Definition: MeasurementDefs.h:59
xAOD::PixelCluster_v1::channelsInPhi
int channelsInPhi() const
Returns the dimensions of the cluster in numbers of channels in phi (x) and eta (y) directions,...
xAOD::PixelCluster_v1::splitProbability1
float splitProbability1() const
Returns the splitting probabilities for the cluster.
xAOD::UncalibMeasType::PixelClusterType
@ PixelClusterType
xAOD::PixelCluster_v1::lvl1a
int lvl1a() const
Return the LVL1 accept.
xAOD::PixelCluster_v1::isSplit
bool isSplit() const
Returns if the cluster is split or not.