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.

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 }

References coneTowers, and HCALHighEnergyHPDFilter_cfi::energy.

◆ ecalConeEnergyFromRecHits()

double HTrackDetMatchInfo::ecalConeEnergyFromRecHits ( )

Definition at line 11 of file TrackDetMatchInfo.cc.

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 }

References coneEcalRecHits, and HCALHighEnergyHPDFilter_cfi::energy.

◆ ecalEnergyFromCaloTowers()

double HTrackDetMatchInfo::ecalEnergyFromCaloTowers ( )

Definition at line 20 of file TrackDetMatchInfo.cc.

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 }

References crossedTowers, and HCALHighEnergyHPDFilter_cfi::energy.

◆ ecalEnergyFromRecHits()

double HTrackDetMatchInfo::ecalEnergyFromRecHits ( )

ECAL energy.

Definition at line 4 of file TrackDetMatchInfo.cc.

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 }

References crossedEcalRecHits, and HCALHighEnergyHPDFilter_cfi::energy.

◆ hcalBoxEnergyFromCaloTowers()

double HTrackDetMatchInfo::hcalBoxEnergyFromCaloTowers ( )

Definition at line 72 of file TrackDetMatchInfo.cc.

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 }

References boxTowers, and HCALHighEnergyHPDFilter_cfi::energy.

◆ hcalBoxEnergyFromRecHits()

double HTrackDetMatchInfo::hcalBoxEnergyFromRecHits ( )

Definition at line 50 of file TrackDetMatchInfo.cc.

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 }

References boxHcalRecHits, and HCALHighEnergyHPDFilter_cfi::energy.

◆ hcalConeEnergyFromCaloTowers()

double HTrackDetMatchInfo::hcalConeEnergyFromCaloTowers ( )

Definition at line 64 of file TrackDetMatchInfo.cc.

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 }

References coneTowers, and HCALHighEnergyHPDFilter_cfi::energy.

◆ hcalConeEnergyFromRecHits()

double HTrackDetMatchInfo::hcalConeEnergyFromRecHits ( )

Definition at line 42 of file TrackDetMatchInfo.cc.

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 }

References coneHcalRecHits, and HCALHighEnergyHPDFilter_cfi::energy.

◆ hcalEnergyFromCaloTowers()

double HTrackDetMatchInfo::hcalEnergyFromCaloTowers ( )

Definition at line 57 of file TrackDetMatchInfo.cc.

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 }

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

◆ hcalEnergyFromRecHits()

double HTrackDetMatchInfo::hcalEnergyFromRecHits ( )

HCAL energy.

Definition at line 35 of file TrackDetMatchInfo.cc.

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 }

References crossedHcalRecHits, and HCALHighEnergyHPDFilter_cfi::energy.

◆ outerHcalEnergy()

double HTrackDetMatchInfo::outerHcalEnergy ( )

Definition at line 79 of file TrackDetMatchInfo.cc.

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 }

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

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.

hgcalTowerProducer_cfi.tower
tower
Definition: hgcalTowerProducer_cfi.py:4
HTrackDetMatchInfo::boxHcalRecHits
std::vector< HBHERecHit > boxHcalRecHits
Definition: TrackDetMatchInfo.h:38
HTrackDetMatchInfo::coneTowers
std::vector< CaloTower > coneTowers
Definition: TrackDetMatchInfo.h:33
HCALHighEnergyHPDFilter_cfi.energy
energy
Definition: HCALHighEnergyHPDFilter_cfi.py:5
HTrackDetMatchInfo::crossedTowers
std::vector< CaloTower > crossedTowers
Definition: TrackDetMatchInfo.h:32
HTrackDetMatchInfo::crossedHcalRecHits
std::vector< HBHERecHit > crossedHcalRecHits
Definition: TrackDetMatchInfo.h:36
HTrackDetMatchInfo::crossedEcalRecHits
std::vector< EcalRecHit > crossedEcalRecHits
Definition: TrackDetMatchInfo.h:28
HTrackDetMatchInfo::boxTowers
std::vector< CaloTower > boxTowers
Definition: TrackDetMatchInfo.h:34
HTrackDetMatchInfo::coneEcalRecHits
std::vector< EcalRecHit > coneEcalRecHits
Definition: TrackDetMatchInfo.h:29
HTrackDetMatchInfo::coneHcalRecHits
std::vector< HBHERecHit > coneHcalRecHits
Definition: TrackDetMatchInfo.h:37
hit
Definition: SiStripHitEffFromCalibTree.cc:88