CMS 3D CMS Logo

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

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

#include <TTTrack.h>

Inheritance diagram for TTTrack< T >:
TTTrack_TrackWord

Public Member Functions

void addStubRef (edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > aStub)
 
double chi2 () const
 Chi2. More...
 
double chi2Red () const
 Chi2 reduced. More...
 
double d0 () const
 Track d0. More...
 
double eta () const
 Track eta. More...
 
double getChi2 (unsigned int npar=4) const
 
double getChi2Red (unsigned int npar=4) const
 
GlobalVector getMomentum (unsigned int npar=Npars4) const
 
GlobalPoint getPOCA (unsigned int npar=Npars4) const
 
double getRInv (unsigned int npar=Npars4) const
 
unsigned int getSector () const
 
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...
 
GlobalVector momentum () const
 Track momentum. More...
 
double phi () const
 Track phi. More...
 
unsigned int PhiSector () const
 Phi Sector. More...
 
GlobalPoint POCA () const
 POCA. More...
 
std::string print (unsigned int i=0) const
 Information. More...
 
double rInv () const
 Track curvature. More...
 
void setFitParNo (unsigned int aFitParNo)
 
void setPhiSector (unsigned int aSector)
 
void setStubPtConsistency (double aPtConsistency)
 StubPtConsistency. More...
 
void setStubRefs (std::vector< edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > > aStubs)
 
void setTrackSeed (int aSeed)
 
void setTrackWordBits ()
 Set bits in 96-bit Track word. More...
 
double tanL () const
 Track tanL. More...
 
void testTrackWordBits ()
 Test bits in 96-bit Track word. More...
 
unsigned int TrackSeed () const
 Track seeding (for debugging) More...
 
 TTTrack ()
 Constructors. More...
 
 TTTrack (std::vector< edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > > aStubs)
 Another Constructor. More...
 
 TTTrack (double aRinv, double aphi, double aeta, double az0, double ad0, double aChi2, unsigned int aHitpattern, unsigned int nPar, double Bfield)
 Meant to be default constructor. More...
 
double z0 () const
 Track z0. More...
 
 ~TTTrack ()
 Destructor. More...
 
- Public Member Functions inherited from TTTrack_TrackWord
unsigned int get_BendChi2Bits ()
 
unsigned int get_chi2Bits ()
 
unsigned int get_d0Bits ()
 
unsigned int get_etaBits ()
 
unsigned int get_hitPattern ()
 
float get_iBendChi2 ()
 
float get_ichi2 ()
 
float get_id0 ()
 
float get_ieta ()
 
float get_iphi ()
 
float get_iRinv ()
 
unsigned int get_ispare ()
 
float get_iz0 ()
 
unsigned int get_phiBits ()
 
unsigned int get_RinvBits ()
 
unsigned int get_z0Bits ()
 
TTTrack_TrackWordoperator= (const TTTrack_TrackWord &word)
 
void setTrackWord (const GlobalVector &Momentum, const GlobalPoint &POCA, double theRinv, double theChi2, double theBendChi2, unsigned int theHitPattern, unsigned int iSpare)
 
void setTrackWord (unsigned int theRinv, unsigned int phi0, unsigned int tanl, unsigned int z0, unsigned int d0, unsigned int theChi2, unsigned int theBendChi2, unsigned int theHitPattern, unsigned int iSpare)
 
 TTTrack_TrackWord ()
 
 TTTrack_TrackWord (const GlobalVector &Momentum, const GlobalPoint &POCA, double theRinv, double theChi2, double theBendChi2, unsigned int theHitPattern, unsigned int iSpare)
 
 TTTrack_TrackWord (unsigned int theRinv, unsigned int phi0, unsigned int tanl, unsigned int z0, unsigned int d0, unsigned int theChi2, unsigned int theBendChi2, unsigned int theHitPattern, unsigned int iSpare)
 
 TTTrack_TrackWord (const TTTrack_TrackWord &word)
 
unsigned int unpack_hitPattern ()
 
float unpack_iBendChi2 ()
 
float unpack_ichi2 ()
 
float unpack_id0 ()
 
float unpack_ieta ()
 
float unpack_iphi ()
 
float unpack_iRinv ()
 
unsigned int unpack_ispare ()
 
float unpack_iz0 ()
 

Private Attributes

float an_MVA_Value
 
float another_MVA_Value
 
unsigned int NumFitPars
 
double theBField
 
