CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
PFClusterAlgo.cc File Reference
#include "RecoParticleFlow/PFClusterProducer/interface/PFClusterAlgo.h"
#include "DataFormats/ParticleFlowReco/interface/PFLayer.h"
#include "DataFormats/HcalDetId/interface/HcalDetId.h"
#include "Math/GenVector/VectorUtil.h"
#include "TFile.h"
#include "TH2F.h"
#include "TROOT.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <stdexcept>
#include <string>
#include <sstream>

Go to the source code of this file.

Functions

ostream & operator<< (ostream &out, const PFClusterAlgo &algo)
 

Function Documentation

ostream& operator<< ( ostream &  out,
const PFClusterAlgo algo 
)

Definition at line 1734 of file PFClusterAlgo.cc.

References i, PFClusterAlgo::minS4S1Barrel_, PFClusterAlgo::minS4S1Endcap_, PFClusterAlgo::nNeighbours_, dbtoconf::out, PFClusterAlgo::pfClusters_, PFClusterAlgo::posCalcNCrystal_, PFClusterAlgo::posCalcP1_, PFClusterAlgo::showerSigma_, PFClusterAlgo::threshBarrel_, PFClusterAlgo::threshCleanBarrel_, PFClusterAlgo::threshCleanEndcap_, PFClusterAlgo::threshEndcap_, PFClusterAlgo::threshPtBarrel_, PFClusterAlgo::threshPtEndcap_, PFClusterAlgo::threshPtSeedBarrel_, PFClusterAlgo::threshPtSeedEndcap_, PFClusterAlgo::threshSeedBarrel_, PFClusterAlgo::threshSeedEndcap_, and PFClusterAlgo::useCornerCells_.

1734  {
1735  if(!out) return out;
1736  out<<"PFClusterAlgo parameters : "<<endl;
1737  out<<"-----------------------------------------------------"<<endl;
1738  out<<"threshBarrel : "<<algo.threshBarrel_ <<endl;
1739  out<<"threshSeedBarrel : "<<algo.threshSeedBarrel_ <<endl;
1740  out<<"threshPtBarrel : "<<algo.threshPtBarrel_ <<endl;
1741  out<<"threshPtSeedBarrel : "<<algo.threshPtSeedBarrel_ <<endl;
1742  out<<"threshCleanBarrel : "<<algo.threshCleanBarrel_ <<endl;
1743  out<<"minS4S1Barrel : "<<algo.minS4S1Barrel_[0]<<" x log10(E) + "<<algo.minS4S1Barrel_[1]<<endl;
1744  out<<"threshEndcap : "<<algo.threshEndcap_ <<endl;
1745  out<<"threshSeedEndcap : "<<algo.threshSeedEndcap_ <<endl;
1746  out<<"threshPtEndcap : "<<algo.threshPtEndcap_ <<endl;
1747  out<<"threshPtSeedEndcap : "<<algo.threshPtSeedEndcap_ <<endl;
1748  out<<"threshEndcap : "<<algo.threshEndcap_ <<endl;
1749  out<<"threshCleanEndcap : "<<algo.threshCleanEndcap_ <<endl;
1750  out<<"minS4S1Endcap : "<<algo.minS4S1Endcap_[0]<<" x log10(E) + "<<algo.minS4S1Endcap_[1]<<endl;
1751  out<<"nNeighbours : "<<algo.nNeighbours_ <<endl;
1752  out<<"posCalcNCrystal : "<<algo.posCalcNCrystal_ <<endl;
1753  out<<"posCalcP1 : "<<algo.posCalcP1_ <<endl;
1754  out<<"showerSigma : "<<algo.showerSigma_ <<endl;
1755  out<<"useCornerCells : "<<algo.useCornerCells_ <<endl;
1756 
1757  out<<endl;
1758  out<<algo.pfClusters_->size()<<" clusters:"<<endl;
1759 
1760  for(unsigned i=0; i<algo.pfClusters_->size(); i++) {
1761  out<<(*algo.pfClusters_)[i]<<endl;
1762 
1763  if(!out) return out;
1764  }
1765 
1766  return out;
1767 }
int i
Definition: DBlmapReader.cc:9
int posCalcNCrystal_
number of crystals for position calculation
double threshEndcap_
endcap threshold
double threshPtEndcap_
std::vector< double > minS4S1Barrel_
double threshPtSeedEndcap_
double threshPtSeedBarrel_
double threshSeedBarrel_
barrel seed threshold
std::vector< double > minS4S1Endcap_
tuple out
Definition: dbtoconf.py:99
double threshCleanBarrel_
Barrel cleaning threshold and S4/S1 smallest fractiom.
int nNeighbours_
number of neighbours
double showerSigma_
sigma of shower (cm)
double threshBarrel_
barrel threshold
bool useCornerCells_
option to use cells with a common corner to build topo-clusters
double threshSeedEndcap_
endcap seed threshold
std::auto_ptr< std::vector< reco::PFCluster > > pfClusters_
all clusters
double threshPtBarrel_
double threshCleanEndcap_
Endcap cleaning threshold and S4/S1 smallest fractiom.
double posCalcP1_
parameter for position calculation