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

#include <TauPi0Details.h>

Inheritance diagram for Analysis::TauPi0Details:
Collaboration diagram for Analysis::TauPi0Details:

Public Member Functions

 TauPi0Details ()
 default constructor More...
 
 TauPi0Details (const TauPi0Details &rhs)
 Copy constructor. More...
 
virtual ~TauPi0Details ()
 destructor (virtual) More...
 
TauPi0Detailsoperator= (const TauPi0Details &rhs)
 Assignment operator. More...
 
virtual const std::string & className () const
 Get name of class. More...
 
const std::vector< TauPi0Candidate * > & pi0CandidateVector () const
 
std::vector< TauPi0Candidate * > & pi0CandidateVector ()
 
void addPi0Candidate (TauPi0Candidate *)
 
int nPi0Candidates () const
 
const std::vector< TauPi0Cluster * > & pi0ClusterVector () const
 
std::vector< TauPi0Cluster * > & pi0ClusterVector ()
 
void addPi0Cluster (TauPi0Cluster *)
 
int nPi0Clusters () const
 
const std::vector< TauShot * > & shotVector () const
 
std::vector< TauShot * > & shotVector ()
 
void addShot (TauShot *)
 
int nShots () 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...
 

Accessors for visTauhlv

static const std::string s_className = ClassName<TauPi0Details>::name()
 
std::vector< TauPi0Candidate * > m_pi0CandContainer
 
std::vector< TauPi0Cluster * > m_pi0ClusContainer
 
std::vector< TauShot * > m_shotContainer
 
CLHEP::HepLorentzVector m_visTau_hlv
 
void setVisTauhlv (CLHEP::HepLorentzVector visTauhlv)
 
CLHEP::HepLorentzVector visTauhlv () const
 
int nPi0s () const
 
CLHEP::HepLorentzVector sumPi0hlv () const
 

Detailed Description

Definition at line 35 of file TauPi0Details.h.

Constructor & Destructor Documentation

◆ TauPi0Details() [1/2]

Analysis::TauPi0Details::TauPi0Details ( )

default constructor

Definition at line 17 of file TauPi0Details.cxx.

17  :
18  TauDetails(),
20  m_visTau_hlv(HepLorentzVector(0.,0.,0.,0.))
21  {
22  }

◆ TauPi0Details() [2/2]

Analysis::TauPi0Details::TauPi0Details ( const TauPi0Details rhs)

Copy constructor.

Parameters
rhsTauPi0CandidateDetails instance to assign from

Definition at line 25 of file TauPi0Details.cxx.

25  :
26  TauDetails(),
28  {
29  std::vector<Analysis::TauPi0Candidate*>::const_iterator candIt = rhs.m_pi0CandContainer.begin();
30  std::vector<Analysis::TauPi0Candidate*>::const_iterator candItEnd = rhs.m_pi0CandContainer.end();
31  // create new copies and take ownership
32  for (; candIt!=candItEnd; ++candIt) m_pi0CandContainer.push_back( new TauPi0Candidate( *(*candIt) ) );
33 
34  // Same for TauPi0Clusters
35  std::vector<Analysis::TauPi0Cluster*>::const_iterator clusIt = rhs.m_pi0ClusContainer.begin();
36  std::vector<Analysis::TauPi0Cluster*>::const_iterator clusItEnd = rhs.m_pi0ClusContainer.end();
37  // create new copies and take ownership
38  for (; clusIt!=clusItEnd; ++clusIt) m_pi0ClusContainer.push_back( new TauPi0Cluster( *(*clusIt) ) );
39 
40  // Same for TauShots
41  std::vector<Analysis::TauShot*>::const_iterator shotIt = rhs.m_shotContainer.begin();
42  std::vector<Analysis::TauShot*>::const_iterator shotItEnd = rhs.m_shotContainer.end();
43  // create new copies and take ownership
44  for (; shotIt!=shotItEnd; ++shotIt) m_shotContainer.push_back( new TauShot( *(*shotIt) ) );
45 
46  m_visTau_hlv = rhs.m_visTau_hlv;
47  }

