Belle II Software development
ROIid.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11#include <framework/datastore/RelationsObject.h>
12#include <vxd/dataobjects/VxdID.h>
13#include <pxd/dataobjects/PXDDigit.h>
14#include <pxd/dataobjects/PXDRawHit.h>
15#include <svd/dataobjects/SVDShaperDigit.h>
16
17namespace Belle2 {
25 class ROIid : public RelationsObject {
26
27 public:
28
30 ROIid();
31
33 ROIid(int minUid, int maxUid, int minVid, int maxVid, VxdID sensorID) :
34 m_minUid(minUid), m_maxUid(maxUid), m_minVid(minVid), m_maxVid(maxVid), m_sensorID(sensorID.getID()) {};
35
37 ROIid(int minUid, int maxUid, int minVid, int maxVid, VxdID::baseType sensorID) :
38 m_minUid(minUid), m_maxUid(maxUid), m_minVid(minVid), m_maxVid(maxVid), m_sensorID(sensorID) {};
39
41 virtual ~ROIid();
42
43 //some accessors
44 int getMinUid() const { return m_minUid; }
45 int getMaxUid() const { return m_maxUid; }
46 int getMinVid() const { return m_minVid; }
47 int getMaxVid() const { return m_maxVid; }
48 VxdID getSensorID() const { return VxdID{m_sensorID}; }
50 void setMinUid(double user_minUid) { m_minUid = user_minUid; }
51 void setMaxUid(double user_maxUid) { m_maxUid = user_maxUid; }
52 void setMinVid(double user_minVid) { m_minVid = user_minVid; }
53 void setMaxVid(double user_maxVid) { m_maxVid = user_maxVid; }
54 void setSensorID(VxdID::baseType user_sensorID) { m_sensorID = user_sensorID;}
55 void setSensorID(VxdID user_sensorID) { m_sensorID = user_sensorID.getID();}
57 bool Contains(const PXDRawHit& thePXDRawHit) const;
58 bool Contains(const PXDDigit& thePXDDigit) const;
59 bool Contains(const Belle2::SVDShaperDigit& theSVDDigit) const;
61 private:
62
70 ClassDef(ROIid, 1)
71 };
73}
The PXD digit class.
Definition: PXDDigit.h:27
The PXD Raw Hit class This class stores information about PXD Pixel hits and makes them available in ...
Definition: PXDRawHit.h:24
ROIid stores the U and V ids and the sensor id of the Region Of Interest.
Definition: ROIid.h:25
ROIid(int minUid, int maxUid, int minVid, int maxVid, VxdID sensorID)
Constructor providing the ROI information.
Definition: ROIid.h:33
VxdID::baseType m_sensorID
sensor ID
Definition: ROIid.h:67
bool Contains(const PXDRawHit &thePXDRawHit) const
true if the ROI contains the thePXDRawHit
Definition: ROIid.cc:25
void setMaxUid(double user_maxUid)
set the maximum U id of the ROI
Definition: ROIid.h:51
ROIid(int minUid, int maxUid, int minVid, int maxVid, VxdID::baseType sensorID)
Constructor providing the ROI information.
Definition: ROIid.h:37
void setSensorID(VxdID user_sensorID)
set the sensor ID of the ROI
Definition: ROIid.h:55
int m_minVid
v ID of the bottom left pixel of the ROI
Definition: ROIid.h:65
void setMinUid(double user_minUid)
set the minimum U id of the ROI
Definition: ROIid.h:50
virtual ~ROIid()
Destructor.
Definition: ROIid.cc:19
int getMaxVid() const
return the maximum V id of the ROI
Definition: ROIid.h:47
int m_minUid
u ID of the bottom left pixel of the ROI
Definition: ROIid.h:63
int getMinVid() const
return the minimum V id of the ROI
Definition: ROIid.h:46
void setMaxVid(double user_maxVid)
set the maximum V id of the ROI
Definition: ROIid.h:53
ROIid()
Default constructor.
Definition: ROIid.cc:14
VxdID getSensorID() const
return the sensor ID of the ROI
Definition: ROIid.h:48
int m_maxUid
u ID of the top right pixel of the ROI
Definition: ROIid.h:64
int m_maxVid
v ID of the top right pixel of the ROI
Definition: ROIid.h:66
int getMinUid() const
return the minimum U id of the ROI
Definition: ROIid.h:44
int getMaxUid() const
return the maximum U id of the ROI
Definition: ROIid.h:45
void setSensorID(VxdID::baseType user_sensorID)
set the sensor ID of the ROI
Definition: ROIid.h:54
void setMinVid(double user_minVid)
set the minimum V id of the ROI
Definition: ROIid.h:52
Defines interface for accessing relations of objects in StoreArray.
ClassDef(RelationsInterface, 0)
defines interface for accessing relations of objects in StoreArray.
The SVD ShaperDigit class.
Class to uniquely identify a any structure of the PXD and SVD.
Definition: VxdID.h:33
baseType getID() const
Get the unique id.
Definition: VxdID.h:94
unsigned short baseType
The base integer type for VxdID.
Definition: VxdID.h:36
int getID(const std::vector< double > &breaks, double t)
get id of the time point t
Definition: calibTools.h:60
Abstract base class for different kinds of events.