14 prim_.push_back(std::make_shared<DTPrimitive>());
24 lateralComb_[
i] =
LEFT;
26 setDriftDistance(0,
i);
31 if (nprimUp > 0 && nprimDown > 0)
36 nprimitivesUp_ = nprimUp;
37 nprimitivesDown_ = nprimDown;
49 for (
short i = 0;
i < nprimitives_;
i++) {
50 lateralComb_[
i] =
LEFT;
51 prim_.push_back(std::make_shared<DTPrimitive>(ptrPrimitive[
i]));
54 setDriftDistance(0,
i);
62 if (nprimUp > 0 && nprimDown > 0)
67 nprimitivesUp_ = nprimUp;
68 nprimitivesDown_ = nprimDown;
80 for (
short i = 0;
i < nprimitives_;
i++) {
81 lateralComb_[
i] =
LEFT;
82 prim_.push_back(std::make_shared<DTPrimitive>(ptrPrimitive[
i]));
85 setDriftDistance(0,
i);
93 setRawId(ptr->rawId());
96 setQuality(ptr->quality());
97 setBaseChannelId(ptr->baseChannelId());
98 setCellHorizontalLayout(ptr->cellLayout());
99 setNPrimitives(ptr->nprimitives());
101 setLateralComb(ptr->lateralComb());
102 setBxTimeValue(ptr->bxTimeValue());
103 setTanPhi(ptr->tanPhi());
104 setHorizPos(ptr->horizPos());
105 setChiSquare(ptr->chiSquare());
107 for (
int i = 0;
i < ptr->nprimitives();
i++) {
108 prim_.push_back(ptr->primitive(
i));
110 setXCoorCell(ptr->xCoorCell(
i),
i);
111 setDriftDistance(ptr->xDriftDistance(
i),
i);
112 setXWirePos(ptr->xWirePos(
i),
i);
113 setZWirePos(ptr->zWirePos(
i),
i);
114 setTWireTDC(ptr->tWireTDC(
i),
i);
123 std::cout <<
"NULL 'Primitive'." << std::endl;
162 short countValidHits = 0;
163 for (
int i = 0;
i < this->nprimitives();
i++) {
170 if (countValidHits >= 3)
176 return (prim_[0]->isValidTime() && prim_[1]->isValidTime() && prim_[2]->isValidTime() && prim_[3]->isValidTime());
183 bxNumId_ =
int(auxBxId);
184 if ((auxBxId -
int(auxBxId)) >= 0.5)
185 bxNumId_ =
int(bxNumId_ + 1);
189 for (
int i = 0;
i < nprimitives_;
i++) {
192 lateralComb_[
i] = this->
primitive(
i)->laterality();
198 lateralComb_[
i] = latComb[
i];
203 lateralComb_[
i] = latComb[
i];