14 #ifndef L1_TRACK_TRIGGER_STUB_FORMAT_H 15 #define L1_TRACK_TRIGGER_STUB_FORMAT_H 21 template<
typename T >
75 template<
typename T >
86 template<
typename T >
98 template<
typename T >
102 template<
typename T >
108 template<
typename T >
111 if(aTTCluster->getStackMember() == 0)
theClusterRef0 = aTTCluster;
112 else if (aTTCluster->getStackMember() == 1)
theClusterRef1 = aTTCluster;
116 template<
typename T >
119 template<
typename T >
122 template<
typename T >
125 template<
typename T >
129 template<
typename T >
132 return this->
getClusterRef(0)->findAverageLocalCoordinates().x();
135 template<
typename T >
145 template<
typename T >
149 for (
unsigned int j = 0; j !=
i; ++j )
155 output<<padding<<
"TTStub:\n";
159 unsigned int iClu = 0;
161 output <<
", cluster size: " <<
theClusterRef0->getHits().size() <<
'\n';
163 output <<
", cluster size: " <<
theClusterRef1->getHits().size() <<
'\n';
167 template<
typename T >
168 std::ostream& operator << ( std::ostream& os, const TTStub< T >& aTTStub ) {
return ( os << aTTStub.print() ); }
DetId getDetId() const
Detector element.
uint32_t rawId() const
get the raw id
edm::Ref< edmNew::DetSetVector< TTCluster< T > >, TTCluster< T > > theClusterRef0
edm::Ref< edmNew::DetSetVector< TTCluster< T > >, TTCluster< T > > theClusterRef1
void setTriggerDisplacement(int aDisplacement)
In FULL-STRIP units! (hence, not implemented herein)
double getTriggerOffset() const
In HALF-STRIP units!
double getTriggerBend() const
In FULL-STRIP units!
T const * get() const
Returns C++ pointer to the item.
Class to store the L1 Track Trigger stubs.
void setDetId(DetId aDetId)
double getTriggerDisplacement() const
Trigger information.
void setTriggerOffset(int anOffset)
In FULL-STRIP units! (hence, not implemented herein)
NOTE: this is needed even if it seems not.
void addClusterRef(edm::Ref< edmNew::DetSetVector< TTCluster< T > >, TTCluster< T > > aTTCluster)
DetId theDetId
Data members.
std::string print(unsigned int i=0) const
In FULL-STRIP units!
double getTriggerPosition() const
In HALF-STRIP units!
const edm::Ref< edmNew::DetSetVector< TTCluster< T > >, TTCluster< T > > & getClusterRef(unsigned int hitIdentifier) const
Clusters composing the Stub.