ATLAS Offline Software
Public Member Functions | Static Public Attributes | Protected Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
Analysis::Tau1P3PExtraDetails Class Reference

DEPRECATED DO NOT USE - MIGRATE TO TauCommonDetails Extended details class containing information produced by tau1P3P algorithm, goes to ESD only. More...

#include <Tau1P3PExtraDetails.h>

Inheritance diagram for Analysis::Tau1P3PExtraDetails:
Collaboration diagram for Analysis::Tau1P3PExtraDetails:

Public Member Functions

 Tau1P3PExtraDetails ()
 Constructor. More...
 
 Tau1P3PExtraDetails (const Tau1P3PExtraDetails &rhs)
 Copy constructor. More...
 
virtual ~Tau1P3PExtraDetails ()
 Destructor. More...
 
Tau1P3PExtraDetailsoperator= (const Tau1P3PExtraDetails &rhs)
 Assignment operator. More...
 
virtual const std::string & className () const
 
void allocTracksAndSamplings (unsigned tracks, unsigned samplings)
 Allocate data structures for given number of tracks and samplings. More...
 
const CaloCellclosestEtaTrkVertCell (int itrk, int num) const
 Closest cell to track position at vertex in eta for track "itrk" in samp "num". More...
 
void setClosestEtaTrkVertCell (const CaloCell *val, const CaloCellContainer *cont, int itrk, int num)
 
void setClosestEtaTrkVertCellLink (const ElementLink< CaloCellContainer > &el, int itrk, int num)
 
const CaloCellclosestPhiTrkVertCell (int itrk, int num) const
 Closest cell to track position at vertex in phi for track "itrk" in samp "num". More...
 
void setClosestPhiTrkVertCell (const CaloCell *val, const CaloCellContainer *cont, int itrk, int num)
 
void setClosestPhiTrkVertCellLink (const ElementLink< CaloCellContainer > &el, int itrk, int num)
 
const CaloCellclosestEtaTrkCell (int itrk, int num) const
 Closest cell to track position from extrapolation in eta for track "itrk" in samp "num". More...
 
void setClosestEtaTrkCell (const CaloCell *val, const CaloCellContainer *cont, int itrk, int num)
 
void setClosestEtaTrkCellLink (const ElementLink< CaloCellContainer > &el, int itrk, int num)
 
const CaloCellclosestPhiTrkCell (int itrk, int num) const
 Closest cell to track position from extrapolation in phi for track "itrk" in samp "num". More...
 
void setClosestPhiTrkCell (const CaloCell *val, const CaloCellContainer *cont, int itrk, int num)
 
void setClosestPhiTrkCellLink (const ElementLink< CaloCellContainer > &el, int itrk, int num)
 
double etaTrackCaloSamp (int itrk, int i) const
 Eta of extrapolation point in EM Calo in "i" sampling for track "itrk". More...
 
void setEtaTrackCaloSamp (int itrk, int i, double eta)
 
double phiTrackCaloSamp (int itrk, int i) const
 Phi of extrapolation point in EM Calo in "i" sampling for track "itrk". More...
 
void setPhiTrackCaloSamp (int itrk, int i, double eta)
 
double sumPTTracks ()
 Sum of PT of tracks. More...
 
void setSumPTTracks (double sumPTTracks)
 
unsigned int ntrack () const
 
unsigned int nsamp () const
 
std::string toString () const
 Uses printOn to make a string of the TauDetails. More...
 

Static Public Attributes

static const float DEFAULT = -1111.
 
static const int DEFAULT_INT = INT_MIN
 

Protected Member Functions

template<class stream >
void printOn (stream &o) const
 Printing function. More...
 

Private Attributes

std::vector< std::vector< ElementLink< CaloCellContainer > > > m_closestEtaTrkVertCell
 
std::vector< std::vector< ElementLink< CaloCellContainer > > > m_closestEtaTrkCell
 
std::vector< std::vector< ElementLink< CaloCellContainer > > > m_closestPhiTrkVertCell
 
std::vector< std::vector< ElementLink< CaloCellContainer > > > m_closestPhiTrkCell
 
