CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
TTTrack< T > Class Template Reference

Class to store the L1 Track Trigger tracks. More...

#include <TTTrack.h>

Public Member Functions

void addStubRef (edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > aStub)
 
double getChi2 (unsigned int nPar=4) const
 Chi2. More...
 
double getChi2Red (unsigned int nPar=4) const
 Chi2 reduced. More...
 
GlobalVector getMomentum (unsigned int nPar=4) const
 Track momentum. More...
 
GlobalPoint getPOCA (unsigned int nPar=4) const
 POCA. More...
 
double getRInv (unsigned int nPar=4) const
 Track curvature. More...
 
unsigned int getSector () const
 Sector. More...
 
double getStubPtConsistency (unsigned int nPar=4) const
 Stub Pt consistency. More...
 
std::vector< edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > > getStubRefs () const
 Track components. More...
 
unsigned int getWedge () const
 
bool hasStubInBarrel (unsigned int aLayer) const
 Additional quality criteria. More...
 
bool isTheSameAs (TTTrack< T > aTrack) const
 Duplicate identification. More...
 
std::string print (unsigned int i=0) const
 Information. More...
 
void setChi2 (double aChi2, unsigned int nPar=5)
 Chi2. More...
 
void setFitParNo (unsigned int aFitParNo)
 
void setMomentum (GlobalVector aMomentum, unsigned int nPar=5)
 
void setPOCA (GlobalPoint aPOCA, unsigned int nPar=5)
 
void setRInv (double aRInv, unsigned int nPar=5)
 
void setSector (unsigned int aSector)
 
void setStubPtConsistency (double aPtConsistency, unsigned int nPar=5)
 StubPtConsistency. More...
 
void setStubRefs (std::vector< edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > > aStubs)
 
void setWedge (unsigned int aWedge)
 
 TTTrack ()
 Constructors. More...
 
 TTTrack (std::vector< edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > > aStubs)
 Another Constructor. More...
 
 ~TTTrack ()
 Destructor. More...
 

Private Member Functions

bool checkValidArgs (unsigned int nPar) const
 
bool checkValidArgsForSet (unsigned int nPar) const
 

Private Attributes

double theChi24Par
 
double theChi25Par
 
GlobalVector theMomentum4Par
 
GlobalVector theMomentum5Par
 
GlobalPoint thePOCA4Par
 
GlobalPoint thePOCA5Par
 
double theRInv4Par
 
double theRInv5Par
 
unsigned int theSector
 
double theStubPtConsistency4Par
 
double theStubPtConsistency5Par
 
std::vector< edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > > theStubRefs
 Data members. More...
 
unsigned int theWedge
 
bool valid4ParFit
 
bool valid5ParFit
 

Detailed Description

template<typename T>
class TTTrack< T >

Class to store the L1 Track Trigger tracks.

After moving from SimDataFormats to DataFormats, the template structure of the class was maintained in order to accomodate any types other than PixelDigis in case there is such a need in the future.

Author
Nicola Pozzobon
Date
2013, Jul 12

Definition at line 23 of file TTTrack.h.

Constructor & Destructor Documentation

template<typename T >
TTTrack< T >::TTTrack ( )

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

Definition at line 117 of file TTTrack.h.

References TTTrack< T >::theChi24Par, TTTrack< T >::theChi25Par, TTTrack< T >::theMomentum4Par, TTTrack< T >::theMomentum5Par, TTTrack< T >::thePOCA4Par, TTTrack< T >::thePOCA5Par, TTTrack< T >::theRInv4Par, TTTrack< T >::theRInv5Par, TTTrack< T >::theSector, TTTrack< T >::theStubPtConsistency4Par, TTTrack< T >::theStubPtConsistency5Par, TTTrack< T >::theStubRefs, TTTrack< T >::theWedge, TTTrack< T >::valid4ParFit, and TTTrack< T >::valid5ParFit.

