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)
107 m_clusterDetails.toIndexedElement(ttc->m_clusterDetails.getStorableObjectRef(), ttc->m_clusterDetails.index());
111 m_clusterDetails.reset();
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() <<
"; ";
140 log << MSG::DEBUG <<
"mEMenergy : " <<
m_EMenergy <<
"; ";
141 log << MSG::DEBUG <<
"m_HADenergy : " <<
m_HADenergy <<
"; ";
142 log << MSG::DEBUG <<
"m_eCalib : " <<
m_eCalib <<
"; ";
143 log << MSG::DEBUG <<
"Eta : " <<
eta() <<
"; ";
144 log << MSG::DEBUG <<
"Phi : " <<
phi() <<
"; ";
146 log << MSG::DEBUG <<
"m_numTotCells : " <<
m_numTotCells <<
"; ";
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;
214 std::stringstream stream;
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.
bool operator==(const TrigTauCluster &clus1, const TrigTauCluster &clus2)
Operator comparing two TrigTauCluster objects for equality.
void diff(const TrigTauCluster &clus1, const TrigTauCluster &clus2, std::map< std::string, double > &varChange)
Comparison with feedback.
size_type size() const noexcept
Returns the number of elements in the collection.
ElementLink implementation for ROOT usage.
TrigCaloCluster(float energy=0.0, float eta=-10.0, float phi=-10.0, long roi_word=0)
Constructor, please note the default values.
void setRoIword(long roiword)
set RoI Word
void print(void) const
Prints out cluster variables to std::cout.
Container from TrigTauClusterDetails type objects.
Class with calibrated variables for tau clustering.
float HadRadius() const
get Hadronic Radius
int numStripCells() const
get Number of fired strips
float EMRadius3S() const
get EM Radius 3S
float CoreFrac() const
get Core Fraction
const TrigTauClusterDetails * clusterDetails() const
accessor to TrigTauClusterDetails*
TrigTauCluster(float energy=0.0, float eta=-10.0, float phi=-10.0, long roi_word=0)
Constructors, please note the default values.
~TrigTauCluster()
Destructor.
float eta() const
get Eta of the cluster
float EMRadius2() const
get EM Radius
float eCalib() const
get Calibrated Energy
float stripWidthOffline() const
get Width as in offline
float m_stripWidth
Width in the strip sampling.
float m_CaloRadius
Total Calo Radius.
float m_IsoFrac
Isolation Fraction.
float m_EMenergy
EM Energy.
float m_EMRadius2
EM Radius.
ElementLink< TrigTauClusterDetailsContainer > m_clusterDetails
ElementLink to TrigTauClusterDetailsContainer.
float phi() const
get Phi of the cluster
float m_HADenergy
HAD Energy.
float m_EMFrac
EM Fraction.
float stripWidth() const
get Width in the strip sampling
int numTotCells() const
get Number of total cells in the cluster
const ElementLink< TrigTauClusterDetailsContainer > & clusterDetailsLink() const
float EMenergy() const
get EM Energy
float CaloRadius() const
get Total Calo Radius
float m_stripWidthOffline
Width calculated as in Offline tauRec.
void setClusterDetails(const ElementLink< TrigTauClusterDetailsContainer > &clusterDetailsLink)
float HADenergy() const
get HAD Energy
float energy() const
get Raw Energy
float m_eCalib
Calibrated Energy.
float m_EMRadius3S
EM Radius 3S.
int m_numTotCells
Total number of cells in the cluster.
float m_HadRadius
Hadronic Radius.
float IsoFrac() const
get Isolation Fraction
int m_numStripCells
Number of fired strips.
float EMFrac() const
get EM Fraction
float m_CoreFrac
Core Fraction.
void print(void) const
Prints out cluster variables to std::cout.