double theChi2
 
double theD0
 
double theEta
 
unsigned int theHitPattern
 
GlobalVector theMomentum
 
double thePhi
 
unsigned int thePhiSector
 
GlobalPoint thePOCA
 
double theRInv
 
double theStubPtConsistency
 
std::vector< edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > > theStubRefs
 Data members. More...
 
double theTanL
 
int theTrackSeed
 
double theZ0
 

Static Private Attributes

static float MagConstant = 0.3
 
static unsigned int Npars4 = 4
 
static unsigned int Npars5 = 5
 

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 25 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 140 of file TTTrack.h.

References TTTrack< T >::NumFitPars, TTTrack< T >::theChi2, TTTrack< T >::theMomentum, TTTrack< T >::thePhiSector, TTTrack< T >::thePOCA, TTTrack< T >::theRInv, TTTrack< T >::theStubPtConsistency, TTTrack< T >::theStubRefs, and TTTrack< T >::theTrackSeed.

140  {
141  theStubRefs.clear();
142  theMomentum = GlobalVector(0.0, 0.0, 0.0);
143  theRInv = 0.0;
144  thePOCA = GlobalPoint(0.0, 0.0, 0.0);
145  thePhiSector = 0;
146  theTrackSeed = 0;
147  theChi2 = 0.0;
148  theStubPtConsistency = 0.0;
149  NumFitPars = 0;
150 }
double theRInv
Definition: TTTrack.h:31
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
std::vector< edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > > theStubRefs
Data members.
Definition: TTTrack.h:28
GlobalVector theMomentum
Definition: TTTrack.h:29
int theTrackSeed
Definition: TTTrack.h:44
unsigned int thePhiSector
Definition: TTTrack.h:37
double theStubPtConsistency
Definition: TTTrack.h:38
double theChi2
Definition: TTTrack.h:39
unsigned int NumFitPars
Definition: TTTrack.h:40
GlobalPoint thePOCA
Definition: TTTrack.h:30
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 154 of file TTTrack.h.

References TTTrack< T >::NumFitPars, TTTrack< T >::theChi2, TTTrack< T >::theMomentum, TTTrack< T >::thePhiSector, TTTrack< T >::thePOCA, TTTrack< T >::theRInv, TTTrack< T >::theStubPtConsistency, TTTrack< T >::theStubRefs, and TTTrack< T >::theTrackSeed.

154  {
155  theStubRefs = aStubs;
156  theMomentum = GlobalVector(0.0, 0.0, 0.0);
157  theRInv = 0.0;
158  thePOCA = GlobalPoint(0.0, 0.0, 0.0);
159  thePhiSector = 0;
160  theTrackSeed = 0;
161  theChi2 = 0.0;
162  theStubPtConsistency = 0.0;
163  NumFitPars = 0;
164 }
double theRInv
Definition: TTTrack.h:31
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
std::vector< edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > > theStubRefs
Data members.
Definition: TTTrack.h:28
GlobalVector theMomentum
Definition: TTTrack.h:29
int theTrackSeed
Definition: TTTrack.h:44
unsigned int thePhiSector
Definition: TTTrack.h:37
double theStubPtConsistency
Definition: TTTrack.h:38
double theChi2
Definition: TTTrack.h:39
unsigned int NumFitPars
Definition: TTTrack.h:40
GlobalPoint thePOCA
Definition: TTTrack.h:30
Global3DVector GlobalVector
Definition: GlobalVector.h:10
template<typename T >
TTTrack< T >::TTTrack ( double  aRinv,
double  aphi,
double  aeta,
double  az0,
double  ad0,
double  aChi2,
unsigned int  aHitpattern,
unsigned int  nPar,
double  Bfield 
)

Meant to be default constructor.

Definition at line 168 of file TTTrack.h.

References funct::cos(), TTTrack< T >::MagConstant, TTTrack< T >::NumFitPars, funct::sin(), TTTrack< T >::theBField, TTTrack< T >::theChi2, TTTrack< T >::theHitPattern, TTTrack< T >::theMomentum, TTTrack< T >::thePhiSector, TTTrack< T >::thePOCA, TTTrack< T >::theRInv, TTTrack< T >::theStubPtConsistency, TTTrack< T >::theStubRefs, and TTTrack< T >::theTrackSeed.