◆ ~TauPi0Details()

Analysis::TauPi0Details::~TauPi0Details ( )
virtual

destructor (virtual)

Definition at line 88 of file TauPi0Details.cxx.

89  {
90  std::vector<Analysis::TauPi0Candidate*>::const_iterator candIt = m_pi0CandContainer.begin();
91  std::vector<Analysis::TauPi0Candidate*>::const_iterator candItEnd = m_pi0CandContainer.end();
92  // delete existing objects
93  for (; candIt!=candItEnd; ++candIt) delete (*candIt);
94 
95  // Same for TauPi0Clusters
96  std::vector<Analysis::TauPi0Cluster*>::const_iterator clusIt = m_pi0ClusContainer.begin();
97  std::vector<Analysis::TauPi0Cluster*>::const_iterator clusItEnd = m_pi0ClusContainer.end();
98  // delete existing objects
99  for (; clusIt!=clusItEnd; ++clusIt) delete (*clusIt);
100 
101  // Same for TauShots
102  std::vector<Analysis::TauShot*>::const_iterator shotIt = m_shotContainer.begin();
103  std::vector<Analysis::TauShot*>::const_iterator shotItEnd = m_shotContainer.end();
104  // delete existing objects
105  for (; shotIt!=shotItEnd; ++shotIt) delete (*shotIt);
106 
107  }

Member Function Documentation

◆ addPi0Candidate()

void Analysis::TauPi0Details::addPi0Candidate ( TauPi0Candidate )

◆ addPi0Cluster()

void Analysis::TauPi0Details::addPi0Cluster ( TauPi0Cluster )

◆ addShot()

void Analysis::TauPi0Details::addShot ( TauShot )

◆ className()

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

Get name of class.

Returns
name of class

Implements Analysis::TauDetails.

Definition at line 112 of file TauPi0Details.cxx.

113  {
114  return s_className;
115  }

◆ 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  }

◆ nPi0Candidates()

int Analysis::TauPi0Details::nPi0Candidates ( ) const

◆ nPi0Clusters()

int Analysis::TauPi0Details::nPi0Clusters ( ) const

◆ nPi0s()

int Analysis::TauPi0Details::nPi0s ( ) const

◆ nShots()

int Analysis::TauPi0Details::nShots ( ) const

◆ operator=()

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

Assignment operator.

Parameters
rhsTauPi0CandidateDetails instance to assign from
Returns
assigned object

Definition at line 50 of file TauPi0Details.cxx.

51  {
52  if (this!=&rhs) {
53  std::vector<Analysis::TauPi0Candidate*>::const_iterator candIt = m_pi0CandContainer.begin();
54  std::vector<Analysis::TauPi0Candidate*>::const_iterator candItEnd = m_pi0CandContainer.end();
55  // delete existing objects
56  for (; candIt!=candItEnd; ++candIt) delete (*candIt);
57  candIt = rhs.m_pi0CandContainer.begin();
58  candItEnd = rhs.m_pi0CandContainer.end();
59  // create new copies and take ownership
60  for (; candIt!=candItEnd; ++candIt) m_pi0CandContainer.push_back( new TauPi0Candidate( *(*candIt) ) );
61 
62  // Same for TauPi0Clusters
63  std::vector<Analysis::TauPi0Cluster*>::const_iterator clusIt = m_pi0ClusContainer.begin();
64  std::vector<Analysis::TauPi0Cluster*>::const_iterator clusItEnd = m_pi0ClusContainer.end();
65  // delete existing objects
66  for (; clusIt!=clusItEnd; ++clusIt) delete (*clusIt);
67  clusIt = rhs.m_pi0ClusContainer.begin();
68  clusItEnd = rhs.m_pi0ClusContainer.end();
69  // create new copies and take ownership
70  for (; clusIt!=clusItEnd; ++clusIt) m_pi0ClusContainer.push_back( new TauPi0Cluster( *(*clusIt) ) );
71 
72  // Same for TauShots
73  std::vector<Analysis::TauShot*>::const_iterator shotIt = m_shotContainer.begin();
74  std::vector<Analysis::TauShot*>::const_iterator shotItEnd = m_shotContainer.end();
75  // delete existing objects
76  for (; shotIt!=shotItEnd; ++shotIt) delete (*shotIt);
77  shotIt = rhs.m_shotContainer.begin();
78  shotItEnd = rhs.m_shotContainer.end();
79  // create new copies and take ownership
80  for (; shotIt!=shotItEnd; ++shotIt) m_shotContainer.push_back( new TauShot( *(*shotIt) ) );
81 
82  m_visTau_hlv = rhs.m_visTau_hlv;
83  }
84  return *this;
85  }