118 {
119  theStubRefs.clear();
120  theMomentum4Par = GlobalVector(0.0,0.0,0.0);
121  theMomentum5Par = GlobalVector(0.0,0.0,0.0);
122  theRInv4Par = 0.0;
123  theRInv5Par = 0.0;
124  thePOCA4Par = GlobalPoint(0.0,0.0,0.0);
125  thePOCA5Par = GlobalPoint(0.0,0.0,0.0);
126  theSector = 0;
127  theWedge = 0;
128  theChi24Par = 0.0;
129  theChi25Par = 0.0;
132  valid4ParFit = false;
133  valid5ParFit = false;
134 }
GlobalPoint thePOCA4Par
Definition: TTTrack.h:31
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
GlobalVector theMomentum5Par
Definition: TTTrack.h:30
double theChi24Par
Definition: TTTrack.h:39
bool valid5ParFit
Definition: TTTrack.h:42
GlobalVector theMomentum4Par
Definition: TTTrack.h:29
double theStubPtConsistency4Par
Definition: TTTrack.h:37
double theRInv5Par
Definition: TTTrack.h:34
std::vector< edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > > theStubRefs
Data members.
Definition: TTTrack.h:28
unsigned int theWedge
Definition: TTTrack.h:36
double theChi25Par
Definition: TTTrack.h:40
bool valid4ParFit
Definition: TTTrack.h:41
double theStubPtConsistency5Par
Definition: TTTrack.h:38
unsigned int theSector
Definition: TTTrack.h:35
double theRInv4Par
Definition: TTTrack.h:33
GlobalPoint thePOCA5Par
Definition: TTTrack.h:32
Global3DVector GlobalVector
Definition: GlobalVector.h:10
template<typename T>
TTTrack< T >::TTTrack ( std::vector< edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > >  aStubs)

Another Constructor.

Definition at line 138 of file TTTrack.h.

References TTTrack< T >::theChi24Par, TTTrack< T >::theChi25Par, TTTrack< T >::theMomentum4Par, TTTrack< T >::theMomentum5Par, TTTrack< T >::thePOCA4Par, TTTrack< T >::thePOCA5Par, TTTrack< T >::theRInv4Par, TTTrack< T >::theRInv5Par, TTTrack< T >::theSector, TTTrack< T >::theStubPtConsistency4Par, TTTrack< T >::theStubPtConsistency5Par, TTTrack< T >::theStubRefs, TTTrack< T >::theWedge, TTTrack< T >::valid4ParFit, and TTTrack< T >::valid5ParFit.

139 {
140  theStubRefs = aStubs;
141  theMomentum4Par = GlobalVector(0.0,0.0,0.0);
142  theMomentum5Par = GlobalVector(0.0,0.0,0.0);
143  theRInv4Par = 0.0;
144  theRInv5Par = 0.0;
145  thePOCA4Par = GlobalPoint(0.0,0.0,0.0);
146  thePOCA5Par = GlobalPoint(0.0,0.0,0.0);
147  theSector = 0;
148  theWedge = 0;
149  theChi24Par = 0.0;
150  theChi25Par = 0.0;
153  valid4ParFit = false;
154  valid5ParFit = false;
155 }
GlobalPoint thePOCA4Par
Definition: TTTrack.h:31
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
GlobalVector theMomentum5Par
Definition: TTTrack.h:30
double theChi24Par
Definition: TTTrack.h:39
bool valid5ParFit
Definition: TTTrack.h:42
GlobalVector theMomentum4Par
Definition: TTTrack.h:29
double theStubPtConsistency4Par
Definition: TTTrack.h:37
double theRInv5Par
Definition: TTTrack.h:34
std::vector< edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > > theStubRefs
Data members.
Definition: TTTrack.h:28
unsigned int theWedge
Definition: TTTrack.h:36
double theChi25Par
Definition: TTTrack.h:40
bool valid4ParFit
Definition: TTTrack.h:41
double theStubPtConsistency5Par
Definition: TTTrack.h:38
unsigned int theSector
Definition: TTTrack.h:35
double theRInv4Par
Definition: TTTrack.h:33
GlobalPoint thePOCA5Par
Definition: TTTrack.h:32
Global3DVector GlobalVector
Definition: GlobalVector.h:10
template<typename T >
TTTrack< T >::~TTTrack ( )

Destructor.

Definition at line 159 of file TTTrack.h.

159 {}

Member Function Documentation

