Belle II Software  release-06-02-00
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 
17 namespace Belle2 {
25  class ROIid : public RelationsObject {
26 
27  public:
28 
31  ROIid();
32 
34  ROIid(int minUid, int maxUid, int minVid, int maxVid, VxdID sensorID) :
35  m_minUid(minUid), m_maxUid(maxUid), m_minVid(minVid), m_maxVid(maxVid), m_sensorID(sensorID) {}
36 
37 
40  virtual ~ROIid();
41 
42  //some accessors
43  int getMinUid() const { return m_minUid; }
44  int getMaxUid() const { return m_maxUid; }
45  int getMinVid() const { return m_minVid; }
46  int getMaxVid() const { return m_maxVid; }
47  VxdID getSensorID() const { return m_sensorID; }
49  void setMinUid(double user_minUid) { m_minUid = user_minUid; }
50  void setMaxUid(double user_maxUid) { m_maxUid = user_maxUid; }
51  void setMinVid(double user_minVid) { m_minVid = user_minVid; }
52  void setMaxVid(double user_maxVid) { m_maxVid = user_maxVid; }
53  void setSensorID(VxdID user_sensorID) { m_sensorID = user_sensorID;}
55  bool Contains(const Belle2::PXDRawHit& thePXDRawHit) const;
56  bool Contains(const Belle2::PXDDigit& thePXDDigit) const;
57  bool Contains(const Belle2::SVDShaperDigit& theSVDDigit) const;
59  private:
60 
61  int m_minUid;
62  int m_maxUid;
63  int m_minVid;
64  int m_maxVid;
68  ClassDef(ROIid, 1)
69  };
71 }
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:34
VxdID::baseType m_sensorID
sensor ID
Definition: ROIid.h:65
void setMaxUid(double user_maxUid)
set the maximum U id of the ROI
Definition: ROIid.h:50
void setSensorID(VxdID user_sensorID)
set the sensor ID of the ROI
Definition: ROIid.h:53
int m_minVid
v ID of the bottom left pixel of the ROI
Definition: ROIid.h:63
bool Contains(const Belle2::PXDRawHit &thePXDRawHit) const
true if the ROI contains the thePXDRawHit
Definition: ROIid.cc:25
void setMinUid(double user_minUid)
set the minimum U id of the ROI
Definition: ROIid.h:49
virtual ~ROIid()
Destructor.
Definition: ROIid.cc:19
int getMaxVid() const
return the maximum V id of the ROI
Definition: ROIid.h:46
int m_minUid
u ID of the bottom left pixel of the ROI
Definition: ROIid.h:61
int getMinVid() const
return the minimum V id of the ROI
Definition: ROIid.h:45
void setMaxVid(double user_maxVid)
set the maximum V id of the ROI
Definition: ROIid.h:52
ROIid()
Default constructor.
Definition: ROIid.cc:14
VxdID getSensorID() const
return the sensor ID of the ROI
Definition: ROIid.h:47
int m_maxUid
u ID of the top right pixel of the ROI
Definition: ROIid.h:62
int m_maxVid
v ID of the top right pixel of the ROI
Definition: ROIid.h:64
int getMinUid() const
return the minimum U id of the ROI
Definition: ROIid.h:43
int getMaxUid() const
return the maximum U id of the ROI
Definition: ROIid.h:44
void setMinVid(double user_minVid)
set the minimum V id of the ROI
Definition: ROIid.h:51
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
unsigned short baseType
The base integer type for VxdID.
Definition: VxdID.h:36
Abstract base class for different kinds of events.