test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
BremRecoveryPhiRoadAlgo Class Reference

#include <BremRecoveryPhiRoadAlgo.h>

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< int > cryVec_
 
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().

8 {
9 
10  // get barrel and endcap parametersets
11  edm::ParameterSet barrelPset = pset.getParameter<edm::ParameterSet>("barrel");
12  edm::ParameterSet endcapPset = pset.getParameter<edm::ParameterSet>("endcap");
13 
14  // set barrel parameters
15  etVec_ = barrelPset.getParameter<std::vector<double> >("etVec");
16  cryVec_ = barrelPset.getParameter<std::vector<int> >("cryVec");
17  cryMin_ = barrelPset.getParameter<int>("cryMin");
18 
19  // set endcap parameters
20  a_ = endcapPset.getParameter<double>("a");
21  b_ = endcapPset.getParameter<double>("b");
22  c_ = endcapPset.getParameter<double>("c");
23 
24 }
T getParameter(std::string const &) const
std::vector< double > etVec_
BremRecoveryPhiRoadAlgo::~BremRecoveryPhiRoadAlgo ( )
inline

Definition at line 18 of file BremRecoveryPhiRoadAlgo.h.

18 {}

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().

27 {
28 
29  //
30  // Take as input the ET in 5x5 crystals
31  // and compute the optimal phi road
32  // as a number of crystals
33 
34  for (unsigned int i = 0; i < cryVec_.size(); ++i)
35  {
36  if (et < etVec_[i]) return cryVec_[i];
37  }
38  return cryMin_;
39 
40 }
int i
Definition: DBlmapReader.cc:9
std::vector< double > etVec_
double BremRecoveryPhiRoadAlgo::endcapPhiRoad ( double  energy)

Definition at line 42 of file BremRecoveryPhiRoadAlgo.cc.

References a_, b_, and c_.

Referenced by Multi5x5BremRecoveryClusterAlgo::makeIslandSuperClusters().

43 {
44 
45  //
46  // Take as input the energy in the seed BasicCluster
47  // and return the optimal phi road
48  // length in radians
49 
50  return ((a_ / (energy + b_)) + c_);
51 
52 }

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().