Belle II Software  release-05-02-19
ROIid.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2013 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Giulia Casarosa, Eugenio Paoloni *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <framework/datastore/RelationsObject.h>
14 #include <vxd/dataobjects/VxdID.h>
15 #include <pxd/dataobjects/PXDDigit.h>
16 #include <pxd/dataobjects/PXDRawHit.h>
17 #include <svd/dataobjects/SVDShaperDigit.h>
18 
19 namespace Belle2 {
27  class ROIid : public RelationsObject {
28 
29  public:
30 
33  ROIid();
34 
36  ROIid(int minUid, int maxUid, int minVid, int maxVid, VxdID sensorID) :
37  m_minUid(minUid), m_maxUid(maxUid), m_minVid(minVid), m_maxVid(maxVid), m_sensorID(sensorID) {}
38 
39 
42  virtual ~ROIid();
43 
44  //some accessors
45  int getMinUid() const { return m_minUid; }
46  int getMaxUid() const { return m_maxUid; }
47  int getMinVid() const { return m_minVid; }
48  int getMaxVid() const { return m_maxVid; }
49  VxdID getSensorID() const { return m_sensorID; }
51  void setMinUid(double user_minUid) { m_minUid = user_minUid; }
52  void setMaxUid(double user_maxUid) { m_maxUid = user_maxUid; }
53  void setMinVid(double user_minVid) { m_minVid = user_minVid; }
54  void setMaxVid(double user_maxVid) { m_maxVid = user_maxVid; }
55  void setSensorID(VxdID user_sensorID) { m_sensorID = user_sensorID;}
57  bool Contains(const Belle2::PXDRawHit& thePXDRawHit) const;
58  bool Contains(const Belle2::PXDDigit& thePXDDigit) const;
59  bool Contains(const Belle2::SVDShaperDigit& theSVDDigit) const;
61  private:
62 
63  int m_minUid;
64  int m_maxUid;
65  int m_minVid;
66  int m_maxVid;
69  ClassDef(ROIid, 1)
71  };
73 }
Belle2::ROIid::ROIid
ROIid()
Default constructor.
Definition: ROIid.cc:16
Belle2::ROIid::~ROIid
virtual ~ROIid()
Destructor.
Definition: ROIid.cc:21
Belle2::RelationsInterface::ClassDef
ClassDef(RelationsInterface, 0)
defines interface for accessing relations of objects in StoreArray.
Belle2::ROIid::m_minVid
int m_minVid
v ID of the bottom left pixel of the ROI
Definition: ROIid.h:73
Belle2::ROIid::m_sensorID
VxdID::baseType m_sensorID
sensor ID
Definition: ROIid.h:75
Belle2::PXDDigit
The PXD digit class.
Definition: PXDDigit.h:38
Belle2::SVDShaperDigit
The SVD ShaperDigit class.
Definition: SVDShaperDigit.h:46
Belle2::PXDRawHit
The PXD Raw Hit class This class stores information about PXD Pixel hits and makes them available in ...
Definition: PXDRawHit.h:36
Belle2::VxdID::baseType
unsigned short baseType
The base integer type for VxdID.
Definition: VxdID.h:46
Belle2::ROIid::m_minUid
int m_minUid
u ID of the bottom left pixel of the ROI
Definition: ROIid.h:71
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::ROIid::m_maxUid
int m_maxUid
u ID of the top right pixel of the ROI
Definition: ROIid.h:72
Belle2::ROIid::Contains
bool Contains(const Belle2::PXDRawHit &thePXDRawHit) const
true if the ROI contains the thePXDRawHit
Definition: ROIid.cc:27
Belle2::RelationsObject
RelationsInterface< TObject > RelationsObject
Provides interface for getting/adding relations to objects in StoreArrays.
Definition: RelationsObject.h:443
Belle2::ROIid::m_maxVid
int m_maxVid
v ID of the top right pixel of the ROI
Definition: ROIid.h:74