CMS 3D CMS Logo

Classes | Typedefs | Enumerations | Functions
pftools Namespace Reference

Classes

class  Calibratable
 Wraps essential single particle calibration data ready for export to a Root file. More...
 
class  CalibratableElement
 Small wrapper class for storing individual rechit and cluster information. More...
 
class  CalibrationResultWrapper
 A small class designed to hold the result of a calibration of a SingleParticleWrapper. More...
 
class  CaloBox
 
class  CaloEllipse
 
class  CaloRing
 
class  CaloWindow
 
class  CandidateWrapper
 Small wrapper class to store information associated with PFCandidates. More...
 
class  ParticleFiltrationDecision
 Articulates the decision of the ParticleFilter in RecoParticleFlow/PFAnalyses. More...
 
class  TestCaloWindow
 

Typedefs

typedef ParticleFiltrationDecisionRefVector::iterator particleFiltrationDecision_iterator
 
typedef edm::RefToBase< pftools::ParticleFiltrationDecisionParticleFiltrationDecisionBaseRef
 
typedef std::vector< pftools::ParticleFiltrationDecisionParticleFiltrationDecisionCollection
 
typedef edm::Ref< ParticleFiltrationDecisionCollectionParticleFiltrationDecisionRef
 
typedef edm::RefProd< ParticleFiltrationDecisionCollectionParticleFiltrationDecisionRefProd
 
typedef edm::RefVector< ParticleFiltrationDecisionCollectionParticleFiltrationDecisionRefVector
 
typedef std::pair< double, double > Point
 
typedef PointVector::const_iterator PointCit
 
typedef PointVector::iterator PointIt
 
typedef std::vector< PointPointVector
 

Enumerations

enum  CalibrationProvenance {
  UNCALIBRATED = 0, LINEAR = 1, BAYESIAN = 2, LINEARECAL = 3,
  LINEARHCAL =4, LINEARCORR = -1, NONE = 99
}
 
enum  CalibrationTarget {
  UNDEFINED = 0, CLUSTER = 1, RECHIT = 2, PFCANDIDATE = 3,
  PFELEMENT = 4, CORR_CLUSTER = -1, PRE_RECHIT = 6, PRE_PFCANDIDATE = 7
}
 

Functions

std::ostream & operator<< (std::ostream &stream, const CaloBox &cb)
 
std::ostream & operator<< (std::ostream &s, const CaloEllipse &em)
 
std::ostream & operator<< (std::ostream &s, const CaloRing &caloRing)
 
std::ostream & operator<< (std::ostream &s, const CaloWindow &caloWindow)
 
std::ostream & operator<< (std::ostream &s, const Calibratable &calib_)
 
std::ostream & operator<< (std::ostream &s, const CalibratableElement &ce_)
 

Typedef Documentation

Definition at line 55 of file ParticleFiltrationDecision.h.

Definition at line 57 of file ParticleFiltrationDecision.h.

Definition at line 46 of file ParticleFiltrationDecision.h.

Definition at line 49 of file ParticleFiltrationDecision.h.

Definition at line 51 of file ParticleFiltrationDecision.h.

Definition at line 53 of file ParticleFiltrationDecision.h.

typedef std::pair<double, double> pftools::Point

Definition at line 18 of file CaloEllipse.h.

typedef PointVector::const_iterator pftools::PointCit

Definition at line 20 of file CaloEllipse.h.

typedef PointVector::iterator pftools::PointIt

Definition at line 21 of file CaloEllipse.h.

typedef std::vector<Point> pftools::PointVector

Definition at line 19 of file CaloEllipse.h.

Enumeration Type Documentation

Enumerator
UNCALIBRATED 
LINEAR 
BAYESIAN 
LINEARECAL 
LINEARHCAL 
LINEARCORR 
NONE 

Definition at line 12 of file CalibrationProvenance.h.

Enumerator
UNDEFINED 
CLUSTER 
RECHIT 
PFCANDIDATE 
PFELEMENT 
CORR_CLUSTER 
PRE_RECHIT 
PRE_PFCANDIDATE 

Definition at line 16 of file CalibrationProvenance.h.