176  {
177  theStubRefs.clear();
178  double thePT = MagConstant * aRinv * aBfield;
179  theMomentum = GlobalVector(GlobalVector::Cylindrical(thePT, aphi, thePT * sinh(aeta)));
180  theRInv = aRinv;
181  thePOCA = GlobalPoint(ad0 * cos(aphi), ad0 * sin(aphi), az0);
182  thePhiSector = 0; // must be set externally
183  theTrackSeed = 0; // must be set externally
184  theChi2 = aChi2;
185  theStubPtConsistency = 0.0; // must be set externally
186  NumFitPars = nPar;
187  theHitPattern = aHitPattern;
188  theBField = aBfield;
189  // should probably fill the momentum vectur
190 }
double theRInv
Definition: TTTrack.h:31
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
static float MagConstant
Definition: TTTrack.h:48
std::vector< edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > > theStubRefs
Data members.
Definition: TTTrack.h:28
GlobalVector theMomentum
Definition: TTTrack.h:29
int theTrackSeed
Definition: TTTrack.h:44
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
unsigned int thePhiSector
Definition: TTTrack.h:37
unsigned int theHitPattern
Definition: TTTrack.h:41
double theStubPtConsistency
Definition: TTTrack.h:38
double theBField
Definition: TTTrack.h:45
double theChi2
Definition: TTTrack.h:39
unsigned int NumFitPars
Definition: TTTrack.h:40
GlobalPoint thePOCA
Definition: TTTrack.h:30
Global3DVector GlobalVector
Definition: GlobalVector.h:10
template<typename T >
TTTrack< T >::~TTTrack ( )

Destructor.

Definition at line 194 of file TTTrack.h.

194 {}

Member Function Documentation

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

Definition at line 70 of file TTTrack.h.

70 { theStubRefs.push_back(aStub); }
std::vector< edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > > theStubRefs
Data members.
Definition: TTTrack.h:28
template<typename T >
double TTTrack< T >::chi2 ( void  ) const

Chi2.

Definition at line 289 of file TTTrack.h.

References TTTrack< T >::Npars4, TTTrack< T >::Npars5, TTTrack< T >::NumFitPars, and TTTrack< T >::theChi2.

Referenced by TTTrack< T >::getChi2(), and TTTrack< T >::setTrackSeed().

289  {
290  if (NumFitPars == Npars5 || NumFitPars == Npars4) {
291  return theChi2;
292  } else
293  return 0.0;
294 }
static unsigned int Npars5
Definition: TTTrack.h:47
static unsigned int Npars4
Definition: TTTrack.h:46
double theChi2
Definition: TTTrack.h:39
unsigned int NumFitPars
Definition: TTTrack.h:40
template<typename T >
double TTTrack< T >::chi2Red ( ) const

Chi2 reduced.

Definition at line 304 of file TTTrack.h.

References TTTrack< T >::Npars4, TTTrack< T >::Npars5, TTTrack< T >::NumFitPars, TTTrack< T >::theChi2, and TTTrack< T >::theStubRefs.

Referenced by TTTrack< T >::getChi2Red(), and TTTrack< T >::setTrackSeed().

304  {
305  if (NumFitPars == Npars5 || NumFitPars == Npars4) {
306  return theChi2 / (2 * theStubRefs.size() - NumFitPars);
307  } else
308  return 0.0;
309 }
static unsigned int Npars5
Definition: TTTrack.h:47
std::vector< edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > > theStubRefs
Data members.
Definition: TTTrack.h:28
static unsigned int Npars4
Definition: TTTrack.h:46
double theChi2
Definition: TTTrack.h:39
unsigned int NumFitPars
Definition: TTTrack.h:40
template<typename T >
double TTTrack< T >::d0 ( ) const

Track d0.

Definition at line 258 of file TTTrack.h.

References TTTrack< T >::Npars4, TTTrack< T >::Npars5, TTTrack< T >::NumFitPars, and TTTrack< T >::theD0.

Referenced by TTTrack< T >::setStubRefs().

258  {
259  if (NumFitPars == Npars5 || NumFitPars == Npars4) {
260  return theD0;
261  } else
262  return 0.0;
263 }
static unsigned int Npars5
Definition: TTTrack.h:47
double theD0
Definition: TTTrack.h:35
static unsigned int Npars4
Definition: TTTrack.h:46
unsigned int NumFitPars
Definition: TTTrack.h:40
template<typename T >
double TTTrack< T >::eta ( ) const

Track eta.

Definition at line 242 of file TTTrack.h.

References TTTrack< T >::Npars4, TTTrack< T >::Npars5, TTTrack< T >::NumFitPars, and TTTrack< T >::theEta.

Referenced by Particle.Particle::__str__(), Jet.Jet::jetID(), Jet.Jet::puJetId(), and TTTrack< T >::setStubRefs().

242  {
243  if (NumFitPars == Npars5 || NumFitPars == Npars4) {
244  return theEta;
245  } else
246  return 0.0;
247 }
static unsigned int Npars5
Definition: TTTrack.h:47
static unsigned int Npars4
Definition: TTTrack.h:46
double theEta
Definition: TTTrack.h:34
unsigned int NumFitPars
Definition: TTTrack.h:40
template<typename T >
double TTTrack< T >::getChi2 ( unsigned int  npar = 4) const

Definition at line 297 of file TTTrack.h.

References TTTrack< T >::chi2().

Referenced by TTTrack< T >::setTrackSeed().

298 {
299  return chi2();
300 }
double chi2() const
Chi2.
Definition: TTTrack.h:289
template<typename T >
double TTTrack< T >::getChi2Red ( unsigned int  npar = 4) const

Definition at line 312 of file TTTrack.h.

References TTTrack< T >::chi2Red().

Referenced by TTTrack< T >::setTrackSeed().

313 {
314  return chi2Red();
315 }
double chi2Red() const
Chi2 reduced.
Definition: TTTrack.h:304
template<typename T >
GlobalVector TTTrack< T >::getMomentum ( unsigned int  npar = Npars4) const

Definition at line 215 of file TTTrack.h.

References TTTrack< T >::momentum().

Referenced by TTTrack< T >::setStubRefs().

215  {
216  return momentum();
217 }
GlobalVector momentum() const
Track momentum.
Definition: TTTrack.h:207
template<typename T >
GlobalPoint TTTrack< T >::getPOCA ( unsigned int  npar = Npars4) const

Definition at line 282 of file TTTrack.h.

References TTTrack< T >::POCA().

Referenced by TTTrack< T >::setStubRefs().

283 {
284  return POCA();
285 }
GlobalPoint POCA() const
POCA.
Definition: TTTrack.h:274
template<typename T >
double TTTrack< T >::getRInv ( unsigned int  npar = Npars4) const

Definition at line 228 of file TTTrack.h.

References TTTrack< T >::rInv().

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

228  { //backwards compatibility
229 
230  return rInv();
231 }
double rInv() const
Track curvature.
Definition: TTTrack.h:220
template<typename T>
unsigned int TTTrack< T >::getSector ( ) const
inline

Definition at line 104 of file TTTrack.h.

References TTTrack< T >::thePhiSector.

104 { return thePhiSector; }
unsigned int thePhiSector
Definition: TTTrack.h:37
template<typename T >
double TTTrack< T >::getStubPtConsistency ( unsigned int  npar = 4) const

Stub Pt consistency.

StubPtConsistency.

Definition at line 327 of file TTTrack.h.

References TTTrack< T >::Npars4, TTTrack< T >::Npars5, TTTrack< T >::NumFitPars, and TTTrack< T >::theStubPtConsistency.

Referenced by TTTrack< T >::setTrackSeed().

327  {
328  if (NumFitPars == Npars5 || NumFitPars == Npars4) {
329  return theStubPtConsistency;
330  } else
331  return 0.0;
332 }
static unsigned int Npars5
Definition: TTTrack.h:47
static unsigned int Npars4
Definition: TTTrack.h:46
double theStubPtConsistency
Definition: TTTrack.h:38
unsigned int NumFitPars
Definition: TTTrack.h:40
template<typename T>
std::vector<edm::Ref<edmNew::DetSetVector<TTStub<T> >, TTStub<T> > > TTTrack< T >::getStubRefs ( ) const
inline

Track components.

Definition at line 69 of file TTTrack.h.

References TTTrack< T >::theStubRefs.

Referenced by StubPtConsistency::getConsistency().

69 { return theStubRefs; }
std::vector< edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > > theStubRefs
Data members.
Definition: TTTrack.h:28
template<typename T >
GlobalVector TTTrack< T >::momentum ( ) const

Track momentum.

Definition at line 207 of file TTTrack.h.

References TTTrack< T >::Npars4, TTTrack< T >::Npars5, TTTrack< T >::NumFitPars, and TTTrack< T >::theMomentum.

