NOTE: this is needed even if it seems not. More...
#include <TTCluster.h>
Public Member Functions | |
template<> | |
MeasurementPoint | findAverageLocalCoordinates () const |
Unweighted average local cluster coordinates. More... | |
MeasurementPoint | findAverageLocalCoordinates () const |
template<> | |
MeasurementPoint | findAverageLocalCoordinates () const |
MeasurementPoint | findAverageLocalCoordinatesCentered () const |
template<> | |
MeasurementPoint | findAverageLocalCoordinatesCentered () const |
Unweighted average local cluster coordinates, using center of the strips. More... | |
std::vector< int > | findCols () const |
template<> | |
std::vector< int > | findCols () const |
template<> | |
std::vector< int > | findCols () const |
template<> | |
MeasurementPoint | findHitLocalCoordinates (unsigned int hitIdx) const |
Get hit local coordinates. More... | |
MeasurementPoint | findHitLocalCoordinates (unsigned int hitIdx) const |
template<> | |
MeasurementPoint | findHitLocalCoordinates (unsigned int hitIdx) const |
std::vector< int > | findRows () const |
Rows and columns to get rid of Digi collection. More... | |
template<> | |
std::vector< int > | findRows () const |
Coordinates stored locally. More... | |
template<> | |
std::vector< int > | findRows () const |
template<> | |
unsigned int | findWidth () const |
Implementation of methods of TTCluster. More... | |
unsigned int | findWidth () const |
Cluster width. More... | |
template<> | |
unsigned int | findWidth () const |
Cluster width. More... | |
std::vector< int > | getCols () const |
DetId | getDetId () const |
Detector element. More... | |
std::vector< T > | getHits () const |
Hits in the Cluster. More... | |
std::vector< int > | getRows () const |
unsigned int | getStackMember () const |
std::string | print (unsigned int i=0) const |
Information. More... | |
void | setCoordinates (std::vector< int > a, std::vector< int > b) |
void | setDetId (DetId aDetId) |
void | setHits (std::vector< T > aHits) |
void | setStackMember (unsigned int aStackMember) |
TTCluster () | |
Constructors. More... | |
TTCluster (std::vector< T > aHits, DetId aDetId, unsigned int aStackMember, bool storeLocal) | |
Another Constructor. More... | |
~TTCluster () | |
Destructor. More... | |
Private Attributes | |
std::vector< int > | theCols |
DetId | theDetId |
std::vector< T > | theHits |
Data members. More... | |
std::vector< int > | theRows |
unsigned int | theStackMember |
NOTE: this is needed even if it seems not.
Class to store the L1 Track Trigger clusters.
After moving from SimDataFormats to DataFormats, the template structure of the class was maintained in order to accomodate any types other than Phase2TrackerDigis in case there is such a need in the future.
Definition at line 27 of file TTCluster.h.
Constructors.
Close class.
Implementation of methods
Here, in the header file, the methods which do not depend on the specific type <T> that can fit the template. Other methods, with type-specific features, are implemented in the source file.Default Constructor NOTE: to be used with setSomething(...) methods
Set default data members
Definition at line 93 of file TTCluster.h.
References TTCluster< T >::theCols, TTCluster< T >::theDetId, TTCluster< T >::theHits, TTCluster< T >::theRows, and TTCluster< T >::theStackMember.
TTCluster< T >::TTCluster | ( | std::vector< T > | aHits, |
DetId | aDetId, | ||
unsigned int | aStackMember, | ||
bool | storeLocal | ||
) |
Another Constructor.
Set data members
Definition at line 106 of file TTCluster.h.
References TTCluster< T >::findCols(), TTCluster< T >::findRows(), TTCluster< T >::setCoordinates(), TTCluster< T >::setDetId(), TTCluster< T >::setHits(), TTCluster< T >::setStackMember(), TTCluster< T >::theCols, and TTCluster< T >::theRows.
Destructor.
Definition at line 126 of file TTCluster.h.
References TTCluster< T >::findAverageLocalCoordinates(), TTCluster< T >::findHitLocalCoordinates(), and TTCluster< T >::findWidth().
MeasurementPoint TTCluster< edm::Ref< edm::DetSetVector< Phase2TrackerDigi >, Phase2TrackerDigi > >::findAverageLocalCoordinates | ( | ) | const |
Unweighted average local cluster coordinates.
Loop over the hits and calculate the average coordinates
Definition at line 61 of file TTCluster.cc.
MeasurementPoint TTCluster< T >::findAverageLocalCoordinates | ( | ) | const |
Referenced by TTCluster< T >::getCols(), and TTCluster< T >::~TTCluster().
MeasurementPoint TTCluster< edm::Ref< edm::DetSetVector< Phase2TrackerDigi >, Phase2TrackerDigi > >::findAverageLocalCoordinates | ( | ) | const |
MeasurementPoint TTCluster< T >::findAverageLocalCoordinatesCentered | ( | ) | const |
Referenced by TTCluster< T >::getCols().
MeasurementPoint TTCluster< edm::Ref< edm::DetSetVector< Phase2TrackerDigi >, Phase2TrackerDigi > >::findAverageLocalCoordinatesCentered | ( | ) | const |
Unweighted average local cluster coordinates, using center of the strips.
Loop over the hits and calculate the average coordinates
Definition at line 98 of file TTCluster.cc.
Definition at line 149 of file TTCluster.h.
References TTCluster< T >::findRows(), and groupFilesInBlocks::temp.
Referenced by TTCluster< T >::setStackMember(), and TTCluster< T >::TTCluster().
std::vector< int > TTCluster< edm::Ref< edm::DetSetVector< Phase2TrackerDigi >, Phase2TrackerDigi > >::findCols | ( | ) | const |
std::vector< int > TTCluster< edm::Ref< edm::DetSetVector< Phase2TrackerDigi >, Phase2TrackerDigi > >::findCols | ( | ) | const |
MeasurementPoint TTCluster< edm::Ref< edm::DetSetVector< Phase2TrackerDigi >, Phase2TrackerDigi > >::findHitLocalCoordinates | ( | unsigned int | hitIdx | ) | const |
Get hit local coordinates.
NOTE in this case, DO NOT add 0.5 to get the center of the pixel
Definition at line 41 of file TTCluster.cc.
References cuy::col, and relativeConstraints::empty.
MeasurementPoint TTCluster< T >::findHitLocalCoordinates | ( | unsigned int | hitIdx | ) | const |
Single hit coordinates Average cluster coordinates
Referenced by TTCluster< T >::getCols(), and TTCluster< T >::~TTCluster().
MeasurementPoint TTCluster< edm::Ref< edm::DetSetVector< Phase2TrackerDigi >, Phase2TrackerDigi > >::findHitLocalCoordinates | ( | unsigned int | hitIdx | ) | const |
Single hit coordinates Average cluster coordinates
Rows and columns to get rid of Digi collection.
Operations with coordinates stored locally.
Definition at line 142 of file TTCluster.h.
References groupFilesInBlocks::temp.
Referenced by TTCluster< T >::findCols(), TTCluster< T >::setStackMember(), and TTCluster< T >::TTCluster().
std::vector< int > TTCluster< edm::Ref< edm::DetSetVector< Phase2TrackerDigi >, Phase2TrackerDigi > >::findRows | ( | ) | const |
Coordinates stored locally.
Definition at line 135 of file TTCluster.cc.
References mps_fire::i, and groupFilesInBlocks::temp.
std::vector< int > TTCluster< edm::Ref< edm::DetSetVector< Phase2TrackerDigi >, Phase2TrackerDigi > >::findRows | ( | ) | const |
unsigned int TTCluster< edm::Ref< edm::DetSetVector< Phase2TrackerDigi >, Phase2TrackerDigi > >::findWidth | ( | ) | const |
Implementation of methods of TTCluster.
Here, in the source file, the methods which do depend on the specific type <T> that can fit the template.
this is only the actual size in RPhi
This takes care of 1-Pixel clusters
Definition at line 15 of file TTCluster.cc.
References funct::abs(), mps_fire::i, and Phase2TrackerDigi::row().
Cluster width.
Referenced by TTCluster< T >::getCols(), and TTCluster< T >::~TTCluster().
unsigned int TTCluster< edm::Ref< edm::DetSetVector< Phase2TrackerDigi >, Phase2TrackerDigi > >::findWidth | ( | ) | const |
Cluster width.
Definition at line 58 of file TTCluster.h.
References TTCluster< T >::findAverageLocalCoordinates(), TTCluster< T >::findAverageLocalCoordinatesCentered(), TTCluster< T >::findHitLocalCoordinates(), TTCluster< T >::findWidth(), mps_fire::i, TTCluster< T >::print(), AlCaHLTBitMon_QueryRunRegistry::string, and TTCluster< T >::theCols.
Hits in the Cluster.
Data members: getABC( ... ) Helper methods: findABC( ... )
Definition at line 44 of file TTCluster.h.
References TTCluster< T >::theHits.
Information.
Definition at line 163 of file TTCluster.h.
References mps_fire::i, convertSQLitetoXML_cfg::output, DetId::rawId(), AlCaHLTBitMon_QueryRunRegistry::string, TTCluster< T >::theDetId, TTCluster< T >::theHits, and TTCluster< T >::theStackMember.
Referenced by TTCluster< T >::getCols().
|
inline |
Definition at line 56 of file TTCluster.h.
References a, b, TTCluster< T >::theCols, and TTCluster< T >::theRows.
Referenced by TTCluster< T >::TTCluster().
Definition at line 49 of file TTCluster.h.
References TTCluster< T >::theDetId.
Referenced by TTCluster< T >::TTCluster().
Definition at line 45 of file TTCluster.h.
References TTCluster< T >::theHits.
Referenced by TTCluster< T >::TTCluster().
Definition at line 51 of file TTCluster.h.
References TTCluster< T >::findCols(), TTCluster< T >::findRows(), and TTCluster< T >::theStackMember.
Referenced by TTCluster< T >::TTCluster().
Definition at line 79 of file TTCluster.h.
Referenced by TTCluster< T >::getCols(), TTCluster< T >::setCoordinates(), and TTCluster< T >::TTCluster().
Definition at line 75 of file TTCluster.h.
Referenced by TTCluster< T >::getDetId(), TTCluster< T >::print(), TTCluster< T >::setDetId(), and TTCluster< T >::TTCluster().
Data members.
Definition at line 74 of file TTCluster.h.
Referenced by TTCluster< T >::getHits(), TTCluster< T >::print(), TTCluster< T >::setHits(), and TTCluster< T >::TTCluster().
Definition at line 78 of file TTCluster.h.
Referenced by TTCluster< T >::getRows(), TTCluster< T >::setCoordinates(), and TTCluster< T >::TTCluster().
Definition at line 76 of file TTCluster.h.
Referenced by TTCluster< T >::getStackMember(), TTCluster< T >::print(), TTCluster< T >::setStackMember(), and TTCluster< T >::TTCluster().