ATLAS Offline Software
Loading...
Searching...
No Matches
VP1RawDataCollBase::Imp Class Reference
Collaboration diagram for VP1RawDataCollBase::Imp:

Public Member Functions

bool commonCuts (VP1RawDataHandleBase *handle)

Public Attributes

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

Detailed Description

Definition at line 29 of file VP1RawDataCollBase.cxx.

Member Function Documentation

◆ commonCuts()

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

Definition at line 161 of file VP1RawDataCollBase.cxx.

162{
164 if (!(handle->inInDetParts()&allowedInDetParts))
165 return false;
166
167 bool allPhiAllowed = allowedPhi.count()==1&&allowedPhi.at(0).isAllR();
168 bool allEtaAllowed = allowedEta.isAllR();
169 if (allEtaAllowed&&allPhiAllowed)
170 return true;
171 if (allowedPhi.isEmpty()||allowedEta.isEmpty())
172 return false;
173 Amg::Vector3D p = handle->center();
174 if (!allEtaAllowed) {
175 if (!allowedEta.contains(p.eta()))
176 return false;
177 }
178 if (!allPhiAllowed) {
179 double phi(p.phi());
180 for(const VP1Interval& i : allowedPhi) {
181 if (i.contains(phi)||i.contains(phi+2*M_PI)||i.contains(phi-2*M_PI))
182 return true;
183 }
184 return false;
185 }
186 return true;
187}
#define M_PI
Scalar phi() const
phi method
QList< VP1Interval > allowedPhi
VP1RawDataFlags::InDetPartsFlags allowedInDetParts
Eigen::Matrix< double, 3, 1 > Vector3D
virtual void handle(const Incident &inc)
Handle end of run incidents to save the metadata at that point.

Member Data Documentation

◆ allowedEta

VP1Interval VP1RawDataCollBase::Imp::allowedEta

Definition at line 34 of file VP1RawDataCollBase.cxx.

◆ allowedInDetParts

VP1RawDataFlags::InDetPartsFlags VP1RawDataCollBase::Imp::allowedInDetParts

Definition at line 36 of file VP1RawDataCollBase.cxx.

◆ allowedPhi

QList<VP1Interval> VP1RawDataCollBase::Imp::allowedPhi

Definition at line 35 of file VP1RawDataCollBase.cxx.

◆ handles

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

Definition at line 37 of file VP1RawDataCollBase.cxx.

◆ iupdategui

int VP1RawDataCollBase::Imp::iupdategui = 0

Definition at line 38 of file VP1RawDataCollBase.cxx.

◆ key

QString VP1RawDataCollBase::Imp::key

Definition at line 31 of file VP1RawDataCollBase.cxx.

◆ sepHelper

VP1ExtraSepLayerHelper* VP1RawDataCollBase::Imp::sepHelper = nullptr

Definition at line 33 of file VP1RawDataCollBase.cxx.


The documentation for this class was generated from the following file: