CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_5_3_6/src/RecoParticleFlow/PFClusterProducer/src/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_.

                                                            {
  if(!out) return out;
  out<<"PFClusterAlgo parameters : "<<endl;
  out<<"-----------------------------------------------------"<<endl;
  out<<"threshBarrel       : "<<algo.threshBarrel_       <<endl;
  out<<"threshSeedBarrel   : "<<algo.threshSeedBarrel_   <<endl;
  out<<"threshPtBarrel     : "<<algo.threshPtBarrel_     <<endl;
  out<<"threshPtSeedBarrel : "<<algo.threshPtSeedBarrel_ <<endl;
  out<<"threshCleanBarrel  : "<<algo.threshCleanBarrel_  <<endl;
  out<<"minS4S1Barrel      : "<<algo.minS4S1Barrel_[0]<<" x log10(E) + "<<algo.minS4S1Barrel_[1]<<endl;
  out<<"threshEndcap       : "<<algo.threshEndcap_       <<endl;
  out<<"threshSeedEndcap   : "<<algo.threshSeedEndcap_   <<endl;
  out<<"threshPtEndcap     : "<<algo.threshPtEndcap_     <<endl;
  out<<"threshPtSeedEndcap : "<<algo.threshPtSeedEndcap_ <<endl;
  out<<"threshEndcap       : "<<algo.threshEndcap_       <<endl;
  out<<"threshCleanEndcap  : "<<algo.threshCleanEndcap_  <<endl;
  out<<"minS4S1Endcap      : "<<algo.minS4S1Endcap_[0]<<" x log10(E) + "<<algo.minS4S1Endcap_[1]<<endl;
  out<<"nNeighbours        : "<<algo.nNeighbours_        <<endl;
  out<<"posCalcNCrystal    : "<<algo.posCalcNCrystal_    <<endl;
  out<<"posCalcP1          : "<<algo.posCalcP1_          <<endl;
  out<<"showerSigma        : "<<algo.showerSigma_        <<endl;
  out<<"useCornerCells     : "<<algo.useCornerCells_     <<endl;

  out<<endl;
  out<<algo.pfClusters_->size()<<" clusters:"<<endl;

  for(unsigned i=0; i<algo.pfClusters_->size(); i++) {
    out<<(*algo.pfClusters_)[i]<<endl;
    
    if(!out) return out;
  }
  
  return out;
}