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);
107 this->setDetId(aDetId);
108 this->setStackMember(aStackMember);
113 this->setCoordinates(this->findRows(), this->findCols());
118 template <
typename T>
129 unsigned int hitIdx)
const;
133 TTCluster<edm::Ref<edm::DetSetVector<Phase2TrackerDigi>,
Phase2TrackerDigi> >::findAverageLocalCoordinates()
const;
136 template <
typename T>
138 std::vector<int>
temp;
142 template <
typename T>
144 std::vector<int>
temp;
149 std::vector<int> TTCluster<edm::Ref<edm::DetSetVector<Phase2TrackerDigi>,
Phase2TrackerDigi> >::findRows()
const;
152 std::vector<int> TTCluster<edm::Ref<edm::DetSetVector<Phase2TrackerDigi>,
Phase2TrackerDigi> >::findCols()
const;
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)
void setDetId(DetId aDetId)
MeasurementPoint findHitLocalCoordinates(unsigned int hitIdx) const
DetId getDetId() const
Detector element.
std::vector< int > getCols() const
std::vector< int > findCols() const
std::vector< int > findRows() const
Rows and columns to get rid of Digi collection.
void setCoordinates(std::vector< int > a, std::vector< int > b)
std::vector< int > theRows
std::vector< T > theHits
Data members.
unsigned int findWidth() const
Cluster width.
std::vector< int > theCols
std::string print(unsigned int i=0) const
Information.
MeasurementPoint findAverageLocalCoordinatesCentered() const
void setHits(std::vector< T > aHits)
NOTE: this is needed even if it seems not.
MeasurementPoint findAverageLocalCoordinates() const
std::vector< T > getHits() const
Hits in the Cluster.
unsigned int getStackMember() const
unsigned int theStackMember
std::vector< int > getRows() const