Referenced by TTTrack< T >::getMomentum(), and TTTrack< T >::setStubRefs().

207  {
208  if (NumFitPars == Npars5 || NumFitPars == Npars4) {
209  return theMomentum;
210  } else
211  return GlobalVector(0.0, 0.0, 0.0);
212 }
static unsigned int Npars5
Definition: TTTrack.h:47
GlobalVector theMomentum
Definition: TTTrack.h:29
static unsigned int Npars4
Definition: TTTrack.h:46
unsigned int NumFitPars
Definition: TTTrack.h:40
Global3DVector GlobalVector
Definition: GlobalVector.h:10
template<typename T >
double TTTrack< T >::phi ( ) const

Track phi.

Definition at line 250 of file TTTrack.h.

References TTTrack< T >::Npars4, TTTrack< T >::Npars5, TTTrack< T >::NumFitPars, and TTTrack< T >::thePhi.

Referenced by Particle.Particle::__str__(), ntupleDataFormat.Track::phiPull(), and TTTrack< T >::setStubRefs().

250  {
251  if (NumFitPars == Npars5 || NumFitPars == Npars4) {
252  return thePhi;
253  } else
254  return 0.0;
255 }
static unsigned int Npars5
Definition: TTTrack.h:47
static unsigned int Npars4
Definition: TTTrack.h:46
double thePhi
Definition: TTTrack.h:32
unsigned int NumFitPars
Definition: TTTrack.h:40
template<typename T>
unsigned int TTTrack< T >::PhiSector ( ) const
inline

Phi Sector.

Definition at line 103 of file TTTrack.h.

References TTTrack< T >::thePhiSector.

103 { return thePhiSector; }
unsigned int thePhiSector
Definition: TTTrack.h:37
template<typename T >
GlobalPoint TTTrack< T >::POCA ( ) const

POCA.

Definition at line 274 of file TTTrack.h.

References TTTrack< T >::Npars4, TTTrack< T >::Npars5, TTTrack< T >::NumFitPars, and TTTrack< T >::thePOCA.

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

274  {
275  if (NumFitPars == Npars5 || NumFitPars == Npars4) {
276  return thePOCA;
277  } else
278  return GlobalPoint(0.0, 0.0, 0.0);
279 }
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
static unsigned int Npars5
Definition: TTTrack.h:47
static unsigned int Npars4
Definition: TTTrack.h:46
unsigned int NumFitPars
Definition: TTTrack.h:40
GlobalPoint thePOCA
Definition: TTTrack.h:30
template<typename T >
std::string TTTrack< T >::print ( unsigned int  i = 0) const

Information.

Definition at line 374 of file TTTrack.h.

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

Referenced by TTTrack< T >::setTrackSeed().

374  {
375  std::string padding("");
376  for (unsigned int j = 0; j != i; ++j) {
377  padding += "\t";
378  }
379 
380  std::stringstream output;
381  output << padding << "TTTrack:\n";
382  padding += '\t';
383  output << '\n';
384  unsigned int iStub = 0;
385 
386  typename std::vector<edm::Ref<edmNew::DetSetVector<TTStub<T> >, TTStub<T> > >::const_iterator stubIter;
387  for (stubIter = theStubRefs.begin(); stubIter != theStubRefs.end(); ++stubIter) {
388  output << padding << "stub: " << iStub++ << ", DetId: " << ((*stubIter)->getDetId()).rawId() << '\n';
389  }
390 
391  return output.str();
392 }
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 >
double TTTrack< T >::rInv ( ) const

Track curvature.

Definition at line 220 of file TTTrack.h.

References TTTrack< T >::Npars4, TTTrack< T >::Npars5, TTTrack< T >::NumFitPars, and TTTrack< T >::theRInv.

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

220  {
221  if (NumFitPars == Npars5 || NumFitPars == Npars4) {
222  return theRInv;
223  } else
224  return 0.0;
225 }
double theRInv
Definition: TTTrack.h:31
static unsigned int Npars5
Definition: TTTrack.h:47
static unsigned int Npars4
Definition: TTTrack.h:46
unsigned int NumFitPars
Definition: TTTrack.h:40
template<typename T >
void TTTrack< T >::setFitParNo ( unsigned int  aFitParNo)

Definition at line 197 of file TTTrack.h.

References TTTrack< T >::NumFitPars.

Referenced by TTTrack< T >::setTrackSeed().