std::vector< std::vector< double > > m_etaTrackCaloSamp
 
std::vector< std::vector< double > > m_phiTrackCaloSamp
 
double m_sumPTTracks
 

Static Private Attributes

static const std::string s_className
 

Friends

class TauJet
 Definition of the current "tau version". More...
 
class Tau1P3PExtraDetailsCnv_p1
 

Detailed Description

DEPRECATED DO NOT USE - MIGRATE TO TauCommonDetails Extended details class containing information produced by tau1P3P algorithm, goes to ESD only.

Definition at line 35 of file Tau1P3PExtraDetails.h.

Constructor & Destructor Documentation

◆ Tau1P3PExtraDetails() [1/2]

Analysis::Tau1P3PExtraDetails::Tau1P3PExtraDetails ( )

Constructor.

Definition at line 24 of file Tau1P3PExtraDetails.cxx.

25  : TauDetails(),
26  m_sumPTTracks(0)
27  {
28  allocTracksAndSamplings( 10, 4 );
29  }

◆ Tau1P3PExtraDetails() [2/2]

Analysis::Tau1P3PExtraDetails::Tau1P3PExtraDetails ( const Tau1P3PExtraDetails rhs)

Copy constructor.

Parameters
rhsTau1P3PExtraDetails instance to copy

Definition at line 35 of file Tau1P3PExtraDetails.cxx.

36  :
37  TauDetails(),
38  m_closestEtaTrkVertCell(rhs.m_closestEtaTrkVertCell),
39  m_closestEtaTrkCell(rhs.m_closestEtaTrkCell),
40  m_closestPhiTrkVertCell(rhs.m_closestPhiTrkVertCell),
41  m_closestPhiTrkCell(rhs.m_closestPhiTrkCell),
42  m_etaTrackCaloSamp(rhs.m_etaTrackCaloSamp),
43  m_phiTrackCaloSamp(rhs.m_phiTrackCaloSamp),
44  m_sumPTTracks(rhs.m_sumPTTracks)
45  {
46  }

◆ ~Tau1P3PExtraDetails()

Analysis::Tau1P3PExtraDetails::~Tau1P3PExtraDetails ( )
virtual

Destructor.

Definition at line 31 of file Tau1P3PExtraDetails.cxx.

32  {
33  }

Member Function Documentation

◆ allocTracksAndSamplings()

void Analysis::Tau1P3PExtraDetails::allocTracksAndSamplings ( unsigned  tracks,
unsigned  samplings 
)
inline

Allocate data structures for given number of tracks and samplings.

Definition at line 152 of file Tau1P3PExtraDetails.h.

153  {
154  if( tracks == 0 || samplings == 0 )
155  return;
156 
157  std::vector<ElementLink<CaloCellContainer> > initEL( samplings );
158 
159  m_closestEtaTrkVertCell.clear();
160  m_closestEtaTrkVertCell.resize( tracks, initEL );
161 
162  m_closestEtaTrkCell.clear();
163  m_closestEtaTrkCell.resize( tracks, initEL );
164 
165  m_closestPhiTrkVertCell.clear();
166  m_closestPhiTrkVertCell.resize( tracks, initEL );
167 
168  m_closestPhiTrkCell.clear();
169  m_closestPhiTrkCell.resize( tracks, initEL );
170 
171  std::vector<double> initD( samplings, TauDetails::DEFAULT );
172  m_etaTrackCaloSamp.clear();
173  m_etaTrackCaloSamp.resize( tracks, initD );
174  m_phiTrackCaloSamp.clear();
175  m_phiTrackCaloSamp.resize( tracks, initD );
176  }

◆ className()

const std::string & Analysis::Tau1P3PExtraDetails::className ( ) const
virtual

Implements Analysis::TauDetails.

Definition at line 65 of file Tau1P3PExtraDetails.cxx.

66  {
67  return s_className;
68  }

◆ closestEtaTrkCell()

const CaloCell * Analysis::Tau1P3PExtraDetails::closestEtaTrkCell ( int  itrk,
int  num 
) const
inline

Closest cell to track position from extrapolation in eta for track "itrk" in samp "num".

