13#define TRG_SHORT_NAMES
14#define TRGCDC_SHORT_NAMES
17#include "trg/cdc/Wire.h"
18#include "trg/cdc/WireHit.h"
32 unsigned indexCDCSimHit,
33 unsigned indexMCParticle,
37 float driftRightError,
51 _iCDCSimHit(indexCDCSimHit)
69 if ((* a)->cell().id() > (* b)->cell().id())
71 else if ((* a)->cell().id() == (* b)->cell().id())
85 TRGCDCWireHit::operator
new (
size_t size)
87 void* p = malloc(size);
98 TRGCDCWireHit::operator
delete (
void* t)
100 for (vector<TRGCDCWireHit*>::iterator it = _all.begin();
A class to represent a wire in CDC.
A class to represent a wire hit in CDC.
A class to represent a wire in CDC.
virtual const TRGCDCCell & cell(void) const
returns a pointer to a TRGCDCWire.
static int sortByWireId(const TRGCDCWireHit **a, const TRGCDCWireHit **b)
Sort function. This will be removed.
static std::vector< TRGCDCWireHit * > _all
Keeps all TRGCDCWireHit created by new().
const TRGCDCWire & wire(void) const
returns a pointer to a TRGCDCWire.
TRGCDCWireHit(const TRGCDCWire &, unsigned indexCDCHit=0, unsigned indexCDCSimHit=0, unsigned indexMCParticle=0, float driftLeft=0, float driftLeftError=0, float driftRight=0, float driftRightError=0, int mcLRflag=1, float fudgeFacgtor=1)
Constructor.
static void removeAll(void)
destructs all TRGCDCCellHit objects. (Called by TRGCDC)
virtual ~TRGCDCWireHit()
Destructor.
Abstract base class for different kinds of events.