#include <DataFormats/CaloTowers/interface/CaloTower.h>
Public Types | |
typedef CaloTowerDetId | key_type |
Public Member Functions | |
void | addConstituent (DetId id) |
void | addConstituents (const std::vector< DetId > &ids) |
CaloTower (const CaloTowerDetId &id, double emE, double hadE, double outerE, int ecal_tp, int hcal_tp, const LorentzVector p4, GlobalPoint emPosition, GlobalPoint hadPosition) | |
CaloTower (const CaloTowerDetId &id, double emE, double hadE, double outerE, int ecal_tp, int hcal_tp, const PolarLorentzVector p4, GlobalPoint emPosition, GlobalPoint hadPosition) | |
CaloTower () | |
DetId | constituent (size_t i) const |
const std::vector< DetId > & | constituents () const |
size_t | constituentsSize () const |
float | ecalTime () const |
double | emEnergy () const |
double | emEt () const |
int | emLvl1 () const |
const GlobalPoint & | emPosition () const |
double | hadEnergy () const |
double | hadEnergyHeInnerLayer () const |
double | hadEnergyHeOuterLayer () const |
double | hadEt () const |
int | hadLv11 () const |
const GlobalPoint & | hadPosition () const |
float | hcalTime () const |
CaloTowerDetId | id () const |
int | ieta () const |
int | ietaAbs () const |
int | iphi () const |
int | numCrystals () const |
double | outerEnergy () const |
double | outerEt () const |
void | setEcalTime (int t) |
void | setHcalTime (int t) |
int | zside () const |
Private Attributes | |
std::vector< DetId > | constituents_ |
int | ecalTime_ |
Double32_t | emE_ |
int | emLvl1_ |
GlobalPoint | emPosition_ |
Double32_t | hadE_ |
int | hadLvl1_ |
GlobalPoint | hadPosition_ |
int | hcalTime_ |
CaloTowerDetId | id_ |
Double32_t | outerE_ |
Definition at line 28 of file CaloTower.h.
typedef CaloTowerDetId CaloTower::key_type |
Definition at line 30 of file CaloTower.h.
CaloTower::CaloTower | ( | ) |
CaloTower::CaloTower | ( | const CaloTowerDetId & | id, | |
double | emE, | |||
double | hadE, | |||
double | outerE, | |||
int | ecal_tp, | |||
int | hcal_tp, | |||
const PolarLorentzVector | p4, | |||
GlobalPoint | emPosition, | |||
GlobalPoint | hadPosition | |||
) |
Definition at line 11 of file CaloTower.cc.
00015 : 00016 LeafCandidate(0, p4, Point(0,0,0)), 00017 id_(id), 00018 emE_(emE), hadE_(hadE), outerE_(outerE), 00019 emLvl1_(ecal_tp), hadLvl1_(hcal_tp), 00020 emPosition_(emPos), hadPosition_(hadPos) {}
CaloTower::CaloTower | ( | const CaloTowerDetId & | id, | |
double | emE, | |||
double | hadE, | |||
double | outerE, | |||
int | ecal_tp, | |||
int | hcal_tp, | |||
const LorentzVector | p4, | |||
GlobalPoint | emPosition, | |||
GlobalPoint | hadPosition | |||
) |
Definition at line 23 of file CaloTower.cc.
00027 : 00028 LeafCandidate(0, p4, Point(0,0,0)), 00029 id_(id), 00030 emE_(emE), hadE_(hadE), outerE_(outerE), 00031 emLvl1_(ecal_tp), hadLvl1_(hcal_tp), 00032 emPosition_(emPos), hadPosition_(hadPos) {}
Definition at line 51 of file CaloTower.h.
References constituents_.
00051 { constituents_.push_back( id ); }
Definition at line 35 of file CaloTower.cc.
References constituents_.
Referenced by CaloTowersCreationAlgo::convert().
00035 { 00036 constituents_.reserve(constituents_.size()+ids.size()); 00037 constituents_.insert(constituents_.end(),ids.begin(),ids.end()); 00038 }
DetId CaloTower::constituent | ( | size_t | i | ) | const [inline] |
Definition at line 60 of file CaloTower.h.
References constituents_.
Referenced by CaloSpecificAlgo::addInfo(), JetToDigiDump::analyze(), JetMatchingTools::getConstituentIds(), JetMatchingTools::getConstituents(), and CaloTowersCreationAlgo::rescale().
00060 { return constituents_[ i ]; }
const std::vector<DetId>& CaloTower::constituents | ( | ) | const [inline] |
Definition at line 58 of file CaloTower.h.
References constituents_.
00058 { return constituents_; }
size_t CaloTower::constituentsSize | ( | ) | const [inline] |
Definition at line 59 of file CaloTower.h.
References constituents_.
Referenced by CaloSpecificAlgo::addInfo(), JetToDigiDump::analyze(), CaloTowersCreationAlgo::finish(), JetMatchingTools::getConstituentIds(), JetMatchingTools::getConstituents(), and CaloTowersCreationAlgo::rescale().
00059 { return constituents_.size(); }
float CaloTower::ecalTime | ( | ) | const [inline] |
Definition at line 78 of file CaloTower.h.
References ecalTime_.
Referenced by CaloTowersCreationAlgo::rescale().
00078 { return float(ecalTime_) * 0.01; }
double CaloTower::emEnergy | ( | ) | const [inline] |
Definition at line 62 of file CaloTower.h.
References emE_.
Referenced by JetToDigiDump::analyze(), CaloTowerAnalyzer::analyze(), muonisolation::CaloExtractorByAssociator::deposits(), PFRootEventManager::fillOutEventWithCaloTowers(), FastL1Region::FillTower_Scaled(), JetMaker::makeSpecific(), and CaloTowersCreationAlgo::rescale().
00062 { return emE_ ; }
double CaloTower::emEt | ( | ) | const [inline] |
Definition at line 65 of file CaloTower.h.
References emE_, funct::sin(), and reco::Particle::theta().
Referenced by CaloSpecificAlgo::addInfo(), CaloTowerAnalyzer::analyze(), muonisolation::CaloExtractorByAssociator::deposits(), FastL1Region::FillTower(), FastL1Region::FillTower_Scaled(), and operator<<().
int CaloTower::emLvl1 | ( | ) | const [inline] |
const GlobalPoint& CaloTower::emPosition | ( | ) | const [inline] |
double CaloTower::hadEnergy | ( | ) | const [inline] |
Definition at line 63 of file CaloTower.h.
References hadE_.
Referenced by JetToDigiDump::analyze(), CaloTowerAnalyzer::analyze(), muonisolation::CaloExtractorByAssociator::deposits(), PFRootEventManager::fillOutEventWithCaloTowers(), FastL1Region::FillTower_Scaled(), JetMaker::makeSpecific(), and CaloTowersCreationAlgo::rescale().
00063 { return hadE_ ; }
double CaloTower::hadEnergyHeInnerLayer | ( | ) | const [inline] |
double CaloTower::hadEnergyHeOuterLayer | ( | ) | const [inline] |
double CaloTower::hadEt | ( | ) | const [inline] |
Definition at line 66 of file CaloTower.h.
References hadE_, funct::sin(), and reco::Particle::theta().
Referenced by CaloSpecificAlgo::addInfo(), CaloTowerAnalyzer::analyze(), muonisolation::CaloExtractorByAssociator::deposits(), FastL1Region::FillTower(), FastL1Region::FillTower_Scaled(), and operator<<().
int CaloTower::hadLv11 | ( | ) | const [inline] |
const GlobalPoint& CaloTower::hadPosition | ( | ) | const [inline] |
float CaloTower::hcalTime | ( | ) | const [inline] |
Definition at line 79 of file CaloTower.h.
References hcalTime_.
Referenced by CaloTowersCreationAlgo::rescale().
00079 { return float(hcalTime_) * 0.01; }
CaloTowerDetId CaloTower::id | ( | void | ) | const [inline] |
Definition at line 57 of file CaloTower.h.
References id_.
Referenced by JetToDigiDump::analyze(), CaloTowerAnalyzer::analyze(), muonisolation::CaloExtractorByAssociator::deposits(), FastL1Region::FillTower(), FastL1Region::FillTower_Scaled(), cms::BasePilupSubtractionJetProducer::ieta(), cms::BasePilupSubtractionJetProducer::iphi(), JetMaker::makeSpecific(), operator<<(), operator==(), CaloTowersCreationAlgo::rescale(), and DumpEvent::WriteJets().
00057 { return id_; }
int CaloTower::ieta | ( | ) | const [inline] |
int CaloTower::ietaAbs | ( | ) | const [inline] |
int CaloTower::iphi | ( | ) | const [inline] |
int CaloTower::numCrystals | ( | ) | const |
Definition at line 40 of file CaloTower.cc.
References constituents_, DetId::Ecal, id_, CaloTowerDetId::ietaAbs(), and it.
00040 { 00041 if (id_.ietaAbs()>29) return 0; 00042 00043 int nC = 0; 00044 std::vector<DetId>::const_iterator it = constituents_.begin(); 00045 for (; it!=constituents_.end(); ++it) { 00046 if (it->det()==DetId::Ecal) ++nC; 00047 } 00048 00049 return nC; 00050 }
double CaloTower::outerEnergy | ( | ) | const [inline] |
Definition at line 64 of file CaloTower.h.
References id_, CaloTowerDetId::ietaAbs(), and outerE_.
Referenced by JetToDigiDump::analyze(), CaloTowerAnalyzer::analyze(), muonisolation::CaloExtractorByAssociator::deposits(), JetMaker::makeSpecific(), and CaloTowersCreationAlgo::rescale().
double CaloTower::outerEt | ( | ) | const [inline] |
Definition at line 67 of file CaloTower.h.
References id_, CaloTowerDetId::ietaAbs(), outerE_, funct::sin(), and reco::Particle::theta().
Referenced by CaloSpecificAlgo::addInfo(), muonisolation::CaloExtractorByAssociator::deposits(), FastL1Region::FillTower(), FastL1Region::FillTower_Scaled(), and operator<<().
Definition at line 53 of file CaloTower.h.
References ecalTime_.
Referenced by CaloTowersCreationAlgo::convert().
Definition at line 54 of file CaloTower.h.
References hcalTime_.
Referenced by CaloTowersCreationAlgo::convert().
int CaloTower::zside | ( | ) | const [inline] |
std::vector<DetId> CaloTower::constituents_ [private] |
Definition at line 102 of file CaloTower.h.
Referenced by addConstituent(), addConstituents(), constituent(), constituents(), constituentsSize(), and numCrystals().
int CaloTower::ecalTime_ [private] |
Double32_t CaloTower::emE_ [private] |
int CaloTower::emLvl1_ [private] |
GlobalPoint CaloTower::emPosition_ [private] |
Double32_t CaloTower::hadE_ [private] |
Definition at line 99 of file CaloTower.h.
Referenced by CaloTower(), hadEnergy(), hadEnergyHeInnerLayer(), and hadEt().
int CaloTower::hadLvl1_ [private] |
GlobalPoint CaloTower::hadPosition_ [private] |
int CaloTower::hcalTime_ [private] |
CaloTowerDetId CaloTower::id_ [private] |
Definition at line 89 of file CaloTower.h.
Referenced by hadEnergyHeInnerLayer(), hadEnergyHeOuterLayer(), id(), ieta(), ietaAbs(), iphi(), numCrystals(), outerEnergy(), outerEt(), and zside().
Double32_t CaloTower::outerE_ [private] |
Definition at line 99 of file CaloTower.h.
Referenced by CaloTower(), hadEnergyHeInnerLayer(), hadEnergyHeOuterLayer(), outerEnergy(), and outerEt().