197  {
198  NumFitPars = nPar;
199 
200  return;
201 }
unsigned int NumFitPars
Definition: TTTrack.h:40
template<typename T>
void TTTrack< T >::setPhiSector ( unsigned int  aSector)
inline

Definition at line 105 of file TTTrack.h.

105 { thePhiSector = aSector; }
unsigned int thePhiSector
Definition: TTTrack.h:37
template<typename T >
void TTTrack< T >::setStubPtConsistency ( double  aPtConsistency)

StubPtConsistency.

Definition at line 319 of file TTTrack.h.

References TTTrack< T >::theStubPtConsistency.

Referenced by TTTrack< T >::setTrackSeed().

319  {
320  theStubPtConsistency = aStubPtConsistency;
321 
322  return;
323 }
double theStubPtConsistency
Definition: TTTrack.h:38
template<typename T>
void TTTrack< T >::setStubRefs ( std::vector< edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > >  aStubs)
inline

Definition at line 71 of file TTTrack.h.

References TTTrack< T >::d0(), TTTrack< T >::eta(), TTTrack< T >::getMomentum(), TTTrack< T >::getPOCA(), TTTrack< T >::getRInv(), TTTrack< T >::momentum(), TTTrack< T >::phi(), TTTrack< T >::POCA(), TTTrack< T >::rInv(), TTTrack< T >::tanL(), and TTTrack< T >::z0().

71  {
72  theStubRefs = aStubs;
73  }
std::vector< edm::Ref< edmNew::DetSetVector< TTStub< T > >, TTStub< T > > > theStubRefs
Data members.
Definition: TTTrack.h:28
template<typename T>
void TTTrack< T >::setTrackSeed ( int  aSeed)
inline
template<typename T >
void TTTrack< T >::setTrackWordBits ( )

Set bits in 96-bit Track word.

Definition at line 336 of file TTTrack.h.

References TTTrack< T >::Npars4, TTTrack< T >::Npars5, TTTrack< T >::NumFitPars, TTTrack_TrackWord::setTrackWord(), TTTrack< T >::theChi2, TTTrack< T >::theHitPattern, TTTrack< T >::theMomentum, TTTrack< T >::thePOCA, TTTrack< T >::theRInv, and TTTrack< T >::theStubPtConsistency.

Referenced by TTTrack< T >::setTrackSeed().

336  {
337  if (!(NumFitPars == Npars4 || NumFitPars == Npars5)) {
338  edm::LogError("TTTrack") << " setTrackWordBits method is called with NumFitPars=" << NumFitPars
339  << " only possible values are 4/5" << std::endl;
340  return;
341  }
342 
343  unsigned int sparebits = 0;
344 
345  // missing conversion of global phi to difference from sector center phi
346 
348 
349  return;
350 }
double theRInv
Definition: TTTrack.h:31
static unsigned int Npars5
Definition: TTTrack.h:47
GlobalVector theMomentum
Definition: TTTrack.h:29
void setTrackWord(const GlobalVector &Momentum, const GlobalPoint &POCA, double theRinv, double theChi2, double theBendChi2, unsigned int theHitPattern, unsigned int iSpare)
static unsigned int Npars4
Definition: TTTrack.h:46
unsigned int theHitPattern
Definition: TTTrack.h:41
double theStubPtConsistency
Definition: TTTrack.h:38
double theChi2
Definition: TTTrack.h:39
unsigned int NumFitPars
Definition: TTTrack.h:40
GlobalPoint thePOCA
Definition: TTTrack.h:30
template<typename T >
double TTTrack< T >::tanL ( ) const

Track tanL.

Definition at line 234 of file TTTrack.h.

References TTTrack< T >::Npars4, TTTrack< T >::Npars5, TTTrack< T >::NumFitPars, and TTTrack< T >::theTanL.

Referenced by TTTrack< T >::setStubRefs().

234  {
235  if (NumFitPars == Npars5 || NumFitPars == Npars4) {
236  return theTanL;
237  } else
238  return 0.0;
239 }
static unsigned int Npars5
Definition: TTTrack.h:47
static unsigned int Npars4
Definition: TTTrack.h:46
double theTanL
Definition: TTTrack.h:33
unsigned int NumFitPars
Definition: TTTrack.h:40
template<typename T >
void TTTrack< T >::testTrackWordBits ( )

Test bits in 96-bit Track word.

Definition at line 354 of file TTTrack.h.