Definition at line 224 of file Tau1P3PExtraDetails.h.

225  {
226  if( m_closestEtaTrkCell[itrk][num].isValid() )
227  return *m_closestEtaTrkCell[itrk][num];
228  else
229  return 0;
230  }

◆ closestEtaTrkVertCell()

const CaloCell * Analysis::Tau1P3PExtraDetails::closestEtaTrkVertCell ( int  itrk,
int  num 
) const
inline

Closest cell to track position at vertex in eta for track "itrk" in samp "num".

Definition at line 181 of file Tau1P3PExtraDetails.h.

182  {
183  if( m_closestEtaTrkVertCell[itrk][num].isValid() )
184  return *m_closestEtaTrkVertCell[itrk][num];
185  else
186  return 0;
187  }

◆ closestPhiTrkCell()

const CaloCell * Analysis::Tau1P3PExtraDetails::closestPhiTrkCell ( int  itrk,
int  num 
) const
inline

Closest cell to track position from extrapolation in phi for track "itrk" in samp "num".

Definition at line 245 of file Tau1P3PExtraDetails.h.

246  {
247  if( m_closestPhiTrkCell[itrk][num].isValid() )
248  return *m_closestPhiTrkCell[itrk][num];
249  else
250  return 0;
251  }

◆ closestPhiTrkVertCell()

const CaloCell * Analysis::Tau1P3PExtraDetails::closestPhiTrkVertCell ( int  itrk,
int  num 
) const
inline

Closest cell to track position at vertex in phi for track "itrk" in samp "num".

Definition at line 202 of file Tau1P3PExtraDetails.h.

203  {
204  if( m_closestPhiTrkVertCell[itrk][num].isValid() )
205  return *m_closestPhiTrkVertCell[itrk][num];
206  else
207  return 0;
208  }

◆ etaTrackCaloSamp()

double Analysis::Tau1P3PExtraDetails::etaTrackCaloSamp ( int  itrk,
int  i 
) const
inline

Eta of extrapolation point in EM Calo in "i" sampling for track "itrk".

Definition at line 269 of file Tau1P3PExtraDetails.h.

270  {
271  return m_etaTrackCaloSamp[itrk][i];
272  }

◆ hasParameter()

bool Analysis::TauDetails::hasParameter ( TauJetParameters ::Detail  detail) const
virtualinherited

check if parameter exists

Reimplemented in Analysis::TauRecDetails, and Analysis::Tau1P3PDetails.

Definition at line 53 of file TauDetails.cxx.

55  {
56  return false;
57  }

◆ intParameter()

int Analysis::TauDetails::intParameter ( TauJetParameters ::Detail  detail) const
virtualinherited

value of parameter (type int)

Definition at line 47 of file TauDetails.cxx.

49  {
50  return 0;
51  }

◆ nsamp()

unsigned int Analysis::Tau1P3PExtraDetails::nsamp ( ) const

Definition at line 75 of file Tau1P3PExtraDetails.cxx.

76  {
77  if (m_closestEtaTrkVertCell.empty())
78  return 0;
79  return m_closestEtaTrkVertCell[0].size();
80  }

◆ ntrack()

unsigned int Analysis::Tau1P3PExtraDetails::ntrack ( ) const

Definition at line 70 of file Tau1P3PExtraDetails.cxx.

71  {
72  return m_closestEtaTrkVertCell.size();
73  }

◆ operator=()

Tau1P3PExtraDetails & Analysis::Tau1P3PExtraDetails::operator= ( const Tau1P3PExtraDetails rhs)

Assignment operator.

Parameters
rhsTau1P3PExtrauDetails instance to assign from
Returns
assigned object

Definition at line 48 of file Tau1P3PExtraDetails.cxx.

