ATLAS Offline Software
Classes | Namespaces | Functions
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h File Reference
#include <iostream>
#include <iomanip>
#include <string>
#include <vector>
#include <map>
#include "TObject.h"
Include dependency graph for Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:

Go to the source code of this file.

Classes

class  TIDA::Track
 

Namespaces

 TIDA
 Test for xAOD.
 

Functions

std::string hextobin (const unsigned &h, int nbits=32)
 
std::ostream & operator<< (std::ostream &s, const TIDA::Track &t)
 

Detailed Description

Author
mark sutton
Date
Thu 10 Jan 2019 19:58:49 CET

Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration

Definition in file Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h.

Function Documentation

◆ hextobin()

std::string hextobin ( const unsigned &  h,
int  nbits = 32 
)
inline

Definition at line 160 of file Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h.

160  {
161  std::string s;
162  for ( int i=nbits ; i-- ; ) s += ( (h>>i&0x1) ? "1" : "0" );
163  return s;
164 }

◆ operator<<()

std::ostream& operator<< ( std::ostream &  s,
const TIDA::Track t 
)
inline

Definition at line 167 of file Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h.

167  {
168  return s<< "[ "
169  << "\teta=" << t.eta()
170  << "\tphi=" << t.phi()
171  << "\tz0=" << t.z0()
172  << "\tpT=" << t.pT()*0.001 << " GeV "
173  // << "\tpT=" << t.pT()
174  << "\td0=" << t.a0()
175  << "\thp=0x" << std::hex << t.hitPattern() << std::dec << " "
176  // << "\thpb=" << hextobin(t.hitPattern(),20)
177  << "\tchi2=" << t.chi2() << "/" << t.dof()
178  << "\talgo=" << t.author()
179  << "\tbl=" << t.bLayerHits()
180  << ":" << ( t.expectBL() ? "t" : "f" )
181  << ":" << ( t.hasTruth() ? "t" : "f" )
182  << "\tid=0x" << std::hex << t.id() << std::dec << ":0x" << std::hex << t.barcode() << std::dec
183  << "\t] ";
184 }
plotBeamSpotCompare.x1
x1
Definition: plotBeamSpotCompare.py:216
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
lumiFormat.i
int i
Definition: lumiFormat.py:92
h