template<typename T>
void TTTrack< T >::addStubRef ( edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > >  aStub)
inline

Definition at line 54 of file TTTrack.h.

54 { theStubRefs.push_back( aStub ); }
std::vector< edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > > theStubRefs
Data members.
Definition: TTTrack.h:28
template<typename T >
bool TTTrack< T >::checkValidArgs ( unsigned int  nPar) const
private

Definition at line 455 of file TTTrack.h.

References TTTrack< T >::valid4ParFit, and TTTrack< T >::valid5ParFit.

Referenced by TTTrack< T >::getChi2(), TTTrack< T >::getChi2Red(), TTTrack< T >::getMomentum(), TTTrack< T >::getPOCA(), TTTrack< T >::getRInv(), TTTrack< T >::getStubPtConsistency(), and TTTrack< edm::Ref >::setFitParNo().

455  {
456 
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;
460  return false;
461  }
462 
463  if ((nPar==4)&&!valid4ParFit) {
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;
465  return false;
466  }
467 
468  if ((nPar==5)&&!valid5ParFit) {
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;
470  return false;
471  }
472 
473  return true;
474 
475 }
bool valid5ParFit
Definition: TTTrack.h:42
bool valid4ParFit
Definition: TTTrack.h:41
template<typename T >
bool TTTrack< T >::checkValidArgsForSet ( unsigned int  nPar) const
private

Definition at line 477 of file TTTrack.h.

Referenced by TTTrack< T >::setChi2(), TTTrack< edm::Ref >::setFitParNo(), TTTrack< T >::setMomentum(), TTTrack< T >::setPOCA(), TTTrack< T >::setRInv(), and TTTrack< T >::setStubPtConsistency().

477  {
478 
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;
481  return false;
482  }
483 
484  return true;
485 
486 }
template<typename T >
double TTTrack< T >::getChi2 ( unsigned int  nPar = 4) const

Chi2.

Definition at line 301 of file TTTrack.h.

References TTTrack< T >::checkValidArgs(), TTTrack< T >::theChi24Par, and TTTrack< T >::theChi25Par.

Referenced by TTTrack< edm::Ref >::setWedge().

302 {
303 
304  if (!checkValidArgs(nPar)) return 0.0;
305 
306  if (nPar==4) {
307  return theChi24Par;
308  }
309 
310  if (nPar==5) {
311  return theChi25Par;
312  }
313 
314  return 0.0;
315 
316 }
double theChi24Par
Definition: TTTrack.h:39
double theChi25Par
Definition: TTTrack.h:40
bool checkValidArgs(unsigned int nPar) const
Definition: TTTrack.h:455
template<typename T >
double TTTrack< T >::getChi2Red ( unsigned int  nPar = 4) const

Chi2 reduced.

Definition at line 322 of file TTTrack.h.

References TTTrack< T >::checkValidArgs(), TTTrack< T >::theChi24Par, TTTrack< T >::theChi25Par, and TTTrack< T >::theStubRefs.

Referenced by TTTrack< edm::Ref >::setWedge().

323 {
324 
325  if (!checkValidArgs(nPar)) return 0.0;
326 
327  if (nPar==4) {
328  return theChi24Par/( 2*theStubRefs.size() - 4 );
329  }
330 
331  if (nPar==5) {
332  return theChi25Par/( 2*theStubRefs.size() - 5 );
333  }
334 
335  return 0.0;
336 
337 }
double theChi24Par
Definition: TTTrack.h:39
std::vector< edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > > theStubRefs
Data members.
Definition: TTTrack.h:28
double theChi25Par
Definition: TTTrack.h:40
bool checkValidArgs(unsigned int nPar) const
Definition: TTTrack.h:455
template<typename T >
GlobalVector TTTrack< T >::getMomentum ( unsigned int  nPar = 4) const

Track momentum.

Definition at line 183 of file TTTrack.h.

References TTTrack< T >::checkValidArgs(), TTTrack< T >::theMomentum4Par, and TTTrack< T >::theMomentum5Par.

Referenced by TTTrack< edm::Ref >::setStubRefs().

