Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge hgc-tpg-devel-CMSSW_9_4_0_pre2
- Loading branch information
Showing
23 changed files
with
1,510 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
L1Trigger/L1THGCal/interface/be_algorithms/HGCalShowerShape.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
#ifndef __L1Trigger_L1THGCal_HGCALSHOWERSHAPE_h__ | ||
#define __L1Trigger_L1THGCal_HGCALSHOWERSHAPE_h__ | ||
#include <vector> | ||
#include <cmath> | ||
#include "DataFormats/L1THGCal/interface/HGCalMulticluster.h" | ||
#include "DataFormats/Math/interface/LorentzVector.h" | ||
#include "L1Trigger/L1THGCal/interface/HGCalTriggerGeometryBase.h" | ||
|
||
class HGCalShowerShape{ | ||
|
||
public: | ||
typedef math::XYZTLorentzVector LorentzVector; | ||
|
||
HGCalShowerShape(){} | ||
|
||
~HGCalShowerShape(){} | ||
|
||
int firstLayer(const l1t::HGCalMulticluster& c3d) const; | ||
int lastLayer(const l1t::HGCalMulticluster& c3d) const; | ||
int maxLayer(const l1t::HGCalMulticluster& c3d) const; | ||
int showerLength(const l1t::HGCalMulticluster& c3d) const {return lastLayer(c3d)-firstLayer(c3d)+1; }//in number of layers | ||
// Maximum number of consecutive layers in the cluster | ||
int coreShowerLength(const l1t::HGCalMulticluster& c3d, const HGCalTriggerGeometryBase& triggerGeometry) const; | ||
|
||
float eMax(const l1t::HGCalMulticluster& c3d) const; | ||
|
||
float sigmaZZ(const l1t::HGCalMulticluster& c3d) const; | ||
|
||
float sigmaEtaEtaTot(const l1t::HGCalMulticluster& c3d) const; | ||
float sigmaEtaEtaTot(const l1t::HGCalCluster& c2d) const; | ||
float sigmaEtaEtaMax(const l1t::HGCalMulticluster& c3d) const; | ||
|
||
float sigmaPhiPhiTot(const l1t::HGCalMulticluster& c3d) const; | ||
float sigmaPhiPhiTot(const l1t::HGCalCluster& c2d) const; | ||
float sigmaPhiPhiMax(const l1t::HGCalMulticluster& c3d) const; | ||
|
||
float sigmaRRTot(const l1t::HGCalMulticluster& c3d) const; | ||
float sigmaRRTot(const l1t::HGCalCluster& c2d) const; | ||
float sigmaRRMax(const l1t::HGCalMulticluster& c3d) const; | ||
float sigmaRRMean(const l1t::HGCalMulticluster& c3d, float radius=5.) const; | ||
|
||
private: | ||
|
||
float meanX(const std::vector<pair<float,float> >& energy_X_tc) const; | ||
float sigmaXX(const std::vector<pair<float,float> >& energy_X_tc, const float X_cluster) const; | ||
float sigmaPhiPhi(const std::vector<pair<float,float> >& energy_phi_tc, const float phi_cluster) const; | ||
|
||
static const int kLayersEE_=28; | ||
static const int kLayersFH_=12; | ||
static const int kLayersBH_=12; | ||
int HGC_layer(const uint32_t subdet, const uint32_t layer) const; | ||
|
||
|
||
}; | ||
|
||
|
||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.