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 | 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 31 of file TrackDetMatchInfo.cc.

References coneTowers, and relval_parameters_module::energy.

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

Definition at line 12 of file TrackDetMatchInfo.cc.

References coneEcalRecHits, and relval_parameters_module::energy.

Referenced by HTrackAssociator::getEcalEnergy().

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

Definition at line 22 of file TrackDetMatchInfo.cc.

References crossedTowers, and relval_parameters_module::energy.

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

ECAL energy.

Definition at line 4 of file TrackDetMatchInfo.cc.

References crossedEcalRecHits, and relval_parameters_module::energy.

Referenced by HTrackAssociator::getEcalEnergy().

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

Definition at line 81 of file TrackDetMatchInfo.cc.

References boxTowers, and relval_parameters_module::energy.

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

Definition at line 56 of file TrackDetMatchInfo.cc.

References boxHcalRecHits, and relval_parameters_module::energy.

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

Definition at line 72 of file TrackDetMatchInfo.cc.

References coneTowers, and relval_parameters_module::energy.

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

Definition at line 47 of file TrackDetMatchInfo.cc.

References coneHcalRecHits, and relval_parameters_module::energy.

Referenced by HTrackAssociator::getHcalEnergy().

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

Definition at line 64 of file TrackDetMatchInfo.cc.

References crossedTowers, and relval_parameters_module::energy.

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

HCAL energy.

Definition at line 39 of file TrackDetMatchInfo.cc.

References crossedHcalRecHits, and relval_parameters_module::energy.

Referenced by HTrackAssociator::getHcalEnergy().

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

Definition at line 89 of file TrackDetMatchInfo.cc.

References crossedTowers, and relval_parameters_module::energy.

90 {
91  double energy(0);
92  for(std::vector<CaloTower>::const_iterator tower=crossedTowers.begin(); tower!=crossedTowers.end(); tower++)
93  energy += tower->outerEnergy();
94  return energy;
95 }
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