CMS 3D CMS Logo

BremRecoveryPhiRoadAlgo Class Reference

calculates the optimal phi road length for the ecal barrel or endcap. More...

#include <RecoEcal/EgammaCoreTools/interface/BremRecoveryPhiRoadAlgo.h>

List of all members.

Public Member Functions

int barrelPhiRoad (double et)
 BremRecoveryPhiRoadAlgo (const edm::ParameterSet &pset)
double endcapPhiRoad (double energy)
 ~BremRecoveryPhiRoadAlgo ()

Private Attributes

double a_
double b_
double c_
int cryMin_
std::vector< intcryVec_
std::vector< double > etVec_


Detailed Description

calculates the optimal phi road length for the ecal barrel or endcap.

Definition at line 14 of file BremRecoveryPhiRoadAlgo.h.


Constructor & Destructor Documentation

BremRecoveryPhiRoadAlgo::BremRecoveryPhiRoadAlgo ( const edm::ParameterSet pset  ) 

Definition at line 7 of file BremRecoveryPhiRoadAlgo.cc.

References a_, b_, c_, cryMin_, cryVec_, etVec_, and edm::ParameterSet::getParameter().

00008 {
00009 
00010    // get barrel and endcap parametersets
00011    edm::ParameterSet barrelPset = pset.getParameter<edm::ParameterSet>("barrel");
00012    edm::ParameterSet endcapPset = pset.getParameter<edm::ParameterSet>("endcap");
00013 
00014    // set barrel parameters
00015    etVec_ = barrelPset.getParameter<std::vector<double> >("etVec");
00016    cryVec_ = barrelPset.getParameter<std::vector<int> >("cryVec");
00017    cryMin_ = barrelPset.getParameter<int>("cryMin");
00018 
00019    // set endcap parameters
00020    a_ = endcapPset.getParameter<double>("a");
00021    b_ = endcapPset.getParameter<double>("b");
00022    c_ = endcapPset.getParameter<double>("c");
00023 
00024 }

BremRecoveryPhiRoadAlgo::~BremRecoveryPhiRoadAlgo (  )  [inline]

Definition at line 18 of file BremRecoveryPhiRoadAlgo.h.

00018 {}


Member Function Documentation

int BremRecoveryPhiRoadAlgo::barrelPhiRoad ( double  et  ) 

Definition at line 26 of file BremRecoveryPhiRoadAlgo.cc.

References cryMin_, cryVec_, etVec_, and i.

Referenced by HybridClusterAlgo::mainSearch().

00027 {
00028 
00029    // 
00030    // Take as input the ET in 5x5 crystals
00031    // and compute the optimal phi road 
00032    // as a number of crystals
00033 
00034    for (unsigned int i = 0; i < cryVec_.size(); ++i)
00035    {
00036       if (et < etVec_[i]) return cryVec_[i];
00037    }
00038    return cryMin_;
00039 
00040 }

double BremRecoveryPhiRoadAlgo::endcapPhiRoad ( double  energy  ) 

Definition at line 42 of file BremRecoveryPhiRoadAlgo.cc.

References a_, b_, and c_.

Referenced by Multi5x5BremRecoveryClusterAlgo::makeIslandSuperClusters().

00043 {
00044 
00045    //
00046    // Take as input the energy in the seed BasicCluster
00047    // and return the optimal phi road
00048    // length in radians
00049 
00050    return ((a_ / (energy + b_)) + c_);
00051 
00052 }


Member Data Documentation

double BremRecoveryPhiRoadAlgo::a_ [private]

Definition at line 32 of file BremRecoveryPhiRoadAlgo.h.

Referenced by BremRecoveryPhiRoadAlgo(), and endcapPhiRoad().

double BremRecoveryPhiRoadAlgo::b_ [private]

Definition at line 33 of file BremRecoveryPhiRoadAlgo.h.

Referenced by BremRecoveryPhiRoadAlgo(), and endcapPhiRoad().

double BremRecoveryPhiRoadAlgo::c_ [private]

Definition at line 34 of file BremRecoveryPhiRoadAlgo.h.

Referenced by BremRecoveryPhiRoadAlgo(), and endcapPhiRoad().

int BremRecoveryPhiRoadAlgo::cryMin_ [private]

Definition at line 28 of file BremRecoveryPhiRoadAlgo.h.

Referenced by barrelPhiRoad(), and BremRecoveryPhiRoadAlgo().

std::vector<int> BremRecoveryPhiRoadAlgo::cryVec_ [private]

Definition at line 27 of file BremRecoveryPhiRoadAlgo.h.

Referenced by barrelPhiRoad(), and BremRecoveryPhiRoadAlgo().

std::vector<double> BremRecoveryPhiRoadAlgo::etVec_ [private]

Definition at line 26 of file BremRecoveryPhiRoadAlgo.h.

Referenced by barrelPhiRoad(), and BremRecoveryPhiRoadAlgo().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:15:03 2009 for CMSSW by  doxygen 1.5.4