CMS 3D CMS Logo

Public Member Functions | Public Attributes

HTrackDetMatchInfo Class Reference

#include <TrackDetMatchInfo.h>

List of all members.

Public Member Functions

double ecalConeEnergyFromCaloTowers ()
double ecalConeEnergyFromRecHits ()
double ecalEnergyFromCaloTowers ()
double ecalEnergyFromRecHits ()
 ECAL energy.
double hcalBoxEnergyFromCaloTowers ()
double hcalBoxEnergyFromRecHits ()
double hcalConeEnergyFromCaloTowers ()
double hcalConeEnergyFromRecHits ()
double hcalEnergyFromCaloTowers ()
double hcalEnergyFromRecHits ()
 HCAL energy.
double outerHcalEnergy ()

Public Attributes

std::vector< HBHERecHitboxHcalRecHits
std::vector< CaloTowerboxTowers
std::vector< EcalRecHitconeEcalRecHits
std::vector< HBHERecHitconeHcalRecHits
std::vector< CaloTowerconeTowers
std::vector< EcalRecHitcrossedEcalRecHits
std::vector< HBHERecHitcrossedHcalRecHits
std::vector< CaloTowercrossedTowers
bool isGoodCalo
bool isGoodEcal
bool isGoodHcal
std::vector< HBHERecHitregionHcalRecHits
std::vector< CaloTowerregionTowers
math::XYZPoint trkGlobPosAtEcal
math::XYZPoint trkGlobPosAtHcal

Detailed Description

Definition at line 10 of file TrackDetMatchInfo.h.


Member Function Documentation

double HTrackDetMatchInfo::ecalConeEnergyFromCaloTowers ( )

Definition at line 31 of file TrackDetMatchInfo.cc.

References coneTowers, and relval_parameters_module::energy.

{
   double energy(0);
   for(std::vector<CaloTower>::const_iterator hit=coneTowers.begin(); hit!=coneTowers.end(); hit++)
     energy += hit->emEnergy();
   return energy;
}
double HTrackDetMatchInfo::ecalConeEnergyFromRecHits ( )

Definition at line 12 of file TrackDetMatchInfo.cc.

References coneEcalRecHits, and relval_parameters_module::energy.

Referenced by HTrackAssociator::getEcalEnergy().

{
   double energy(0);
   for(std::vector<EcalRecHit>::const_iterator hit=coneEcalRecHits.begin(); hit!=coneEcalRecHits.end(); hit++) {
     energy += hit->energy();    
//     std::cout<< hit->detid().rawId()<<" "<<hit->energy()<<" "<<energy<<std::endl;
   }
   return energy;
}
double HTrackDetMatchInfo::ecalEnergyFromCaloTowers ( )

Definition at line 22 of file TrackDetMatchInfo.cc.

References crossedTowers, and relval_parameters_module::energy.

{
   double energy(0);
   for(std::vector<CaloTower>::const_iterator hit=crossedTowers.begin(); hit!=crossedTowers.end(); hit++) {
     energy += hit->emEnergy();
   }
   return energy;
}
double HTrackDetMatchInfo::ecalEnergyFromRecHits ( )

ECAL energy.

Definition at line 4 of file TrackDetMatchInfo.cc.

References crossedEcalRecHits, and relval_parameters_module::energy.

Referenced by HTrackAssociator::getEcalEnergy().

{
   double energy(0);
   for(std::vector<EcalRecHit>::const_iterator hit=crossedEcalRecHits.begin(); hit!=crossedEcalRecHits.end(); hit++)
     energy += hit->energy();
   return energy;
}
double HTrackDetMatchInfo::hcalBoxEnergyFromCaloTowers ( )

Definition at line 81 of file TrackDetMatchInfo.cc.

References boxTowers, and relval_parameters_module::energy.

{
   double energy(0);
   for(std::vector<CaloTower>::const_iterator hit=boxTowers.begin(); hit!=boxTowers.end(); hit++)
     energy += hit->hadEnergy();
   return energy;
}
double HTrackDetMatchInfo::hcalBoxEnergyFromRecHits ( )

Definition at line 56 of file TrackDetMatchInfo.cc.

References boxHcalRecHits, and relval_parameters_module::energy.

{
   double energy(0);
   for(std::vector<HBHERecHit>::const_iterator hit=boxHcalRecHits.begin(); hit!=boxHcalRecHits.end(); hit++)
     energy += hit->energy();    
   return energy;
}
double HTrackDetMatchInfo::hcalConeEnergyFromCaloTowers ( )

Definition at line 72 of file TrackDetMatchInfo.cc.

References coneTowers, and relval_parameters_module::energy.

{
   double energy(0);
   for(std::vector<CaloTower>::const_iterator hit=coneTowers.begin(); hit!=coneTowers.end(); hit++) {
     energy += hit->hadEnergy();
   }
   return energy;
}
double HTrackDetMatchInfo::hcalConeEnergyFromRecHits ( )

Definition at line 47 of file TrackDetMatchInfo.cc.

References coneHcalRecHits, and relval_parameters_module::energy.

Referenced by HTrackAssociator::getHcalEnergy().

{
   double energy(0);
   for(std::vector<HBHERecHit>::const_iterator hit=coneHcalRecHits.begin(); hit!=coneHcalRecHits.end(); hit++) {
     energy += hit->energy();    
   }
   return energy;
}
double HTrackDetMatchInfo::hcalEnergyFromCaloTowers ( )

Definition at line 64 of file TrackDetMatchInfo.cc.

References crossedTowers, and relval_parameters_module::energy.

{
   double energy(0);
   for(std::vector<CaloTower>::const_iterator tower=crossedTowers.begin(); tower!=crossedTowers.end(); tower++)
     energy += tower->hadEnergy();
   return energy;
}
double HTrackDetMatchInfo::hcalEnergyFromRecHits ( )

HCAL energy.

Definition at line 39 of file TrackDetMatchInfo.cc.

References crossedHcalRecHits, and relval_parameters_module::energy.

Referenced by HTrackAssociator::getHcalEnergy().

{
   double energy(0);
   for(std::vector<HBHERecHit>::const_iterator hit=crossedHcalRecHits.begin(); hit!=crossedHcalRecHits.end(); hit++)
     energy += hit->energy();
   return energy;
}
double HTrackDetMatchInfo::outerHcalEnergy ( )

Definition at line 89 of file TrackDetMatchInfo.cc.

References crossedTowers, and relval_parameters_module::energy.

{
   double energy(0);
   for(std::vector<CaloTower>::const_iterator tower=crossedTowers.begin(); tower!=crossedTowers.end(); tower++)
     energy += tower->outerEnergy();
   return energy;
}

Member Data Documentation

Definition at line 38 of file TrackDetMatchInfo.h.

Referenced by HTrackAssociator::fillHcal(), and hcalBoxEnergyFromRecHits().

Definition at line 37 of file TrackDetMatchInfo.h.

Referenced by HTrackAssociator::fillHcal(), and hcalConeEnergyFromRecHits().

Definition at line 36 of file TrackDetMatchInfo.h.

Referenced by HTrackAssociator::fillHcal(), and hcalEnergyFromRecHits().

Definition at line 39 of file TrackDetMatchInfo.h.

Referenced by HTrackAssociator::fillHcal().

Definition at line 35 of file TrackDetMatchInfo.h.

Referenced by HTrackAssociator::fillCaloTowers().