 |
Belle II Software
release-05-02-19
|
14 #ifndef TRGCDCCell_FLAG_
15 #define TRGCDCCell_FLAG_
17 #include "CLHEP/Geometry/Vector3D.h"
18 #include "CLHEP/Geometry/Point3D.h"
19 #include "trg/trg/Signal.h"
20 #include "trg/cdc/Layer.h"
22 #ifdef TRGCDC_SHORT_NAMES
23 #define TCCell TRGCDCCell
57 unsigned id(
void)
const;
81 unsigned state(
void)
const;
84 bool axial(
void)
const;
96 virtual std::string
name(
void)
const = 0;
99 virtual void dump(
const std::string& message = std::string(
""),
100 const std::string& prefix = std::string(
""))
const;
135 virtual bool hasMember(
const std::string& a)
const;
153 unsigned state(
unsigned newState);
156 virtual void clear(
void);
284 std::cout <<
"TRGCDCCell::innerPart ... position not defined" << std::endl;
285 if (
layerId() < 14)
return true;
293 std::cout <<
"TRGCDCCell::mainPart ... position not defined" << std::endl;
294 if (
layerId() > 13)
return true;
const HepGeom::Point3D< double > & backwardPosition(void) const
returns position in backward endplate.
unsigned localId(void) const
returns local id in a layer.
A class to represent a digitized signal. Unit is nano second.
HepGeom::Vector3D< double > Vector3D
3D Vector
virtual void dump(const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
dumps debug information.
const TRGCDCLayer & layer(void) const
returns a pointer to a layer.
unsigned state(void) const
returns state.
const TRGCDCCellHit * hit(void) const
returns a pointer to a TRGCDCCellHit.
unsigned _state
Status in this event.
unsigned axialStereoSuperLayerId(void) const
returns id of axial or stereo super layer id.
const HepGeom::Point3D< double > _xyPosition
Wire center(?) position.
virtual ~TRGCDCCell()
Destructor.
virtual const TRGSignal & signal(void) const =0
returns trigger output. Null will returned if no signal.
unsigned localLayerId(void) const
returns local layer id in a super layer.
bool mainPart(void) const
returns true if this wire is in the main part.
A class to represent a cell layer.
int localIdDifference(const TRGCDCCell &) const
returns local id difference.
const TRGCDCCellHit * _hit
Cell hit.
A class to represent a wire in CDC.
A class to represent a wire hit in CDC.
const HepGeom::Point3D< double > & forwardPosition(void) const
returns position in forward endplate.
virtual bool hasMember(const std::string &a) const
returns true this has member named a.
const unsigned _localId
Local ID.
bool axial(void) const
returns true if this wire is in an axial layer.
Abstract base class for different kinds of events.
virtual std::string name(void) const =0
returns name.
float cellSize(void) const
calculates position and direction vector with sag correction.
unsigned superLayerId(void) const
returns super layer id.
unsigned axialStereoLayerId(void) const
returns id of axial or stereo layer id.
const HepGeom::Point3D< double > _forwardPosition
Wire forward position.
unsigned id(void) const
returns id.
The instance of TRGCDC is a singleton.
bool stereo(void) const
returns true if this wire is in a stereo layer.
const HepGeom::Point3D< double > _backwardPosition
Wire backward position.
const HepGeom::Point3D< double > & xyPosition(void) const
returns middle position of a wire. z componet is 0.
const Vector3D & direction(void) const
returns direction vector of the wire.
virtual void clear(void)
clears information.
unsigned layerId(void) const
returns layer id.
const Vector3D _direction
Direction vector.
const TRGCDCLayer & _layer
Layer.
HepGeom::Point3D< double > Point3D
3D point
TRGCDCCell(unsigned id, unsigned localId, const TRGCDCLayer &layer, const HepGeom::Point3D< double > &forwardPosition, const HepGeom::Point3D< double > &backwardPosition)
Constructor.
bool innerPart(void) const
returns true if this wire is in the inner part.