183  {
184 
185  if (!checkValidArgs(nPar))
186  return GlobalVector(0.0,0.0,0.0);
187 
188  if (nPar==4) {
189  return theMomentum4Par;
190  }
191 
192  if (nPar==5) {
193  return theMomentum5Par;
194  }
195 
196  return GlobalVector(0.0,0.0,0.0);
197 
198 
199 }
GlobalVector theMomentum5Par
Definition: TTTrack.h:30
GlobalVector theMomentum4Par
Definition: TTTrack.h:29
bool checkValidArgs(unsigned int nPar) const
Definition: TTTrack.h:455
Global3DVector GlobalVector
Definition: GlobalVector.h:10
template<typename T >
GlobalPoint TTTrack< T >::getPOCA ( unsigned int  nPar = 4) const

POCA.

Definition at line 260 of file TTTrack.h.

References TTTrack< T >::checkValidArgs(), TTTrack< T >::thePOCA4Par, and TTTrack< T >::thePOCA5Par.

Referenced by TTTrack< edm::Ref >::setStubRefs().

261 {
262 
263  if (!checkValidArgs(nPar)) return GlobalPoint(0.0,0.0,0.0);
264 
265  if (nPar==4) {
266  return thePOCA4Par;
267  }
268 
269  if (nPar==5) {
270  return thePOCA5Par;
271  }
272 
273  return GlobalPoint(0.0,0.0,0.0);
274 
275 }
GlobalPoint thePOCA4Par
Definition: TTTrack.h:31
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
bool checkValidArgs(unsigned int nPar) const
Definition: TTTrack.h:455
GlobalPoint thePOCA5Par
Definition: TTTrack.h:32
template<typename T >
double TTTrack< T >::getRInv ( unsigned int  nPar = 4) const

Track curvature.

Definition at line 223 of file TTTrack.h.

References TTTrack< T >::checkValidArgs(), TTTrack< T >::theRInv4Par, and TTTrack< T >::theRInv5Par.

Referenced by StubPtConsistency::getConsistency(), and TTTrack< edm::Ref >::setStubRefs().

223  {
224 
225  if (!checkValidArgs(nPar)) return 0.0;
226 
227  if (nPar==4) {
228  return theRInv4Par;
229  }
230 
231  if (nPar==5) {
232  return theRInv5Par;
233  }
234 
235  return 0.0;
236 
237 }
double theRInv5Par
Definition: TTTrack.h:34
bool checkValidArgs(unsigned int nPar) const
Definition: TTTrack.h:455
double theRInv4Par
Definition: TTTrack.h:33
template<typename T>
unsigned int TTTrack< T >::getSector ( ) const
inline

Sector.

Definition at line 70 of file TTTrack.h.

70 { return theSector; }
unsigned int theSector
Definition: TTTrack.h:35
template<typename T >
double TTTrack< T >::getStubPtConsistency ( unsigned int  nPar = 4) const

Stub Pt consistency.

StubPtConsistency.

Definition at line 364 of file TTTrack.h.

References TTTrack< T >::checkValidArgs(), TTTrack< T >::theStubPtConsistency4Par, and TTTrack< T >::theStubPtConsistency5Par.

Referenced by TTTrack< edm::Ref >::setWedge().

365 {
366 
367  if (!checkValidArgs(nPar)) return 0.0;
368 
369  if (nPar==4) {
371  }
372 
373  if (nPar==5) {
375  }
376 
377  return 0.0;
378 
379 }
double theStubPtConsistency4Par
Definition: TTTrack.h:37
double theStubPtConsistency5Par
Definition: TTTrack.h:38
bool checkValidArgs(unsigned int nPar) const
Definition: TTTrack.h:455
template<typename T>
std::vector< edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > > TTTrack< T >::getStubRefs ( ) const
inline

Track components.

Definition at line 53 of file TTTrack.h.

Referenced by StubPtConsistency::getConsistency(), and TTTrack< T >::isTheSameAs().

53 { return theStubRefs; }
std::vector< edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > > theStubRefs
Data members.
Definition: TTTrack.h:28
template<typename T>
unsigned int TTTrack< T >::getWedge ( ) const
inline

Definition at line 72 of file TTTrack.h.

72 { return theWedge; }
unsigned int theWedge
Definition: TTTrack.h:36
template<typename T >
bool TTTrack< T >::hasStubInBarrel ( unsigned int  aLayer) const

