ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
VP1RawDataCollBase::Imp Class Reference
Collaboration diagram for VP1RawDataCollBase::Imp:

Public Member Functions

bool commonCuts (VP1RawDataHandleBase *handle)
 

Public Attributes

QString key
 
VP1ExtraSepLayerHelpersepHelper = nullptr
 
VP1Interval allowedEta
 
QList< VP1IntervalallowedPhi
 
VP1RawDataFlags::InDetPartsFlags allowedInDetParts
 
std::vector< VP1RawDataHandleBase * > handles
 
int iupdategui = 0
 

Detailed Description

Definition at line 27 of file VP1RawDataCollBase.cxx.

Member Function Documentation

◆ commonCuts()

bool VP1RawDataCollBase::Imp::commonCuts ( VP1RawDataHandleBase handle)

Definition at line 159 of file VP1RawDataCollBase.cxx.

160 {
162  if (!(handle->inInDetParts()&allowedInDetParts))
163  return false;
164 
165  bool allPhiAllowed = allowedPhi.count()==1&&allowedPhi.at(0).isAllR();
166  bool allEtaAllowed = allowedEta.isAllR();
167  if (allEtaAllowed&&allPhiAllowed)
168  return true;
169  if (allowedPhi.isEmpty()||allowedEta.isEmpty())
170  return false;
171  Amg::Vector3D p = handle->center();
172  if (!allEtaAllowed) {
173  if (!allowedEta.contains(p.eta()))
174  return false;
175  }
176  if (!allPhiAllowed) {
177  double phi(p.phi());
178  for(const VP1Interval& i : allowedPhi) {
179  if (i.contains(phi)||i.contains(phi+2*M_PI)||i.contains(phi-2*M_PI))
180  return true;
181  }
182  return false;
183  }
184  return true;
185 }

Member Data Documentation

◆ allowedEta

VP1Interval VP1RawDataCollBase::Imp::allowedEta

Definition at line 32 of file VP1RawDataCollBase.cxx.

◆ allowedInDetParts

VP1RawDataFlags::InDetPartsFlags VP1RawDataCollBase::Imp::allowedInDetParts

Definition at line 34 of file VP1RawDataCollBase.cxx.

◆ allowedPhi

QList<VP1Interval> VP1RawDataCollBase::Imp::allowedPhi

Definition at line 33 of file VP1RawDataCollBase.cxx.

◆ handles

std::vector<VP1RawDataHandleBase*> VP1RawDataCollBase::Imp::handles

Definition at line 35 of file VP1RawDataCollBase.cxx.

◆ iupdategui

int VP1RawDataCollBase::Imp::iupdategui = 0

Definition at line 36 of file VP1RawDataCollBase.cxx.

◆ key

QString VP1RawDataCollBase::Imp::key

Definition at line 29 of file VP1RawDataCollBase.cxx.

◆ sepHelper

VP1ExtraSepLayerHelper* VP1RawDataCollBase::Imp::sepHelper = nullptr

Definition at line 31 of file VP1RawDataCollBase.cxx.


The documentation for this class was generated from the following file:
VP1RawDataCollBase::Imp::allowedEta
VP1Interval allowedEta
Definition: VP1RawDataCollBase.cxx:32
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:67
M_PI
#define M_PI
Definition: ActiveFraction.h:11
VP1RawDataHandleBase::inInDetParts
virtual VP1RawDataFlags::InDetPartsFlags inInDetParts() const
Definition: VP1RawDataHandleBase.h:51
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
lumiFormat.i
int i
Definition: lumiFormat.py:85
VP1Interval::isEmpty
bool isEmpty() const
VP1Interval::contains
bool contains(const double &x) const
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
VP1RawDataCollBase::Imp::allowedInDetParts
VP1RawDataFlags::InDetPartsFlags allowedInDetParts
Definition: VP1RawDataCollBase.cxx:34
VP1Interval
Definition: VP1Interval.h:23
VP1Interval::isAllR
bool isAllR() const
VP1RawDataHandleBase::center
virtual Amg::Vector3D center()
Definition: VP1RawDataHandleBase.cxx:166
VP1RawDataFlags::All
@ All
Definition: VP1RawDataFlags.h:31
VP1RawDataCollBase::Imp::allowedPhi
QList< VP1Interval > allowedPhi
Definition: VP1RawDataCollBase.cxx:33