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

◆ ecalConeEnergyFromCaloTowers()

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

◆ ecalConeEnergyFromRecHits()

double HTrackDetMatchInfo::ecalConeEnergyFromRecHits ( )

Definition at line 11 of file TrackDetMatchInfo.cc.

References coneEcalRecHits, and HCALHighEnergyHPDFilter_cfi::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

◆ ecalEnergyFromCaloTowers()

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

◆ ecalEnergyFromRecHits()

double HTrackDetMatchInfo::ecalEnergyFromRecHits ( )

ECAL energy.

Definition at line 4 of file TrackDetMatchInfo.cc.

References crossedEcalRecHits, and HCALHighEnergyHPDFilter_cfi::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

◆ hcalBoxEnergyFromCaloTowers()

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

◆ hcalBoxEnergyFromRecHits()

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

◆ hcalConeEnergyFromCaloTowers()

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

◆ hcalConeEnergyFromRecHits()

double HTrackDetMatchInfo::hcalConeEnergyFromRecHits ( )

Definition at line 42 of file TrackDetMatchInfo.cc.

References coneHcalRecHits, and HCALHighEnergyHPDFilter_cfi::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

◆ hcalEnergyFromCaloTowers()

double HTrackDetMatchInfo::hcalEnergyFromCaloTowers ( )

Definition at line 57 of file TrackDetMatchInfo.cc.

References crossedTowers, HCALHighEnergyHPDFilter_cfi::energy, and l1tHGCalTowerProducer_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

◆ hcalEnergyFromRecHits()

double HTrackDetMatchInfo::hcalEnergyFromRecHits ( )

HCAL energy.

Definition at line 35 of file TrackDetMatchInfo.cc.

References crossedHcalRecHits, and HCALHighEnergyHPDFilter_cfi::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

◆ outerHcalEnergy()

double HTrackDetMatchInfo::outerHcalEnergy ( )

Definition at line 79 of file TrackDetMatchInfo.cc.

References crossedTowers, HCALHighEnergyHPDFilter_cfi::energy, and l1tHGCalTowerProducer_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

◆ boxHcalRecHits

std::vector<HBHERecHit> HTrackDetMatchInfo::boxHcalRecHits

Definition at line 38 of file TrackDetMatchInfo.h.

Referenced by hcalBoxEnergyFromRecHits().

◆ boxTowers

std::vector<CaloTower> HTrackDetMatchInfo::boxTowers

Definition at line 34 of file TrackDetMatchInfo.h.

Referenced by hcalBoxEnergyFromCaloTowers().

◆ coneEcalRecHits

std::vector<EcalRecHit> HTrackDetMatchInfo::coneEcalRecHits

Definition at line 29 of file TrackDetMatchInfo.h.

Referenced by ecalConeEnergyFromRecHits().

◆ coneHcalRecHits

std::vector<HBHERecHit> HTrackDetMatchInfo::coneHcalRecHits

Definition at line 37 of file TrackDetMatchInfo.h.

Referenced by hcalConeEnergyFromRecHits().

◆ coneTowers

std::vector<CaloTower> HTrackDetMatchInfo::coneTowers

◆ crossedEcalRecHits

std::vector<EcalRecHit> HTrackDetMatchInfo::crossedEcalRecHits

Definition at line 28 of file TrackDetMatchInfo.h.

Referenced by ecalEnergyFromRecHits().

◆ crossedHcalRecHits

std::vector<HBHERecHit> HTrackDetMatchInfo::crossedHcalRecHits

Definition at line 36 of file TrackDetMatchInfo.h.

Referenced by hcalEnergyFromRecHits().

◆ crossedTowers

std::vector<CaloTower> HTrackDetMatchInfo::crossedTowers

◆ isGoodCalo

bool HTrackDetMatchInfo::isGoodCalo

Definition at line 43 of file TrackDetMatchInfo.h.

◆ isGoodEcal

bool HTrackDetMatchInfo::isGoodEcal

Definition at line 41 of file TrackDetMatchInfo.h.

◆ isGoodHcal

bool HTrackDetMatchInfo::isGoodHcal

Definition at line 42 of file TrackDetMatchInfo.h.

◆ regionHcalRecHits

std::vector<HBHERecHit> HTrackDetMatchInfo::regionHcalRecHits

Definition at line 39 of file TrackDetMatchInfo.h.

◆ regionTowers

std::vector<CaloTower> HTrackDetMatchInfo::regionTowers

Definition at line 35 of file TrackDetMatchInfo.h.

◆ trkGlobPosAtEcal

math::XYZPoint HTrackDetMatchInfo::trkGlobPosAtEcal

Definition at line 27 of file TrackDetMatchInfo.h.

◆ trkGlobPosAtHcal

math::XYZPoint HTrackDetMatchInfo::trkGlobPosAtHcal

Definition at line 31 of file TrackDetMatchInfo.h.