Additional quality criteria.

Quality criteria: does it have a Stub in a specific Barrel Layer?

Definition at line 411 of file TTTrack.h.

References mps_fire::i, DetId::subdetId(), TTTrack< T >::theStubRefs, and StripSubdetector::TOB.

Referenced by TTTrack< edm::Ref >::setFitParNo().

412 {
413  for ( unsigned int i = 0; i < theStubRefs.size(); i++)
414  {
415  DetId detid = theStubRefs.at(i)->getDetId();
416  if ( detid.subdetId()==StripSubdetector::TOB )
417  {
418  return true;
419  }
420  }
421 
422  return false;
423 }
std::vector< edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > > theStubRefs
Data members.
Definition: TTTrack.h:28
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:41
Definition: DetId.h:18
template<typename T>
bool TTTrack< T >::isTheSameAs ( TTTrack< T aTrack) const

Duplicate identification.

Take the other stubs

Count shared stubs

Same track if 2 shared stubs

Definition at line 387 of file TTTrack.h.

References TTTrack< T >::getStubRefs(), mps_fire::i, and TTTrack< T >::theStubRefs.

Referenced by TTTrack< edm::Ref >::setFitParNo().

388 {
390  std::vector< edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > > otherStubRefs = aTrack.getStubRefs();
391 
393  unsigned int nShared = 0;
394  for ( unsigned int i = 0; i < theStubRefs.size() && nShared < 2; i++)
395  {
396  for ( unsigned int j = 0; j < otherStubRefs.size() && nShared < 2; j++)
397  {
398  if ( theStubRefs.at(i) == otherStubRefs.at(j) )
399  {
400  nShared++;
401  }
402  }
403  }
404 
406  return ( nShared > 1 );
407 }
std::vector< edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > > theStubRefs
Data members.
Definition: TTTrack.h:28
Class to store the L1 Track Trigger stubs.
Definition: TTStub.h:22
std::vector< edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > > getStubRefs() const
Track components.
Definition: TTTrack.h:53
template<typename T >
std::string TTTrack< T >::print ( unsigned int  i = 0) const

Information.

Definition at line 428 of file TTTrack.h.

References mps_fire::i, convertSQLitetoXML_cfg::output, AlCaHLTBitMon_QueryRunRegistry::string, and TTTrack< T >::theStubRefs.

Referenced by TTTrack< edm::Ref >::setFitParNo().

429 {
430  std::string padding("");
431  for ( unsigned int j = 0; j != i; ++j )
432  {
433  padding+="\t";
434  }
435 
436  std::stringstream output;
437  output<<padding<<"TTTrack:\n";
438  padding+='\t';
439  output << '\n';
440  unsigned int iStub = 0;
441 
442  typename std::vector< edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > >::const_iterator stubIter;
443  for ( stubIter = theStubRefs.begin();
444  stubIter!= theStubRefs.end();
445  ++stubIter )
446  {
447  output << padding << "stub: " << iStub++ << ", DetId: " << ((*stubIter)->getDetId()).rawId() << '\n';
448  }
449 
450  return output.str();
451 }
std::vector< edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > > theStubRefs
Data members.
Definition: TTTrack.h:28
Class to store the L1 Track Trigger stubs.
Definition: TTStub.h:22
template<typename T >
void TTTrack< T >::setChi2 ( double  aChi2,
unsigned int  nPar = 5 
)

Chi2.

Definition at line 279 of file TTTrack.h.

References TTTrack< T >::checkValidArgsForSet(), TTTrack< T >::theChi24Par, TTTrack< T >::theChi25Par, TTTrack< T >::valid4ParFit, and TTTrack< T >::valid5ParFit.

Referenced by TTTrack< edm::Ref >::setWedge().

