CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 28 of file TrackDetMatchInfo.cc.

References coneTowers, and relval_parameters_module::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 relval_parameters_module::energy.

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 relval_parameters_module::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 relval_parameters_module::energy.

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 relval_parameters_module::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 relval_parameters_module::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 relval_parameters_module::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 relval_parameters_module::energy.

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, relval_parameters_module::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 relval_parameters_module::energy.

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, relval_parameters_module::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 hcalBoxEnergyFromRecHits().

std::vector<CaloTower> HTrackDetMatchInfo::boxTowers

Definition at line 34 of file TrackDetMatchInfo.h.

Referenced by hcalBoxEnergyFromCaloTowers().

std::vector<EcalRecHit> HTrackDetMatchInfo::coneEcalRecHits

Definition at line 29 of file TrackDetMatchInfo.h.

Referenced by ecalConeEnergyFromRecHits().

std::vector<HBHERecHit> HTrackDetMatchInfo::coneHcalRecHits

Definition at line 37 of file TrackDetMatchInfo.h.

Referenced by hcalConeEnergyFromRecHits().

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

Definition at line 28 of file TrackDetMatchInfo.h.

Referenced by ecalEnergyFromRecHits().

std::vector<HBHERecHit> HTrackDetMatchInfo::crossedHcalRecHits

Definition at line 36 of file TrackDetMatchInfo.h.

Referenced by hcalEnergyFromRecHits().

std::vector<CaloTower> HTrackDetMatchInfo::crossedTowers
bool HTrackDetMatchInfo::isGoodCalo

Definition at line 43 of file TrackDetMatchInfo.h.

bool HTrackDetMatchInfo::isGoodEcal

Definition at line 41 of file TrackDetMatchInfo.h.

bool HTrackDetMatchInfo::isGoodHcal

Definition at line 42 of file TrackDetMatchInfo.h.

std::vector<HBHERecHit> HTrackDetMatchInfo::regionHcalRecHits

Definition at line 39 of file TrackDetMatchInfo.h.

std::vector<CaloTower> HTrackDetMatchInfo::regionTowers

Definition at line 35 of file TrackDetMatchInfo.h.

math::XYZPoint HTrackDetMatchInfo::trkGlobPosAtEcal

Definition at line 27 of file TrackDetMatchInfo.h.

math::XYZPoint HTrackDetMatchInfo::trkGlobPosAtHcal

Definition at line 31 of file TrackDetMatchInfo.h.