|
ATLAS Offline Software
|
Go to the documentation of this file.
27 #include "CaloGeoHelpers/CaloSampling.h"
63 unsigned int cluster_index ) :
88 if (cluster_cont != NULL && cluster_cont->
size() > cluster_index) {
110 if (cl_ptr->
eta() != 0) {
117 if (cl_ptr->
e277() != 0) {
133 float tmp_cl_energy = cl_ptr->
energy();
134 if (fabs(tmp_cl_energy) > 0.00001) {
188 m_energyRatio(energyRatio),
262 v_diff[
"RoIword"] = tp1.
roiId() - tp2.
roiId();
264 if(fabs(tp1.
Et())+fabs(tp2.
Et()) !=0)
265 v_diff[
"Et"] = 2 * fabs( ( fabs(tp1.
Et()) - fabs(tp2.
Et() )) / ( fabs(tp1.
Et())+fabs(tp2.
Et()) ) );
266 v_diff[
"HadEt1"] = 0;
268 v_diff[
"HadEt1"] = 2 * fabs( ( fabs(tp1.
HadEt1()) - fabs(tp2.
HadEt1() )) / ( fabs(tp1.
HadEt1())+fabs(tp2.
HadEt1()) ) );
270 v_diff[
"rCore"] = fabs(tp1.
Reta() - tp2.
Reta());
271 v_diff[
"Eta"] = fabs( tp1.
eta() - tp2.
eta() );
272 double d_phi = fabs( tp1.
phi() - tp2.
phi() );
273 v_diff[
"Phi"] = (d_phi <
M_PI ? d_phi : 2*
M_PI - d_phi);
275 v_diff[
"F0"] = fabs(tp1.
F0() - tp2.
F0());
276 v_diff[
"F1"] = fabs(tp1.
F1() - tp2.
F1());
277 v_diff[
"F2"] = fabs(tp1.
F2() - tp2.
F2());
278 v_diff[
"F3"] = fabs(tp1.
F3() - tp2.
F3());
285 return (
msg <<
"TrigPhoton " << (
tp.isValid() ?
"(valid)" :
"(not valid)")
286 <<
": RoI = " <<
tp.roiWord()
287 <<
"; Et = " <<
tp.Et()
288 <<
"; eta = " <<
tp.eta()
289 <<
"; phi = " <<
tp.phi()
290 <<
"; Delta_eta = " <<
tp.dEta() <<
"; Delta_phi = " <<
tp.dPhi()
291 <<
"; Eratio = " <<
tp.Eratio() <<
"; Rcore = " <<
tp.Reta()
293 <<
"; F0 = "<<
tp.F0()<<
"; F1 = "<<
tp.F1()<<
"; F2 = "<<
tp.F2()<<
"; F3 = "<<
tp.F3() );
Scalar phi() const
phi method
float Et() const
accessor EM cluster et
float F0() const
accessors for calibrated energy and energy fraction in calo samples
Scalar eta() const
pseudorapidity method
float e2tsts1() const
get second maximum energy in sampling 1 (strip layer)
int roiId() const
accessor to get RoI ID (should also introduce roiWord
bool toIndexedElement(BaseConstReference data, index_type elemID, IProxyDict *sg=0)
Set the link to an element given by index and pointer to container.
float phi() const
get Phi (calibrated)
Dummy type needed fro specialized implementation.
Class with calibrated variables for egamma clustering.
Container from TrigEMCluster type objects.
ElementLink< TrigEMClusterContainer > m_cluster
float e277() const
get Energy in a 7x7 cluster (no calibration) around hottest cell
bool isValid() const
Test to see if the link can be dereferenced.
float weta2() const
get cluster width (based on a 3x5 cluster - 2nd layer)
float fracs1() const
get Energy in a 7 strips (around hottest strip) minus energy in 3 strips divided by energy in 3 strip...
virtual double phi() const
get phi data member
virtual void setPt(double thePt)
set pt data member
float e237() const
get Energy in a 3x7 cluster (no calibration) around hottest cell
bool operator==(const TrigPhoton &tp1, const TrigPhoton &tp2)
Two TrigPhoton are the same if they have the same cluster (and if valid)
virtual void setPhi(double thePhi)
set phi data member
virtual void setEta(double theEta)
set eta data member
float eta() const
get Eta (calibrated)
TrigPhoton()
constructors; note: default constructor needed by POOL
float ehad1() const
get hadronic Energy (first hadronic layer)
float energy() const
get Energy (calibrated)
virtual double eta() const
get eta data member
void diff(const TrigPhoton &tp1, const TrigPhoton &tp2, std::map< std::string, double > &v_diff)
Function compares two objects and returns "semi verbose" output in the form of map v_diff where varai...
const TrigEMCluster * cluster() const
other accessors for shower shapes
MsgStream & operator<<(MsgStream &msg, const TrigPhoton &tp)
print TrigPhoton quantities
void reset()
Reset to default state.
float emaxs1() const
get maximum energy in sampling 1 (strip layer)
size_type size() const noexcept
Returns the number of elements in the collection.
float et() const
get Et (calibrated)