◆ 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  }

◆ pi0CandidateVector() [1/2]

std::vector<TauPi0Candidate*>& Analysis::TauPi0Details::pi0CandidateVector ( )

◆ pi0CandidateVector() [2/2]

const std::vector<TauPi0Candidate*>& Analysis::TauPi0Details::pi0CandidateVector ( ) const

◆ pi0ClusterVector() [1/2]

std::vector<TauPi0Cluster*>& Analysis::TauPi0Details::pi0ClusterVector ( )

◆ pi0ClusterVector() [2/2]

const std::vector<TauPi0Cluster*>& Analysis::TauPi0Details::pi0ClusterVector ( ) const

◆ 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  }

◆ 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  }

◆ setVisTauhlv()

void Analysis::TauPi0Details::setVisTauhlv ( CLHEP::HepLorentzVector  visTauhlv)

◆ shotVector() [1/2]

std::vector<TauShot*>& Analysis::TauPi0Details::shotVector ( )

◆ shotVector() [2/2]

const std::vector<TauShot*>& Analysis::TauPi0Details::shotVector ( ) const

◆ sumPi0hlv()

CLHEP::HepLorentzVector Analysis::TauPi0Details::sumPi0hlv ( ) const

◆ 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  }

◆ visTauhlv()

CLHEP::HepLorentzVector Analysis::TauPi0Details::visTauhlv ( ) const

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_pi0CandContainer

std::vector<TauPi0Candidate*> Analysis::TauPi0Details::m_pi0CandContainer
private

Definition at line 106 of file TauPi0Details.h.

◆ m_pi0ClusContainer

std::vector<TauPi0Cluster*> Analysis::TauPi0Details::m_pi0ClusContainer
private

Definition at line 107 of file TauPi0Details.h.

◆ m_shotContainer

std::vector<TauShot*> Analysis::TauPi0Details::m_shotContainer
private

Definition at line 108 of file TauPi0Details.h.

◆ m_visTau_hlv

CLHEP::HepLorentzVector Analysis::TauPi0Details::m_visTau_hlv
private

Definition at line 109 of file TauPi0Details.h.

◆ s_className

const std::string Analysis::TauPi0Details::s_className = ClassName<TauPi0Details>::name()
staticprivate

Definition at line 101 of file TauPi0Details.h.


The documentation for this class was generated from the following files:
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
xAOD::PFODetails::TauShot
@ TauShot
Definition: Event/xAOD/xAODPFlow/xAODPFlow/PFODefs.h:171
Analysis::TauPi0Details::m_pi0ClusContainer
std::vector< TauPi0Cluster * > m_pi0ClusContainer
Definition: TauPi0Details.h:107
Analysis::TauDetails::TauDetails
TauDetails()
Default constructor.
Definition: TauDetails.cxx:26
Analysis::TauPi0Details::m_pi0CandContainer
std::vector< TauPi0Candidate * > m_pi0CandContainer
Definition: TauPi0Details.h:106
Analysis::TauPi0Details::s_className
static const std::string s_className
Definition: TauPi0Details.h:101
Analysis::TauPi0Details::m_visTau_hlv
CLHEP::HepLorentzVector m_visTau_hlv
Definition: TauPi0Details.h:109
Analysis::TauPi0Details::m_shotContainer
std::vector< TauShot * > m_shotContainer
Definition: TauPi0Details.h:108
Analysis::TauDetails::printOn
void printOn(stream &o) const
Printing function.
Definition: TauDetails.h:96