279  {
280 
281  if (!checkValidArgsForSet(nPar)) return;
282 
283  if (nPar==4) {
284  valid4ParFit = true;
285  theChi24Par=aChi2;
286  }
287 
288  if (nPar==5) {
289  valid5ParFit = true;
290  theChi25Par=aChi2;
291  }
292 
293  return;
294 
295 }
double theChi24Par
Definition: TTTrack.h:39
bool valid5ParFit
Definition: TTTrack.h:42
double theChi25Par
Definition: TTTrack.h:40
bool valid4ParFit
Definition: TTTrack.h:41
bool checkValidArgsForSet(unsigned int nPar) const
Definition: TTTrack.h:477
template<typename T>
void TTTrack< T >::setFitParNo ( unsigned int  aFitParNo)
inline

Definition at line 84 of file TTTrack.h.

84 { return; }
template<typename T >
void TTTrack< T >::setMomentum ( GlobalVector  aMomentum,
unsigned int  nPar = 5 
)

Definition at line 162 of file TTTrack.h.

References TTTrack< T >::checkValidArgsForSet(), TTTrack< T >::theMomentum4Par, TTTrack< T >::theMomentum5Par, TTTrack< T >::valid4ParFit, and TTTrack< T >::valid5ParFit.

Referenced by TTTrack< edm::Ref >::setStubRefs().

162  {
163 
164  if (!checkValidArgsForSet(nPar)) return;
165 
166  if (nPar==4) {
167  valid4ParFit = true;
168  theMomentum4Par=aMomentum;
169  }
170 
171  if (nPar==5) {
172  valid5ParFit = true;
173  theMomentum5Par=aMomentum;
174  }
175 
176  return;
177 
178 
179 }
GlobalVector theMomentum5Par
Definition: TTTrack.h:30
bool valid5ParFit
Definition: TTTrack.h:42
GlobalVector theMomentum4Par
Definition: TTTrack.h:29
bool valid4ParFit
Definition: TTTrack.h:41
bool checkValidArgsForSet(unsigned int nPar) const
Definition: TTTrack.h:477
template<typename T >
void TTTrack< T >::setPOCA ( GlobalPoint  aPOCA,
unsigned int  nPar = 5 
)

Definition at line 241 of file TTTrack.h.

References TTTrack< T >::checkValidArgsForSet(), TTTrack< T >::thePOCA4Par, TTTrack< T >::thePOCA5Par, TTTrack< T >::valid4ParFit, and TTTrack< T >::valid5ParFit.

Referenced by TTTrack< edm::Ref >::setStubRefs().

241  {
242 
243  if (!checkValidArgsForSet(nPar)) return;
244 
245  if (nPar==4) {
246  valid4ParFit = true;
247  thePOCA4Par=aPOCA;
248  }
249 
250  if (nPar==5) {
251  valid5ParFit = true;
252  thePOCA5Par=aPOCA;
253  }
254 
255  return;
256 
257 }
GlobalPoint thePOCA4Par
Definition: TTTrack.h:31
bool valid5ParFit
Definition: TTTrack.h:42
bool valid4ParFit
Definition: TTTrack.h:41
bool checkValidArgsForSet(unsigned int nPar) const
Definition: TTTrack.h:477
GlobalPoint thePOCA5Par
Definition: TTTrack.h:32
template<typename T >
void TTTrack< T >::setRInv ( double  aRInv,
unsigned int  nPar = 5 
)

Definition at line 203 of file TTTrack.h.

References TTTrack< T >::checkValidArgsForSet(), TTTrack< T >::theRInv4Par, TTTrack< T >::theRInv5Par, TTTrack< T >::valid4ParFit, and TTTrack< T >::valid5ParFit.

Referenced by TTTrack< edm::Ref >::setStubRefs().

203  {
204 
205  if (!checkValidArgsForSet(nPar)) return;
206 
207  if (nPar==4) {
208  valid4ParFit = true;
209  theRInv4Par=aRInv;
210  }
211 
212  if (nPar==5) {
213  valid5ParFit = true;
214  theRInv5Par=aRInv;
215  }
216 
217  return;
218 
219 }
bool valid5ParFit
Definition: TTTrack.h:42
double theRInv5Par
Definition: TTTrack.h:34
bool valid4ParFit
Definition: TTTrack.h:41
bool checkValidArgsForSet(unsigned int nPar) const
Definition: TTTrack.h:477
double theRInv4Par
Definition: TTTrack.h:33
template<typename T>
void TTTrack< T >::setSector ( unsigned int  aSector)
inline

