22 std::vector< std::pair<int,float> > theWeights;
24 if (calibtype ==
"RING")
34 for(std::vector<std::pair<DetId,float> >::const_iterator idIt=scDetIds.begin(); idIt!=scDetIds.end(); ++idIt){
39 else if ( (*idIt).first.subdetId() ==
EcalEndcap)
42 std::cout <<
"CalibElectron::BIG ERROR::RecHit NOT FOUND" << std::endl;
49 theWeights.push_back(std::pair<int,float>(
i,w_ring[
i]));
53 else if(calibtype ==
"MODULE")
64 for(std::vector<std::pair<DetId,float> >::const_iterator idIt=scDetIds.begin(); idIt!=scDetIds.end(); ++idIt){
69 else if ( (*idIt).first.subdetId() ==
EcalEndcap)
72 std::cout <<
"CalibElectron::BIG ERROR::RecHit NOT FOUND" << std::endl;
79 theWeights.push_back(std::pair<int,float>(
i,w_ring[
i]));
84 else if(calibtype ==
"ABS_SCALE")
86 std::cout<<
"ENTERING CalibElectron, ABS SCALE mode"<<std::endl;
93 for(std::vector<std::pair<DetId,float> >::const_iterator idIt=scDetIds.begin(); idIt!=scDetIds.end(); ++idIt){
98 else if ( (*idIt).first.subdetId() ==
EcalEndcap)
101 std::cout <<
"CalibElectron::BIG ERROR::RecHit NOT FOUND" << std::endl;
108 theWeights.push_back(std::pair<int,float>(0,w_ring));
109 std::cout <<
" ABS SCALE - energy sum " << w_ring << std::endl;
113 else if(calibtype ==
"ETA_ET_MODE")
124 for(std::vector<std::pair<DetId,float> >::const_iterator idIt=scDetIds.begin(); idIt!=scDetIds.end(); ++idIt){
128 else if ( (*idIt).first.subdetId() ==
EcalEndcap)
131 std::cout <<
"CalibElectron::BIG ERROR::RecHit NOT FOUND" << std::endl;
134 float theta = 2. * atan(
exp(- eta) );
147 theWeights.push_back(std::pair<int,float>(
i,w_ring[
i]));
148 std::cout <<
" ring " << i <<
" - energy sum " << w_ring[
i] << std::endl;
157 std::cout <<
"CalibType not yet implemented" << std::endl;
const EcalRecHitCollection * theEEHits_
Sin< T >::type sin(const T &t)
Geom::Theta< T > theta() const
const EcalRecHitCollection * theHits_
virtual SuperClusterRef superCluster() const
reference to a SuperCluster
virtual float eta() const GCC11_FINAL
momentum pseudorapidity
iterator find(key_type k)
const reco::GsfElectron * theElectron_