 |
Belle II Software
release-05-02-19
|
14 #ifndef TRGCDCWire_FLAG_
15 #define TRGCDCWire_FLAG_
18 #include "CLHEP/Geometry/Vector3D.h"
19 #include "CLHEP/Geometry/Point3D.h"
20 #include "trg/trg/Signal.h"
21 #include "trg/cdc/Cell.h"
22 #include "trg/cdc/Layer.h"
24 #ifdef TRGCDC_SHORT_NAMES
25 #define TCWire TRGCDCWire
35 typedef HepGeom::Vector3D<double>
Vector3D;
37 #define WireInnerLeft 0
38 #define WireInnerRight 1
44 #define WireOuterLeft 4
46 #define WireOuterRight 5
48 #define MaxNeighbors 6
53 class TRGCDCWireHitMC;
54 class TRGCDCTrackSegment;
95 std::string
name(
void)
const override;
98 void dump(
const std::string& message = std::string(
""),
99 const std::string& prefix = std::string(
""))
const override;
104 void clear(
void)
override;
168 if (
neighbor(2) == & w)
return true;
169 else if (
neighbor(3) == & w)
return true;
177 for (
unsigned i = 0; i < 7; i++)
196 const unsigned nw = l.nCells();
216 const unsigned nw = l.nCells();
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
void clear(void) override
clears information.
const TRGCDCLayer & layer(void) const
returns a pointer to a layer.
const TRGCDCCellHit * hit(void) const
returns a pointer to a TRGCDCCellHit.
A class to represent a MC wire hit in CDC.
A class to represent a wire in CDC.
TRGSignal _signal
Trigger output.
std::string name(void) const override
returns name.
void addSignal(TRGSignal &newSignal)
set signal |= newSignal
bool consective(const TRGCDCWire &) const
returns true if a given wire is consective in a layer.
A class to represent a cell layer.
A class to represent a wire in CDC.
void dump(const std::string &message=std::string(""), const std::string &prefix=std::string("")) const override
dumps debug information.
A class to represent a wire hit in CDC.
const HepGeom::Point3D< double > & forwardPosition(void) const
returns position in forward endplate.
bool adjacent(const TRGCDCWire &) const
returns true if a given wire is adjacent.
Abstract base class for different kinds of events.
virtual ~TRGCDCWire()
Destructor.
A class to represent a wire hit in CDC.
const TRGCDCWireHit * hit(void) const
returns a pointer to a TRGCDCWireHit.
The instance of TRGCDC is a singleton.
std::vector< const TRGCDCWireHitMC * > _mcHits
MC wire hit.
int localIdForPlus(void) const
returns localId but if maxLocalId, return -1.
const TRGCDCWire * neighbor(unsigned) const
returns a pointer to a neighbor wire. This function is expensive.
int localIdForMinus(void) const
returns localId but if 0, return maxLocalId + 1.
const TRGSignal & signal(void) const override
returns an input to the trigger. This is sync'ed to 1GHz clock.
TRGCDCWire(unsigned id, unsigned localId, const TRGCDCLayer &, const HepGeom::Point3D< double > &forwardPosition, const HepGeom::Point3D< double > &backwardPosition, const TRGClock &clock)
Constructor.
HepGeom::Point3D< double > Point3D
3D point
A class to represent a digitized signal. Unit is nano second.