50  {
51  if(this != &rhs) {
52  m_closestEtaTrkVertCell=rhs.m_closestEtaTrkVertCell;
53  m_closestEtaTrkCell=rhs.m_closestEtaTrkCell;
54  m_closestPhiTrkVertCell=rhs.m_closestPhiTrkVertCell;
55  m_closestPhiTrkCell=rhs.m_closestPhiTrkCell;
56  m_etaTrackCaloSamp=rhs.m_etaTrackCaloSamp;
57  m_phiTrackCaloSamp=rhs.m_phiTrackCaloSamp;
58  m_sumPTTracks=rhs.m_sumPTTracks;
59  }
60  return *this;
61  }

◆ parameter()

double Analysis::TauDetails::parameter ( TauJetParameters ::Detail  detail) const
virtualinherited

Reimplemented in Analysis::TauRecDetails, and Analysis::Tau1P3PDetails.

Definition at line 41 of file TauDetails.cxx.

43  {
44  return 0.;
45  }

◆ phiTrackCaloSamp()

double Analysis::Tau1P3PExtraDetails::phiTrackCaloSamp ( int  itrk,
int  i 
) const
inline

Phi of extrapolation point in EM Calo in "i" sampling for track "itrk".

Definition at line 280 of file Tau1P3PExtraDetails.h.

281  {
282  return m_phiTrackCaloSamp[itrk][i];
283  }

◆ printOn()

template<class stream >
void Analysis::TauDetails::printOn ( stream &  o) const
protectedinherited

Printing function.

Parameters
ostring to print to

Definition at line 96 of file TauDetails.h.

97  {
98  o << "TauDetails;";
99  }

◆ setClosestEtaTrkCell()

void Analysis::Tau1P3PExtraDetails::setClosestEtaTrkCell ( const CaloCell val,
const CaloCellContainer cont,
int  itrk,
int  num 
)
inline

Definition at line 232 of file Tau1P3PExtraDetails.h.

235  {
236  m_closestEtaTrkCell[itrk][num].toContainedElement( *cont, val );
237  }

◆ setClosestEtaTrkCellLink()

void Analysis::Tau1P3PExtraDetails::setClosestEtaTrkCellLink ( const ElementLink< CaloCellContainer > &  el,
int  itrk,
int  num 
)
inline

Definition at line 239 of file Tau1P3PExtraDetails.h.

241  {
242  m_closestEtaTrkCell[itrk][num] = el;
243  }

◆ setClosestEtaTrkVertCell()

void Analysis::Tau1P3PExtraDetails::setClosestEtaTrkVertCell ( const CaloCell val,
const CaloCellContainer cont,
int  itrk,
int  num 
)
inline

Definition at line 189 of file Tau1P3PExtraDetails.h.

192  {
193  m_closestEtaTrkVertCell[itrk][num].toContainedElement( *cont,val );
194  }

◆ setClosestEtaTrkVertCellLink()

void Analysis::Tau1P3PExtraDetails::setClosestEtaTrkVertCellLink ( const ElementLink< CaloCellContainer > &  el,
int  itrk,
int  num 
)
inline

Definition at line 196 of file Tau1P3PExtraDetails.h.

198  {
199  m_closestEtaTrkVertCell[itrk][num] = el;
200  }

◆ setClosestPhiTrkCell()

void Analysis::Tau1P3PExtraDetails::setClosestPhiTrkCell ( const CaloCell val,
const CaloCellContainer cont,
int  itrk,
int  num 
)
inline

Definition at line 253 of file Tau1P3PExtraDetails.h.

256  {
257  m_closestPhiTrkCell[itrk][num].toContainedElement( *cont, val );
258  }

◆ setClosestPhiTrkCellLink()

void Analysis::Tau1P3PExtraDetails::setClosestPhiTrkCellLink ( const ElementLink< CaloCellContainer > &  el,
int  itrk,
int  num 
)
inline

Definition at line 260 of file Tau1P3PExtraDetails.h.

262  {
263  m_closestPhiTrkCell[itrk][num] = el;
264  }

◆ setClosestPhiTrkVertCell()

void Analysis::Tau1P3PExtraDetails::setClosestPhiTrkVertCell ( const CaloCell val,
const CaloCellContainer cont,
int  itrk,
int  num 
)
inline

Definition at line 210 of file Tau1P3PExtraDetails.h.

213  {
214  m_closestPhiTrkVertCell[itrk][num].toContainedElement( *cont, val );
215  }

