13#define TRG_SHORT_NAMES
14#define TRGCDC_SHORT_NAMES
17#include "trg/cdc/Segment.h"
18#include "trg/cdc/SegmentHit.h"
19#include "trg/cdc/Wire.h"
20#include "trg/cdc/WireHit.h"
43 w.priority().hit()->iCDCHit(),
44 w.priority().hit()->iCDCSimHit(),
45 w.priority().hit()->iMCParticle(),
46 w.priority().hit()->drift(0),
47 w.priority().hit()->dDrift(0),
48 w.priority().hit()->drift(1),
49 w.priority().hit()->dDrift(1),
50 w.priority().hit()->mcLR())
62 if ((* a)->cell().id() > (* b)->cell().id())
64 else if ((* a)->cell().id() == (* b)->cell().id())
72 const std::string& prefix)
const
74 TCCHit::dump(message, prefix);
91 TRGCDCSegmentHit::operator
new (
size_t size)
93 void* p = malloc(size);
104 TRGCDCSegmentHit::operator
delete (
void* t)
106 for (vector<TRGCDCSegmentHit*>::iterator it = _all.begin();
A class to represent a track segment hit in CDC.
A class to represent a wire in CDC.
virtual const TRGCDCCell & cell(void) const
returns a pointer to a TRGCDCWire.
TRGCDCSegmentHit(const TRGCDCSegment &)
Constructor.
static void removeAll(void)
destructs all TRGCDCCellHit objects. (Called by TRGCDC)
static std::vector< TRGCDCSegmentHit * > _all
Keeps all TRGCDCSegmentHit created by new().
virtual void dump(const std::string &message=std::string(""), const std::string &prefix=std::string("")) const override
dumps debug information.
virtual ~TRGCDCSegmentHit()
Destructor.
const TRGCDCSegment & segment(void) const
returns a pointer to a track segment.
static int sortById(const TRGCDCSegmentHit **a, const TRGCDCSegmentHit **b)
Sorting funnction.
Abstract base class for different kinds of events.