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 92 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 104 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 119 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 54 of file TTCluster.cc.
References dqmiolumiharvest::j, and bscTrigger_cfi::theHits.
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 83 of file TTCluster.cc.
References dqmiolumiharvest::j, and bscTrigger_cfi::theHits.
Definition at line 143 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 |
Definition at line 121 of file TTCluster.cc.
References mps_fire::i, groupFilesInBlocks::temp, and bscTrigger_cfi::theHits.
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 36 of file TTCluster.cc.
References cuy::col, relativeConstraints::empty, and bscTrigger_cfi::theHits.
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 137 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 111 of file TTCluster.cc.
References mps_fire::i, groupFilesInBlocks::temp, and bscTrigger_cfi::theHits.
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 bscTrigger_cfi::theHits.
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 57 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 40 of file TTCluster.h.
References TTCluster< T >::theHits.
Information.
Definition at line 156 of file TTCluster.h.
References mps_fire::i, dqmiolumiharvest::j, 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 52 of file TTCluster.h.
References a, b, TTCluster< T >::theCols, and TTCluster< T >::theRows.
Referenced by TTCluster< T >::TTCluster().
Definition at line 45 of file TTCluster.h.
References TTCluster< T >::theDetId.
Referenced by TTCluster< T >::TTCluster().
Definition at line 41 of file TTCluster.h.
References TTCluster< T >::theHits.
Referenced by TTCluster< T >::TTCluster().
Definition at line 47 of file TTCluster.h.
References TTCluster< T >::findCols(), TTCluster< T >::findRows(), and TTCluster< T >::theStackMember.
Referenced by TTCluster< T >::TTCluster().
Definition at line 78 of file TTCluster.h.
Referenced by TTCluster< T >::getCols(), TTCluster< T >::setCoordinates(), and TTCluster< T >::TTCluster().
Definition at line 74 of file TTCluster.h.
Referenced by TTCluster< T >::getDetId(), TTCluster< T >::print(), TTCluster< T >::setDetId(), and TTCluster< T >::TTCluster().
Data members.
Definition at line 73 of file TTCluster.h.
Referenced by TTCluster< T >::getHits(), TTCluster< T >::print(), TTCluster< T >::setHits(), and TTCluster< T >::TTCluster().
Definition at line 77 of file TTCluster.h.
Referenced by TTCluster< T >::getRows(), TTCluster< T >::setCoordinates(), and TTCluster< T >::TTCluster().
Definition at line 75 of file TTCluster.h.
Referenced by TTCluster< T >::getStackMember(), TTCluster< T >::print(), TTCluster< T >::setStackMember(), and TTCluster< T >::TTCluster().