Function Documentation

std::ostream & pftools::operator<< ( std::ostream &  stream,
const CaloBox cb 
)

Definition at line 139 of file CaloBox.cc.

References pftools::CaloBox::centerEta_, pftools::CaloBox::centerPhi_, and pftools::CaloBox::dump().

139  {
140  stream << "CaloBox at " << cb.centerEta_ << ", " << cb.centerPhi_ << ":\n";
141  cb.dump(stream, 1.0, "\n");
142  return stream;
143 }
double centerEta_
Definition: CaloBox.h:27
double centerPhi_
Definition: CaloBox.h:28
std::ostream & dump(std::ostream &stream, double norm=1.0, std::string rowDelim="\n") const
Definition: CaloBox.cc:82
std::ostream & pftools::operator<< ( std::ostream &  s,
const CaloEllipse em 
)

Definition at line 135 of file CaloEllipse.cc.

References pftools::CaloEllipse::getEccentricity(), pftools::CaloEllipse::getMajorMinorAxes(), pftools::CaloEllipse::getPosition(), pftools::CaloEllipse::getTheta(), alignCSCRings::s, and toString().

135  {
136  s << "CaloEllipse at position = " << toString(em.getPosition()) << ", theta = "
137  << em.getTheta() << ", major/minor axes = " << toString(
138  em.getMajorMinorAxes()) << ", eccentricity = " << em.getEccentricity() << "\n";
139 
140  return s;
141 }
double getEccentricity() const
Definition: CaloEllipse.cc:87
Point getMajorMinorAxes(double sigma=1.0) const
Definition: CaloEllipse.cc:48
std::string toString(const std::pair< T, T > &aT)
Definition: CaloEllipse.h:72
double getTheta() const
Definition: CaloEllipse.cc:23
Point getPosition() const
Definition: CaloEllipse.cc:97
std::ostream & pftools::operator<< ( std::ostream &  s,
const CaloRing caloRing 
)

Definition at line 66 of file CaloWindow.cc.

References MillePedeFileConverter_cfg::e, pftools::CaloRing::getEnergies(), alignCSCRings::s, and pftools::CaloRing::totalE().

67  {
68  for (auto const& e: caloRing.getEnergies()) {
69  s << e << "\t";
70  }
71  s << " => ring E = " << caloRing.totalE();
72  return s;
73 }
double totalE() const
Definition: CaloWindow.cc:44
std::vector< double > const & getEnergies() const
Definition: CaloWindow.h:71
std::ostream & pftools::operator<< ( std::ostream &  s,
const CaloWindow caloWindow 
)

Definition at line 75 of file CaloWindow.cc.

References pftools::CaloWindow::baryEta(), pftools::CaloWindow::baryPhi(), pftools::CaloWindow::getRingDepositions(), relativeConstraints::ring, alignCSCRings::s, and pftools::CaloRing::totalE().

76  {
77 
78  s << "CaloWindow at (" << caloWindow.baryEta() << ", "
79  << caloWindow.baryPhi() << "):\n";
80  double totalE(0.0);
81  for (std::map<unsigned, pftools::CaloRing>::const_iterator cit =
82  caloWindow.getRingDepositions().begin(); cit != caloWindow.getRingDepositions().end(); ++cit) {
83  unsigned ring = (*cit).first;
84  const CaloRing& cr = (*cit).second;
85  s << "Ring " << ring << ":\t" << cr << "\n";
86  totalE += cr.totalE();
87  }
88 
89  s << "\tTotal E = " << totalE << std::endl;
90  return s;
91 
92 }
double baryPhi() const
Definition: CaloWindow.h:142
double totalE() const
Definition: CaloWindow.cc:44
std::map< unsigned, CaloRing > const & getRingDepositions() const
Definition: CaloWindow.h:121
double baryEta() const
Definition: CaloWindow.h:141
std::ostream & pftools::operator<< ( std::ostream &  s,
const Calibratable calib_ 
)

Definition at line 6 of file Calibratable.cc.

