14 #ifndef L1_TRACK_TRIGGER_CLUSTER_FORMAT_H 15 #define L1_TRACK_TRIGGER_CLUSTER_FORMAT_H 31 TTCluster(std::vector<T> aHits,
DetId aDetId,
unsigned int aStackMember,
bool storeLocal);
103 template <
typename T>
106 this->setHits(aHits);
108 this->setStackMember(aStackMember);
113 this->setCoordinates(this->findRows(), this->findCols());
118 template <
typename T>
129 unsigned int hitIdx)
const;
136 template <
typename T>
138 std::vector<int>
temp;
142 template <
typename T>
144 std::vector<int>
temp;
155 template <
typename T>
158 for (
unsigned int j = 0;
j !=
i; ++
j) {
163 output << padding <<
"TTCluster:\n";
165 output << padding <<
"DetId: " << theDetId.rawId() <<
'\n';
166 output << padding <<
"member: " << theStackMember <<
", cluster size: " <<
theHits.size() <<
'\n';
170 template <
typename T>
171 std::ostream& operator<<(std::ostream& os, const TTCluster<T>& aTTCluster) {
172 return (os << aTTCluster.print());
void setStackMember(unsigned int aStackMember)
DetId getDetId() const
Detector element.
void setDetId(DetId aDetId)
unsigned int findWidth() const
Cluster width.
MeasurementPoint findAverageLocalCoordinates() const
void setCoordinates(std::vector< int > a, std::vector< int > b)
std::vector< int > theRows
unsigned int getStackMember() const
std::vector< T > theHits
Data members.
std::vector< T > getHits() const
Hits in the Cluster.
std::vector< int > theCols
std::vector< int > getRows() const
void setHits(std::vector< T > aHits)
std::vector< int > getCols() const
std::vector< int > findCols() const
NOTE: this is needed even if it seems not.
std::string print(unsigned int i=0) const
Information.
MeasurementPoint findHitLocalCoordinates(unsigned int hitIdx) const
std::vector< int > findRows() const
Rows and columns to get rid of Digi collection.
MeasurementPoint findAverageLocalCoordinatesCentered() const
unsigned int theStackMember