◆ setClosestPhiTrkVertCellLink()

void Analysis::Tau1P3PExtraDetails::setClosestPhiTrkVertCellLink ( const ElementLink< CaloCellContainer > &  el,
int  itrk,
int  num 
)
inline

Definition at line 218 of file Tau1P3PExtraDetails.h.

220  {
221  m_closestPhiTrkVertCell[itrk][num] = el;
222  }

◆ setEtaTrackCaloSamp()

void Analysis::Tau1P3PExtraDetails::setEtaTrackCaloSamp ( int  itrk,
int  i,
double  eta 
)
inline

Definition at line 274 of file Tau1P3PExtraDetails.h.

276  {
277  m_etaTrackCaloSamp[itrk][i] = eta ;
278  }

◆ setIntParameter()

void Analysis::TauDetails::setIntParameter ( TauJetParameters ::Detail  detail,
int  param 
)
virtualinherited

set parameter of type int

Definition at line 64 of file TauDetails.cxx.

66  {
67  }

◆ setParameter()

void Analysis::TauDetails::setParameter ( TauJetParameters ::Detail  detail,
double  param 
)
virtualinherited

set parameter of type double

Definition at line 59 of file TauDetails.cxx.

61  {
62  }

◆ setPhiTrackCaloSamp()

void Analysis::Tau1P3PExtraDetails::setPhiTrackCaloSamp ( int  itrk,
int  i,
double  eta 
)
inline

Definition at line 285 of file Tau1P3PExtraDetails.h.

287  {
288  m_phiTrackCaloSamp[itrk][i] = phi ;
289  }

◆ setSumPTTracks()

void Analysis::Tau1P3PExtraDetails::setSumPTTracks ( double  sumPTTracks)
inline

Definition at line 296 of file Tau1P3PExtraDetails.h.

297  {
299  }

◆ sumPTTracks()

double Analysis::Tau1P3PExtraDetails::sumPTTracks ( )
inline

Sum of PT of tracks.

Definition at line 291 of file Tau1P3PExtraDetails.h.

292  {
293  return m_sumPTTracks;
294  }

◆ toString()

std::string Analysis::TauDetails::toString ( ) const
inherited

Uses printOn to make a string of the TauDetails.

Returns
string representation of tau details

Definition at line 34 of file TauDetails.cxx.

35  {
36  std::stringstream s;
37  printOn(s);
38  return s.str();
39  }

Friends And Related Function Documentation

◆ Tau1P3PExtraDetailsCnv_p1

friend class Tau1P3PExtraDetailsCnv_p1
friend

Definition at line 38 of file Tau1P3PExtraDetails.h.

◆ TauJet

friend class TauJet
friend

Definition of the current "tau version".

Definition at line 37 of file Tau1P3PExtraDetails.h.

Member Data Documentation

◆ DEFAULT

const float Analysis::TauDetails::DEFAULT = -1111.
staticinherited

Definition at line 34 of file TauDetails.h.

◆ DEFAULT_INT

const int Analysis::TauDetails::DEFAULT_INT = INT_MIN
staticinherited

Definition at line 35 of file TauDetails.h.

◆ m_closestEtaTrkCell

std::vector<std::vector<ElementLink<CaloCellContainer> > > Analysis::Tau1P3PExtraDetails::m_closestEtaTrkCell
private

Definition at line 139 of file Tau1P3PExtraDetails.h.

◆ m_closestEtaTrkVertCell

std::vector<std::vector<ElementLink<CaloCellContainer> > > Analysis::Tau1P3PExtraDetails::m_closestEtaTrkVertCell
private

Definition at line 137 of file Tau1P3PExtraDetails.h.

◆ m_closestPhiTrkCell

std::vector<std::vector<ElementLink<CaloCellContainer> > > Analysis::Tau1P3PExtraDetails::m_closestPhiTrkCell
private

Definition at line 143 of file Tau1P3PExtraDetails.h.

◆ m_closestPhiTrkVertCell

std::vector<std::vector<ElementLink<CaloCellContainer> > > Analysis::Tau1P3PExtraDetails::m_closestPhiTrkVertCell
private