References EnergyCorrector::c, pftools::Calibratable::cand_energyEcal_, pftools::Calibratable::cand_energyEvent_, pftools::Calibratable::cand_energyHcal_, pftools::Calibratable::cand_energyNeutralEM_, pftools::Calibratable::cand_energyNeutralHad_, pftools::Calibratable::cand_eta_, pftools::Calibratable::cand_phi_, pftools::Calibratable::cands_, pftools::Calibratable::cands_num_, pftools::Calibratable::cluster_energyEcal_, pftools::Calibratable::cluster_energyEvent_, pftools::Calibratable::cluster_energyHcal_, pftools::CandidateWrapper::energy_, pftools::CandidateWrapper::energyEcal_, pftools::CandidateWrapper::energyHcal_, pftools::CandidateWrapper::eta_, pftools::CandidateWrapper::phi_, pftools::Calibratable::rechits_energyEcal_, pftools::Calibratable::rechits_energyEvent_, pftools::Calibratable::rechits_energyHcal_, alignCSCRings::s, pftools::Calibratable::sim_energyEvent_, pftools::Calibratable::sim_etaEcal_, pftools::Calibratable::sim_phiEcal_, pftools::Calibratable::tb_energyEcal_, pftools::Calibratable::tb_energyEvent_, pftools::Calibratable::tb_energyHcal_, pftools::Calibratable::tb_eta_, pftools::Calibratable::tb_phi_, and pftools::CandidateWrapper::type_.

6  {
7  s << "Calibratable summary:\n\tsim:\t\t(" << calib_.sim_energyEvent_
8  << "),\t[" << calib_.sim_etaEcal_ << ", " << calib_.sim_phiEcal_
9  << "]\n";
10  s << "\ttestbeam:\t(" << calib_.tb_energyEvent_ << ", "
11  << calib_.tb_energyEcal_ << ", " << calib_.tb_energyHcal_ << "), ["
12  << calib_.tb_eta_ << ", " << calib_.tb_phi_ << "]\n";
13  s << "\trechits:\t(" << calib_.rechits_energyEvent_ << ", "
14  << calib_.rechits_energyEcal_ << ", " << calib_.rechits_energyHcal_
15  << ")\n";
16  s << "\tcluster:\t(" << calib_.cluster_energyEvent_ << ", "
17  << calib_.cluster_energyEcal_ << ", " << calib_.cluster_energyHcal_
18  << ")\n";
19  s << "\tcands:\t\t(" << calib_.cand_energyEvent_ << ", "
20  << calib_.cand_energyEcal_ << ", " << calib_.cand_energyHcal_
21  << "), ";
22  s << "\t[" << calib_.cand_eta_ << ", " << calib_.cand_phi_ << "], "
23  << calib_.cands_num_ << " of them\n";
24  for (std::vector<CandidateWrapper>::const_iterator c =
25  calib_.cands_.begin(); c != calib_.cands_.end(); ++c) {
26  const CandidateWrapper& cw = *c;
27  s << "\t\t\t\tType: " << cw.type_ << ", (" << cw.energy_ << ", "
28  << cw.energyEcal_ << ", " << cw.energyHcal_ << ") at [ "
29  << cw.eta_ << ", " << cw.phi_ << "]\n";
30  }
31  s << "\t\tNeutral EM energy: " << calib_.cand_energyNeutralEM_ << "\n";
32  s << "\t\tNeutral Had energy: " << calib_.cand_energyNeutralHad_ << "\n";
33 
34  return s;
35 }
std::vector< CandidateWrapper > cands_
Definition: Calibratable.h:196
Small wrapper class to store information associated with PFCandidates.
Definition: Calibratable.h:66
std::ostream & pftools::operator<< ( std::ostream &  s,
const CalibratableElement ce_ 
)

Definition at line 37 of file Calibratable.cc.

References pftools::CalibratableElement::energy_, pftools::CalibratableElement::eta_, pftools::CalibratableElement::phi_, and alignCSCRings::s.

38  {
39  s << "CalibratableElement: (energy, eta, phi) = (" << ce.energy_ << ", "
40  << ce.eta_ << ", " << ce.phi_ << ")";
41 
42  return s;
43 }