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/Common/interface/SortedCollection.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 1813 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_.

1813  {
1814  if(!out) return out;
1815  out<<"PFClusterAlgo parameters : "<<endl;
1816  out<<"-----------------------------------------------------"<<endl;
1817  out<<"threshBarrel : "<<algo.threshBarrel_ <<endl;
1818  out<<"threshSeedBarrel : "<<algo.threshSeedBarrel_ <<endl;
1819  out<<"threshPtBarrel : "<<algo.threshPtBarrel_ <<endl;
1820  out<<"threshPtSeedBarrel : "<<algo.threshPtSeedBarrel_ <<endl;
1821  out<<"threshCleanBarrel : "<<algo.threshCleanBarrel_ <<endl;
1822  out<<"minS4S1Barrel : "<<algo.minS4S1Barrel_[0]<<" x log10(E) + "<<algo.minS4S1Barrel_[1]<<endl;
1823  out<<"threshEndcap : "<<algo.threshEndcap_ <<endl;
1824  out<<"threshSeedEndcap : "<<algo.threshSeedEndcap_ <<endl;
1825  out<<"threshPtEndcap : "<<algo.threshPtEndcap_ <<endl;
1826  out<<"threshPtSeedEndcap : "<<algo.threshPtSeedEndcap_ <<endl;
1827  out<<"threshEndcap : "<<algo.threshEndcap_ <<endl;
1828  out<<"threshCleanEndcap : "<<algo.threshCleanEndcap_ <<endl;
1829  out<<"minS4S1Endcap : "<<algo.minS4S1Endcap_[0]<<" x log10(E) + "<<algo.minS4S1Endcap_[1]<<endl;
1830  out<<"nNeighbours : "<<algo.nNeighbours_ <<endl;
1831  out<<"posCalcNCrystal : "<<algo.posCalcNCrystal_ <<endl;
1832  out<<"posCalcP1 : "<<algo.posCalcP1_ <<endl;
1833  out<<"showerSigma : "<<algo.showerSigma_ <<endl;
1834  out<<"useCornerCells : "<<algo.useCornerCells_ <<endl;
1835 
1836  out<<endl;
1837  out<<algo.pfClusters_->size()<<" clusters:"<<endl;
1838 
1839  for(unsigned i=0; i<algo.pfClusters_->size(); i++) {
1840  out<<(*algo.pfClusters_)[i]<<endl;
1841 
1842  if(!out) return out;
1843  }
1844 
1845  return out;
1846 }
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.