Definition at line 141 of file Tau1P3PExtraDetails.h.

◆ m_etaTrackCaloSamp

std::vector<std::vector<double> > Analysis::Tau1P3PExtraDetails::m_etaTrackCaloSamp
private

Definition at line 144 of file Tau1P3PExtraDetails.h.

◆ m_phiTrackCaloSamp

std::vector<std::vector<double> > Analysis::Tau1P3PExtraDetails::m_phiTrackCaloSamp
private

Definition at line 145 of file Tau1P3PExtraDetails.h.

◆ m_sumPTTracks

double Analysis::Tau1P3PExtraDetails::m_sumPTTracks
private

Definition at line 146 of file Tau1P3PExtraDetails.h.

◆ s_className

const std::string Analysis::Tau1P3PExtraDetails::s_className
staticprivate
Initial value:

Definition at line 135 of file Tau1P3PExtraDetails.h.


The documentation for this class was generated from the following files:
test_pyathena.eta
eta
Definition: test_pyathena.py:10
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
Analysis::Tau1P3PExtraDetails::m_closestPhiTrkCell
std::vector< std::vector< ElementLink< CaloCellContainer > > > m_closestPhiTrkCell
Definition: Tau1P3PExtraDetails.h:143
Analysis::Tau1P3PExtraDetails::m_sumPTTracks
double m_sumPTTracks
Definition: Tau1P3PExtraDetails.h:146
Analysis::TauDetails::DEFAULT
static const float DEFAULT
Definition: TauDetails.h:34
Analysis::Tau1P3PExtraDetails::sumPTTracks
double sumPTTracks()
Sum of PT of tracks.
Definition: Tau1P3PExtraDetails.h:291
isValid
bool isValid(const T &p)
Av: we implement here an ATLAS-sepcific convention: all particles which are 99xxxxx are fine.
Definition: AtlasPID.h:620
Analysis::TauDetails::TauDetails
TauDetails()
Default constructor.
Definition: TauDetails.cxx:26
xAOD::phi
setEt phi
Definition: TrigEMCluster_v1.cxx:29
Analysis::Tau1P3PExtraDetails::m_etaTrackCaloSamp
std::vector< std::vector< double > > m_etaTrackCaloSamp
Definition: Tau1P3PExtraDetails.h:144
lumiFormat.i
int i
Definition: lumiFormat.py:85
ClassName::name
static std::string name()
Return the name of class T as a string.
Analysis::Tau1P3PExtraDetails::s_className
static const std::string s_className
Definition: Tau1P3PExtraDetails.h:135
plotIsoValidation.el
el
Definition: plotIsoValidation.py:197
trigbs_pickEvents.num
num
Definition: trigbs_pickEvents.py:76
Analysis::Tau1P3PExtraDetails::m_closestPhiTrkVertCell
std::vector< std::vector< ElementLink< CaloCellContainer > > > m_closestPhiTrkVertCell
Definition: Tau1P3PExtraDetails.h:141
Analysis::Tau1P3PExtraDetails::m_phiTrackCaloSamp
std::vector< std::vector< double > > m_phiTrackCaloSamp
Definition: Tau1P3PExtraDetails.h:145
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
Analysis::Tau1P3PExtraDetails::allocTracksAndSamplings
void allocTracksAndSamplings(unsigned tracks, unsigned samplings)
Allocate data structures for given number of tracks and samplings.
Definition: Tau1P3PExtraDetails.h:152
Analysis::TauDetails::printOn
void printOn(stream &o) const
Printing function.
Definition: TauDetails.h:96
Analysis::Tau1P3PExtraDetails::m_closestEtaTrkVertCell
std::vector< std::vector< ElementLink< CaloCellContainer > > > m_closestEtaTrkVertCell
Definition: Tau1P3PExtraDetails.h:137
Analysis::Tau1P3PExtraDetails::m_closestEtaTrkCell
std::vector< std::vector< ElementLink< CaloCellContainer > > > m_closestEtaTrkCell
Definition: Tau1P3PExtraDetails.h:139