11#include <framework/logging/Logger.h>
12#include <cdc/dataobjects/WireID.h>
13#include <framework/dataobjects/DigitBase.h>
46 B2DEBUG(29,
"Empty CDCHit Constructor called.");
64 CDCHit(
unsigned short tdcCount,
unsigned short adcCount,
65 unsigned short iSuperLayer,
unsigned short iLayer,
unsigned short iWire,
unsigned short status = 0,
unsigned short tot = 0,
66 signed short otherHitIndex = -1,
unsigned short leadingEdgeADC = 0);
69 CDCHit(
unsigned short tdcCount,
unsigned short adcCount,
const WireID& wireID,
unsigned short status = 0,
unsigned short tot = 0,
70 signed short otherHitIndex = -1,
unsigned short leadingEdgeADC = 0)
90 void setWireID(
unsigned short iSuperLayer,
unsigned short iLayer,
unsigned short iWire)
92 B2DEBUG(29,
"setWireId called with" << iSuperLayer <<
", " << iLayer <<
", " << iWire);
108 B2DEBUG(29,
"setStatus called with " << status);
130 B2DEBUG(29,
"setTDCCount called with " << tdcCount);
207 bool tOrf = (
m_status & 0x01) ?
true :
false;
214 bool tOrf = (
m_status & 0x02) ?
true :
false;
Class containing the result of the unpacker in raw data and the result of the digitizer in simulation...
void setADCCountAtLeadingEdge(unsigned short adcCount)
Setter for ADCcount at leading edge.
void setTDCCount(short tdcCount)
Setter for TDC count.
unsigned short m_status
Status of CDCHit.
DigitBase::EAppendStatus addBGDigit(const DigitBase *bg) override
Implementation of the base class function.
void set2ndHitFlag()
Setter for 2nd hit flag.
ClassDefOverride(CDCHit, 8)
ROOT Macro.
bool isAlreadyChecked() const
Getter for already-checked flag.
unsigned short m_tdcCount
TDC count in ns.
bool is2ndHit() const
Getter for 2nd hit flag.
unsigned short m_eWire
Wire encoding.
void setAlreadyCheckedFlag()
Setter for already-checked flag.
void setWireID(const WireID &wireID)
Setter for Wire ID using the WireID object directly.
unsigned short m_adcCountAtLeadingEdge
ADC count at leading edge.
signed short getOtherHitIndex() const
Getter for otherHitIndex.
CDCHit()
Empty constructor for ROOT IO.
unsigned short getICLayer() const
Getter for iCLayer (0-55).
void setOtherHitIndex(signed short index)
Setter for the other hit index.
unsigned short m_adcCount
ADC count of the integrated charge in the cell.
unsigned short getIWire() const
Getter for iWire.
CDCHit(unsigned short tdcCount, unsigned short adcCount, const WireID &wireID, unsigned short status=0, unsigned short tot=0, signed short otherHitIndex=-1, unsigned short leadingEdgeADC=0)
Constructor using the WireID object.
short getTDCCount() const
Getter for TDC count.
unsigned int getUniqueChannelID() const override
Implementation of the base class function.
void setTOT(unsigned short tot)
Setter for TOT.
unsigned short getID() const
Getter for encoded wire number.
unsigned short getStatus() const
Getter for CDCHit status.
void setADCCount(unsigned short adcCount)
Setter for ADC count.
unsigned short getADCCountAtLeadingEdge() const
Getter for adcCountAtLeadingEdge.
signed short m_otherHitIndex
Index to the other hit.
unsigned short getADCCount() const
Getter for integrated charge.
unsigned short getISuperLayer() const
Getter for iSuperLayer.
unsigned short getTOT() const
Getter for TOT.
unsigned short getILayer() const
Getter for iLayer.
void setOtherHitIndices(CDCHit *otherHit)
Setter for the other hit indices.
void setWireID(unsigned short iSuperLayer, unsigned short iLayer, unsigned short iWire)
Setter for Wire ID.
unsigned short m_tot
Time over threshod.
void setStatus(unsigned short status)
Setter for CDCHit status.
A common base for subdetector Digits.
EAppendStatus
Enum for return state of addBGDigit function.
int getArrayIndex() const
Returns this object's array index (in StoreArray), or -1 if not found.
Class to identify a wire inside the CDC.
unsigned short getICLayer() const
Getter for continuous layer numbering.
unsigned short getIWire() const
Getter for wire within the layer.
unsigned short getEWire() const
Getter for encoded wire number.
unsigned short getISuperLayer() const
Getter for Super-Layer.
unsigned short getILayer() const
Getter for layer within the Super-Layer.
Abstract base class for different kinds of events.