Go to the documentation of this file.
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>
172 return (os << aTTCluster.
print());
unsigned int findWidth() const
Cluster width.
std::string print(unsigned int i=0) const
Information.
void setCoordinates(std::vector< int > a, std::vector< int > b)
std::vector< int > theCols
void setDetId(DetId aDetId)
void setStackMember(unsigned int aStackMember)
MeasurementPoint findHitLocalCoordinates(unsigned int hitIdx) const
std::vector< int > getRows() const
std::ostream & operator<<(std::ostream &os, const TTCluster< T > &aTTCluster)
MeasurementPoint findAverageLocalCoordinates() const
std::vector< int > theRows
MeasurementPoint findAverageLocalCoordinatesCentered() const
unsigned int theStackMember
std::vector< int > findRows() const
Rows and columns to get rid of Digi collection.
unsigned int getStackMember() const
std::vector< T > theHits
Data members.
void setHits(std::vector< T > aHits)
DetId getDetId() const
Detector element.
std::vector< int > getCols() const
std::vector< int > findCols() const
NOTE: this is needed even if it seems not.
std::vector< T > getHits() const
Hits in the Cluster.