13 #ifndef L1_TRACK_TRIGGER_TRACK_FORMAT_H 14 #define L1_TRACK_TRIGGER_TRACK_FORMAT_H 22 template<
typename T >
27 std::vector< edm::Ref< edmNew::DetSetVector< TTStub< T > >,
TTStub< T > > >
62 double getRInv(
unsigned int nPar=4)
const;
63 void setRInv(
double aRInv,
unsigned int nPar=5 );
71 void setSector(
unsigned int aSector ) { theSector = aSector; }
73 void setWedge(
unsigned int aWedge ) { theWedge = aWedge; }
76 double getChi2(
unsigned int nPar=4)
const;
78 void setChi2(
double aChi2,
unsigned int nPar=5 );
115 template<
typename T >
137 template<
typename T >
158 template<
typename T >
161 template<
typename T >
182 template<
typename T >
202 template<
typename T >
222 template<
typename T >
240 template<
typename T >
259 template<
typename T >
278 template<
typename T >
300 template<
typename T >
321 template<
typename T >
341 template<
typename T >
363 template<
typename T >
386 template<
typename T>
390 std::vector< edm::Ref< edmNew::DetSetVector< TTStub< T > >,
TTStub< T > > > otherStubRefs = aTrack.
getStubRefs();
393 unsigned int nShared = 0;
394 for (
unsigned int i = 0;
i <
theStubRefs.size() && nShared < 2;
i++)
396 for (
unsigned int j = 0; j < otherStubRefs.size() && nShared < 2; j++)
406 return ( nShared > 1 );
410 template<
typename T >
427 template<
typename T >
431 for (
unsigned int j = 0; j !=
i; ++j )
437 output<<padding<<
"TTTrack:\n";
440 unsigned int iStub = 0;
442 typename std::vector< edm::Ref< edmNew::DetSetVector< TTStub< T > >,
TTStub< T > > >::const_iterator stubIter;
447 output << padding <<
"stub: " << iStub++ <<
", DetId: " << ((*stubIter)->getDetId()).rawId() <<
'\n';
454 template<
typename T >
457 if (!(nPar==4||nPar==5)) {
458 edm::LogError(
"TTTrack") <<
" A getter method was called with nPar = "<< nPar <<
459 " but only authorized values are 4 and 5" << std::endl;
464 edm::LogError(
"TTTrack") <<
" You try to get info with nPar="<<nPar<<
" but no valid 4 parameter fit info is present, use 5 instead"<<std::endl;
469 edm::LogError(
"TTTrack") <<
" You try to get info with nPar="<<nPar<<
" but no valid 5 parameter fit info is present, use 4 instead"<<std::endl;
476 template<
typename T >
479 if (!(nPar==4||nPar==5)) {
480 edm::LogError(
"TTTrack") <<
" A setter method is called with nPar="<<nPar<<
" only possible values are 4/5" << std::endl;
488 template<
typename T >
489 std::ostream& operator << ( std::ostream& os, const TTTrack< T >& aTTTrack ) {
return ( os << aTTTrack.print() ); }
void setChi2(double aChi2, unsigned int nPar=5)
Chi2.
GlobalPoint getPOCA(unsigned int nPar=4) const
POCA.
std::string print(unsigned int i=0) const
Information.
double getChi2(unsigned int nPar=4) const
Chi2.
GlobalVector getMomentum(unsigned int nPar=4) const
Track momentum.
Global3DPoint GlobalPoint
bool hasStubInBarrel(unsigned int aLayer) const
Additional quality criteria.
GlobalVector theMomentum5Par
void setPOCA(GlobalPoint aPOCA, unsigned int nPar=5)
void setRInv(double aRInv, unsigned int nPar=5)
GlobalVector theMomentum4Par
unsigned int getSector() const
Sector.
void setFitParNo(unsigned int aFitParNo)
unsigned int getWedge() const
bool isTheSameAs(TTTrack< T > aTrack) const
Duplicate identification.
double theStubPtConsistency4Par
std::vector< edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > > theStubRefs
Data members.
double getRInv(unsigned int nPar=4) const
Track curvature.
void setMomentum(GlobalVector aMomentum, unsigned int nPar=5)
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
double getStubPtConsistency(unsigned int nPar=4) const
Stub Pt consistency.
double theStubPtConsistency5Par
void addStubRef(edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > aStub)
Class to store the L1 Track Trigger stubs.
void setStubPtConsistency(double aPtConsistency, unsigned int nPar=5)
StubPtConsistency.
bool checkValidArgsForSet(unsigned int nPar) const
void setStubRefs(std::vector< edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > > aStubs)
std::vector< edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > > getStubRefs() const
Track components.
Class to store the L1 Track Trigger tracks.
void setWedge(unsigned int aWedge)
bool checkValidArgs(unsigned int nPar) const
void setSector(unsigned int aSector)
Global3DVector GlobalVector
double getChi2Red(unsigned int nPar=4) const
Chi2 reduced.