CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
HTrackDetMatchInfo Class Reference

#include <TrackDetMatchInfo.h>

Public Member Functions

double ecalConeEnergyFromCaloTowers ()
 
double ecalConeEnergyFromRecHits ()
 
double ecalEnergyFromCaloTowers ()
 
double ecalEnergyFromRecHits ()
 ECAL energy. More...
 
double hcalBoxEnergyFromCaloTowers ()
 
double hcalBoxEnergyFromRecHits ()
 
double hcalConeEnergyFromCaloTowers ()
 
double hcalConeEnergyFromRecHits ()
 
double hcalEnergyFromCaloTowers ()
 
double hcalEnergyFromRecHits ()
 HCAL energy. More...
 
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 28 of file TrackDetMatchInfo.cc.

References coneTowers, and HCALHighEnergyHPDFilter_cfi::energy.

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

Definition at line 11 of file TrackDetMatchInfo.cc.

References coneEcalRecHits, and HCALHighEnergyHPDFilter_cfi::energy.

Referenced by HTrackAssociator::getEcalEnergy().

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

Definition at line 20 of file TrackDetMatchInfo.cc.

References crossedTowers, and HCALHighEnergyHPDFilter_cfi::energy.

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

ECAL energy.

Definition at line 4 of file TrackDetMatchInfo.cc.

References crossedEcalRecHits, and HCALHighEnergyHPDFilter_cfi::energy.

Referenced by HTrackAssociator::getEcalEnergy().

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

Definition at line 72 of file TrackDetMatchInfo.cc.

References boxTowers, and HCALHighEnergyHPDFilter_cfi::energy.

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

Definition at line 50 of file TrackDetMatchInfo.cc.

References boxHcalRecHits, and HCALHighEnergyHPDFilter_cfi::energy.

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

Definition at line 64 of file TrackDetMatchInfo.cc.

References coneTowers, and HCALHighEnergyHPDFilter_cfi::energy.

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

Definition at line 42 of file TrackDetMatchInfo.cc.

References coneHcalRecHits, and HCALHighEnergyHPDFilter_cfi::energy.

Referenced by HTrackAssociator::getHcalEnergy().

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

Definition at line 57 of file TrackDetMatchInfo.cc.

References crossedTowers, HCALHighEnergyHPDFilter_cfi::energy, and hgcalTowerProducer_cfi::tower.

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

HCAL energy.

Definition at line 35 of file TrackDetMatchInfo.cc.

References crossedHcalRecHits, and HCALHighEnergyHPDFilter_cfi::energy.

Referenced by HTrackAssociator::getHcalEnergy().

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

Definition at line 79 of file TrackDetMatchInfo.cc.

References crossedTowers, HCALHighEnergyHPDFilter_cfi::energy, and hgcalTowerProducer_cfi::tower.

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

Member Data Documentation

std::vector<HBHERecHit> HTrackDetMatchInfo::boxHcalRecHits

Definition at line 38 of file TrackDetMatchInfo.h.

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

std::vector<CaloTower> HTrackDetMatchInfo::boxTowers
std::vector<EcalRecHit> HTrackDetMatchInfo::coneEcalRecHits
std::vector<HBHERecHit> HTrackDetMatchInfo::coneHcalRecHits

Definition at line 37 of file TrackDetMatchInfo.h.

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

std::vector<CaloTower> HTrackDetMatchInfo::coneTowers
std::vector<EcalRecHit> HTrackDetMatchInfo::crossedEcalRecHits
std::vector<HBHERecHit> HTrackDetMatchInfo::crossedHcalRecHits

Definition at line 36 of file TrackDetMatchInfo.h.

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

std::vector<CaloTower> HTrackDetMatchInfo::crossedTowers
bool HTrackDetMatchInfo::isGoodCalo
bool HTrackDetMatchInfo::isGoodEcal
bool HTrackDetMatchInfo::isGoodHcal
std::vector<HBHERecHit> HTrackDetMatchInfo::regionHcalRecHits

Definition at line 39 of file TrackDetMatchInfo.h.

Referenced by HTrackAssociator::fillHcal().

std::vector<CaloTower> HTrackDetMatchInfo::regionTowers

Definition at line 35 of file TrackDetMatchInfo.h.

Referenced by HTrackAssociator::fillCaloTowers().

math::XYZPoint HTrackDetMatchInfo::trkGlobPosAtEcal
math::XYZPoint HTrackDetMatchInfo::trkGlobPosAtHcal