Referenced by TTTrack< T >::setTrackSeed().

354  {
355  // float rPhi = theMomentum.phi(); // this needs to be phi relative to center of sector ****
356  //float rEta = theMomentum.eta();
357  //float rZ0 = thePOCA.z();
358  //float rD0 = thePOCA.perp();
359 
360  //this is meant for debugging only.
361 
362  //std::cout << " phi " << rPhi << " " << get_iphi() << std::endl;
363  //std::cout << " eta " << rEta << " " << get_ieta() << std::endl;
364  //std::cout << " Z0 " << rZ0 << " " << get_iz0() << std::endl;
365  //std::cout << " D0 " << rD0 << " " << get_id0() << std::endl;
366  //std::cout << " Rinv " << theRInv << " " << get_iRinv() << std::endl;
367  //std::cout << " chi2 " << theChi2 << " " << get_ichi2() << std::endl;
368 
369  return;
370 }
template<typename T>
unsigned int TTTrack< T >::TrackSeed ( ) const
inline

Track seeding (for debugging)

Definition at line 108 of file TTTrack.h.

References TTTrack< T >::theTrackSeed.

108 { return theTrackSeed; }
int theTrackSeed
Definition: TTTrack.h:44
template<typename T >
double TTTrack< T >::z0 ( ) const

Track z0.

Definition at line 266 of file TTTrack.h.

References TTTrack< T >::Npars4, TTTrack< T >::Npars5, TTTrack< T >::NumFitPars, and TTTrack< T >::theZ0.

Referenced by TTTrack< T >::setStubRefs().

266  {
267  if (NumFitPars == Npars5 || NumFitPars == Npars4) {
268  return theZ0;
269  } else
270  return 0.0;
271 }
double theZ0
Definition: TTTrack.h:36
static unsigned int Npars5
Definition: TTTrack.h:47
static unsigned int Npars4
Definition: TTTrack.h:46
unsigned int NumFitPars
Definition: TTTrack.h:40

Member Data Documentation

template<typename T>
float TTTrack< T >::an_MVA_Value
private

Definition at line 42 of file TTTrack.h.

template<typename T>
float TTTrack< T >::another_MVA_Value
private

Definition at line 43 of file TTTrack.h.

template<typename T>
float TTTrack< T >::MagConstant = 0.3
staticprivate

Definition at line 48 of file TTTrack.h.

Referenced by TTTrack< T >::TTTrack().

template<typename T>
unsigned int TTTrack< T >::Npars4 = 4
staticprivate
template<typename T>
unsigned int TTTrack< T >::Npars5 = 5
staticprivate
template<typename T>
unsigned int TTTrack< T >::NumFitPars
private
template<typename T>
double TTTrack< T >::theBField
private

Definition at line 45 of file TTTrack.h.

Referenced by TTTrack< T >::TTTrack().

template<typename T>
double TTTrack< T >::theChi2
private
template<typename T>
double TTTrack< T >::theD0
private

Definition at line 35 of file TTTrack.h.

Referenced by TTTrack< T >::d0().

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

Definition at line 34 of file TTTrack.h.

Referenced by TTTrack< T >::eta().

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

Definition at line 41 of file TTTrack.h.

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

template<typename T>
GlobalVector TTTrack< T >::theMomentum
private
template<typename T>
double TTTrack< T >::thePhi
private

Definition at line 32 of file TTTrack.h.

Referenced by TTTrack< T >::phi().

template<typename T>
unsigned int TTTrack< T >::thePhiSector
private
template<typename T>
GlobalPoint TTTrack< T >::thePOCA
private
template<typename T>
double TTTrack< T >::theRInv
private
template<typename T>
double TTTrack< T >::theStubPtConsistency
private
template<typename T>
std::vector<edm::Ref<edmNew::DetSetVector<TTStub<T> >, TTStub<T> > > TTTrack< T >::theStubRefs
private

Data members.

Definition at line 28 of file TTTrack.h.

Referenced by TTTrack< T >::chi2Red(), TTTrack< T >::getStubRefs(), TTTrack< T >::print(), and TTTrack< T >::TTTrack().

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

Definition at line 33 of file TTTrack.h.

Referenced by TTTrack< T >::tanL().

template<typename T>
int TTTrack< T >::theTrackSeed
private

Definition at line 44 of file TTTrack.h.

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

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

Definition at line 36 of file TTTrack.h.

Referenced by TTTrack< T >::z0().