Definition at line 71 of file TTTrack.h.

71 { theSector = aSector; }
unsigned int theSector
Definition: TTTrack.h:35
template<typename T >
void TTTrack< T >::setStubPtConsistency ( double  aPtConsistency,
unsigned int  nPar = 5 
)

StubPtConsistency.

Definition at line 342 of file TTTrack.h.

References TTTrack< T >::checkValidArgsForSet(), TTTrack< T >::theStubPtConsistency4Par, TTTrack< T >::theStubPtConsistency5Par, TTTrack< T >::valid4ParFit, and TTTrack< T >::valid5ParFit.

Referenced by TTTrack< edm::Ref >::setWedge().

342  {
343 
344  if (!checkValidArgsForSet(nPar)) return;
345 
346  if (nPar==4) {
347  valid4ParFit = true;
348  theStubPtConsistency4Par=aStubPtConsistency;
349  }
350 
351  if (nPar==5) {
352  valid5ParFit = true;
353  theStubPtConsistency5Par=aStubPtConsistency;
354  }
355 
356  return;
357 
358 }
bool valid5ParFit
Definition: TTTrack.h:42
double theStubPtConsistency4Par
Definition: TTTrack.h:37
bool valid4ParFit
Definition: TTTrack.h:41
double theStubPtConsistency5Par
Definition: TTTrack.h:38
bool checkValidArgsForSet(unsigned int nPar) const
Definition: TTTrack.h:477
template<typename T>
void TTTrack< T >::setStubRefs ( std::vector< edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > >  aStubs)
inline

Definition at line 55 of file TTTrack.h.

55 { theStubRefs = aStubs; }
std::vector< edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > > theStubRefs
Data members.
Definition: TTTrack.h:28
template<typename T>
void TTTrack< T >::setWedge ( unsigned int  aWedge)
inline

Definition at line 73 of file TTTrack.h.

73 { theWedge = aWedge; }
unsigned int theWedge
Definition: TTTrack.h:36

Member Data Documentation

template<typename T>
double TTTrack< T >::theChi24Par
private
template<typename T>
double TTTrack< T >::theChi25Par
private
template<typename T>
GlobalVector TTTrack< T >::theMomentum4Par
private
template<typename T>
GlobalVector TTTrack< T >::theMomentum5Par
private
template<typename T>
GlobalPoint TTTrack< T >::thePOCA4Par
private

Definition at line 31 of file TTTrack.h.

Referenced by TTTrack< T >::getPOCA(), TTTrack< T >::setPOCA(), and TTTrack< T >::TTTrack().

template<typename T>
GlobalPoint TTTrack< T >::thePOCA5Par
private

Definition at line 32 of file TTTrack.h.

Referenced by TTTrack< T >::getPOCA(), TTTrack< T >::setPOCA(), and TTTrack< T >::TTTrack().

template<typename T>
double TTTrack< T >::theRInv4Par
private

Definition at line 33 of file TTTrack.h.

Referenced by TTTrack< T >::getRInv(), TTTrack< T >::setRInv(), and TTTrack< T >::TTTrack().

template<typename T>
double TTTrack< T >::theRInv5Par
private

Definition at line 34 of file TTTrack.h.

Referenced by TTTrack< T >::getRInv(), TTTrack< T >::setRInv(), and TTTrack< T >::TTTrack().

template<typename T>
unsigned int TTTrack< T >::theSector
private

Definition at line 35 of file TTTrack.h.

Referenced by TTTrack< edm::Ref >::getSector(), and TTTrack< T >::TTTrack().

template<typename T>
double TTTrack< T >::theStubPtConsistency4Par
private
template<typename T>
double TTTrack< T >::theStubPtConsistency5Par
private
template<typename T>
std::vector< edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > > TTTrack< T >::theStubRefs
private
template<typename T>
unsigned int TTTrack< T >::theWedge
private

Definition at line 36 of file TTTrack.h.

Referenced by TTTrack< edm::Ref >::getWedge(), and TTTrack< T >::TTTrack().

template<typename T>
bool TTTrack< T >::valid4ParFit
private
template<typename T>
bool TTTrack< T >::valid5ParFit
private