 |
ATLAS Offline Software
|
Go to the documentation of this file.
49 unsigned int details_index,
float energy,
50 float eta,
float phi,
long roi_word) :
70 if(details_cont != NULL && details_cont->
size() > details_index)
88 m_EMenergy(ttc->EMenergy()),
89 m_HADenergy(ttc->HADenergy()),
90 m_eCalib(ttc->eCalib()),
91 m_EMRadius2(ttc->EMRadius2()),
92 m_CaloRadius(ttc->CaloRadius()),
93 m_IsoFrac(ttc->IsoFrac()),
94 m_numStripCells(ttc->numStripCells()),
95 m_numTotCells(ttc->numTotCells()),
96 m_stripWidth(ttc->stripWidth()),
97 m_stripWidthOffline(ttc->stripWidthOffline()),
98 m_EMRadius3S(ttc->EMRadius3S()),
99 m_CoreFrac(ttc->CoreFrac()),
100 m_EMFrac(ttc->EMFrac()),
101 m_HadRadius(ttc->HadRadius()),
119 std::cout <<
"m_EMenergy : " <<
m_EMenergy <<
"; ";
120 std::cout <<
"m_HADenergy : " <<
m_HADenergy <<
"; ";
121 std::cout <<
"m_eCalib : " <<
m_eCalib <<
"; ";
122 std::cout <<
"Eta : " <<
eta() <<
"; ";
123 std::cout <<
"Phi : " <<
phi() <<
"; ";
188 double epsilon=0.001;
191 if(std::fabs(clus1.
eCalib() - clus2.
eCalib()) > epsilon)
return false;
194 if(std::fabs(clus1.
IsoFrac() - clus2.
IsoFrac()) > epsilon)
return false;
201 if(std::fabs(clus1.
EMFrac() - clus2.
EMFrac()) > epsilon)
return false;
215 stream << str(static_cast<const TrigCaloCluster&>(tau))
218 <<
"; eCalib:" << tau.
eCalib()
221 <<
"; IsoFrac:" << tau.
IsoFrac()
228 <<
"; EMFrac:" << tau.
EMFrac()
240 return (
m <<
str(tau));
246 const double epsilon = 0.001;
257 if(std::fabs(clus1.
eCalib() - clus2.
eCalib()) > epsilon)
297 if(std::fabs(clus1.
EMFrac() - clus2.
EMFrac()) > epsilon)
308 varChange[
"clusterDetails "] = 1;
312 varChange[
"clusterDetails "] = -1;
MsgStream & operator<<(MsgStream &m, const TrigTauCluster &tau)
Helper operator for printing the object.
float EMenergy() const
get EM Energy
float m_EMRadius3S
EM Radius 3S.
Scalar phi() const
phi method
float phi() const
get Phi of the cluster
const TrigTauClusterDetails * clusterDetails() const
accessor to TrigTauClusterDetails*
float EMRadius3S() const
get EM Radius 3S
float IsoFrac() const
get Isolation Fraction
float m_EMFrac
EM Fraction.
Scalar eta() const
pseudorapidity method
float m_stripWidth
Width in the strip sampling.
bool toIndexedElement(BaseConstReference data, index_type elemID, IProxyDict *sg=0)
Set the link to an element given by index and pointer to container.
float m_CaloRadius
Total Calo Radius.
float CaloRadius() const
get Total Calo Radius
float stripWidth() const
get Width in the strip sampling
Class with calibrated variables for tau clustering.
bool isValid() const
Test to see if the link can be dereferenced.
void setRoIword(long roiword)
set RoI Word
float m_IsoFrac
Isolation Fraction.
Container from TrigTauClusterDetails type objects.
float m_EMRadius2
EM Radius.
float m_eCalib
Calibrated Energy.
void diff(const TrigTauCluster &clus1, const TrigTauCluster &clus2, std::map< std::string, double > &varChange)
Comparison with feedback.
std::string str(const TrigTauCluster &tau)
Helper function for printing the object.
TrigTauCluster(float energy=0.0, float eta=-10.0, float phi=-10.0, long roi_word=0)
Constructors, please note the default values
void print(void) const
Prints out cluster variables to std::cout
~TrigTauCluster()
Destructor
int numTotCells() const
get Number of total cells in the cluster
float m_CoreFrac
Core Fraction.
void setClusterDetails(const ElementLink< TrigTauClusterDetailsContainer > &clusterDetailsLink)
float m_HADenergy
HAD Energy.
int m_numStripCells
Number of fired strips.
float m_stripWidthOffline
Width calculated as in Offline tauRec.
float EMFrac() const
get EM Fraction
void print(void) const
Prints out cluster variables to std::cout
float HadRadius() const
get Hadronic Radius
float m_HadRadius
Hadronic Radius.
float eta() const
get Eta of the cluster
bool operator==(const TrigTauCluster &clus1, const TrigTauCluster &clus2)
Operator comparing two TrigTauCluster objects for equality.
BaseConstReference getStorableObjectRef() const
Return a reference to the currently-referenced container object.
void reset()
Reset to default state.
float eCalib() const
get Calibrated Energy
float EMRadius2() const
get EM Radius
float stripWidthOffline() const
get Width as in offline
index_type index() const
Get the index of the element inside of its container.
float HADenergy() const
get HAD Energy
ElementLink< TrigTauClusterDetailsContainer > m_clusterDetails
ElementLink to TrigTauClusterDetailsContainer.
int numStripCells() const
get Number of fired strips
const ElementLink< TrigTauClusterDetailsContainer > & clusterDetailsLink() const
float CoreFrac() const
get Core Fraction
size_type size() const noexcept
Returns the number of elements in the collection.
int m_numTotCells
Total number of cells in the cluster.
float m_EMenergy
EM Energy.