Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13926 from lathomas/CMSSW_8_1_X
Update of the Beam Halo Filter (both CSC and Calo algos)
- Loading branch information
Showing
36 changed files
with
1,945 additions
and
315 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
#ifndef DATAFORMATS_METRECO_HALOCLUSTERCANDIDATEECAL_H | ||
#define DATAFORMATS_METRECO_HALOCLUSTERCANDIDATEECAL_H | ||
|
||
|
||
|
||
#include "DataFormats/DetId/interface/DetId.h" | ||
#include "DataFormats/EcalDetId/interface/EcalSubdetector.h" | ||
#include "DataFormats/EcalDetId/interface/EBDetId.h" | ||
#include "DataFormats/EcalDetId/interface/EEDetId.h" | ||
#include "DataFormats/HcalRecHit/interface/HBHERecHit.h" | ||
#include "DataFormats/GeometrySurface/interface/Cylinder.h" | ||
#include "DataFormats/GeometrySurface/interface/Plane.h" | ||
#include "DataFormats/GeometrySurface/interface/Cone.h" | ||
#include "DataFormats/GeometryVector/interface/GlobalPoint.h" | ||
#include "DataFormats/GeometryVector/interface/GlobalVector.h" | ||
#include "DataFormats/GeometryVector/interface/LocalPoint.h" | ||
#include "DataFormats/GeometryVector/interface/LocalVector.h" | ||
#include "DataFormats/HcalRecHit/interface/HcalRecHitCollections.h" | ||
#include "DataFormats/EcalRecHit/interface/EcalRecHitCollections.h" | ||
#include "DataFormats/Math/interface/deltaPhi.h" | ||
|
||
|
||
namespace reco { | ||
class HaloClusterCandidateECAL { | ||
|
||
public: | ||
HaloClusterCandidateECAL(); | ||
~HaloClusterCandidateECAL(){} | ||
|
||
|
||
|
||
double getClusterEt() const {return et;} | ||
double getSeedEt() const {return seed_et;} | ||
double getSeedEta() const {return seed_eta;} | ||
double getSeedPhi() const {return seed_phi;} | ||
double getSeedZ() const {return seed_Z;} | ||
double getSeedR() const {return seed_R;} | ||
double getSeedTime() const {return seed_time;} | ||
double getTimeDiscriminator() const {return timediscriminator;} | ||
bool getIsHaloFromPattern() const {return ishalofrompattern;} | ||
bool getIsHaloFromPattern_HLT() const {return ishalofrompattern_hlt;} | ||
const edm::RefVector<EcalRecHitCollection>& getBeamHaloRecHitsCandidates() const {return bhrhcandidates;} | ||
|
||
//Specific to EB: | ||
double getEtStripIPhiSeedPlus1() const {return etstrip_iphiseedplus1;} | ||
double getEtStripIPhiSeedMinus1() const {return etstrip_iphiseedminus1;} | ||
double getHoverE() const {return hovere;} | ||
int getNbofCrystalsInEta() const {return numberofcrystalsineta;} | ||
//Specific to EE: | ||
double getH2overE() const {return h2overe;} | ||
int getNbEarlyCrystals() const {return nbearlycrystals;} | ||
int getNbLateCrystals() const {return nblatecrystals;} | ||
int getClusterSize() const {return clustersize;} | ||
|
||
|
||
void setClusterEt(double x){ et=x;} | ||
void setSeedEt(double x){ seed_et=x;} | ||
void setSeedEta(double x){ seed_eta=x;} | ||
void setSeedPhi(double x){ seed_phi=x;} | ||
void setSeedZ(double x){ seed_Z=x;} | ||
void setSeedR(double x){ seed_R=x;} | ||
void setSeedTime(double x){ seed_time=x;} | ||
void setTimeDiscriminator(double x){ timediscriminator=x;} | ||
void setIsHaloFromPattern(bool x) { ishalofrompattern=x;} | ||
void setIsHaloFromPattern_HLT(bool x) { ishalofrompattern_hlt=x;} | ||
void setBeamHaloRecHitsCandidates(edm::RefVector<EcalRecHitCollection> x) {bhrhcandidates =x;} | ||
//Specific to EB: | ||
void setEtStripIPhiSeedPlus1(double x){ etstrip_iphiseedplus1=x;} | ||
void setEtStripIPhiSeedMinus1(double x){ etstrip_iphiseedminus1=x;} | ||
void setHoverE(double x){hovere=x;} | ||
void setNbofCrystalsInEta(double x){numberofcrystalsineta=x;} | ||
//Specific to EE: | ||
void setH2overE(double x){h2overe=x;} | ||
void setNbEarlyCrystals(int x){nbearlycrystals=x;} | ||
void setNbLateCrystals(int x){nblatecrystals=x;} | ||
void setClusterSize(int x){clustersize=x;} | ||
|
||
|
||
private: | ||
double et; | ||
double seed_et, seed_eta, seed_phi, seed_Z, seed_R, seed_time; | ||
double timediscriminator; | ||
bool ishalofrompattern; | ||
bool ishalofrompattern_hlt; | ||
//Specific to EB: | ||
double hovere; | ||
int numberofcrystalsineta; | ||
double etstrip_iphiseedplus1, etstrip_iphiseedminus1; | ||
//Specific to EE: | ||
double h2overe; | ||
int nbearlycrystals, nblatecrystals, clustersize; | ||
|
||
edm::RefVector<EcalRecHitCollection> bhrhcandidates; | ||
|
||
}; | ||
typedef std::vector<HaloClusterCandidateECAL> HaloClusterCandidateECALCollection; | ||
} | ||
#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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
#ifndef DATAFORMATS_METRECO_HALOCLUSTERCANDIDATEHCAL_H | ||
#define DATAFORMATS_METRECO_HALOCLUSTERCANDIDATEHCAL_H | ||
|
||
|
||
|
||
#include "DataFormats/DetId/interface/DetId.h" | ||
#include "DataFormats/EcalDetId/interface/EcalSubdetector.h" | ||
#include "DataFormats/EcalDetId/interface/EBDetId.h" | ||
#include "DataFormats/EcalDetId/interface/EEDetId.h" | ||
#include "DataFormats/GeometrySurface/interface/Cylinder.h" | ||
#include "DataFormats/GeometrySurface/interface/Plane.h" | ||
#include "DataFormats/GeometrySurface/interface/Cone.h" | ||
#include "DataFormats/GeometryVector/interface/GlobalPoint.h" | ||
#include "DataFormats/GeometryVector/interface/GlobalVector.h" | ||
#include "DataFormats/GeometryVector/interface/LocalPoint.h" | ||
#include "DataFormats/GeometryVector/interface/LocalVector.h" | ||
#include "DataFormats/HcalRecHit/interface/HBHERecHit.h" | ||
#include "DataFormats/HcalRecHit/interface/HcalRecHitCollections.h" | ||
#include "DataFormats/EcalRecHit/interface/EcalRecHitCollections.h" | ||
#include "DataFormats/Math/interface/deltaPhi.h" | ||
|
||
|
||
namespace reco { | ||
class HaloClusterCandidateHCAL { | ||
|
||
public: | ||
HaloClusterCandidateHCAL(); | ||
~HaloClusterCandidateHCAL(){} | ||
|
||
|
||
|
||
double getClusterEt() const {return et;} | ||
double getSeedEt() const {return seed_et;} | ||
double getSeedEta() const {return seed_eta;} | ||
double getSeedPhi() const {return seed_phi;} | ||
double getSeedZ() const {return seed_Z;} | ||
double getSeedR() const {return seed_R;} | ||
double getSeedTime() const {return seed_time;} | ||
bool getIsHaloFromPattern() const {return ishalofrompattern;} | ||
bool getIsHaloFromPattern_HLT() const {return ishalofrompattern_hlt;} | ||
double getEoverH() const {return eoverh;} | ||
double getEtStripPhiSeedPlus1() const {return etstrip_phiseedplus1;} | ||
double getEtStripPhiSeedMinus1() const {return etstrip_phiseedminus1;} | ||
edm::RefVector<HBHERecHitCollection> getBeamHaloRecHitsCandidates() const {return bhrhcandidates;} | ||
//Specific to HB: | ||
int getNbTowersInEta() const {return nbtowersineta;} | ||
double getTimeDiscriminatorITBH() const {return timediscriminatoritbh;} | ||
double getTimeDiscriminatorOTBH() const {return timediscriminatorotbh;} | ||
//Specific to HE: | ||
double getH1overH123() const {return h1overh123;} | ||
int getClusterSize() const {return clustersize;} | ||
double getTimeDiscriminator() const {return timediscriminator;} | ||
|
||
void setClusterEt(double x){ et=x;} | ||
void setSeedEt(double x){ seed_et=x;} | ||
void setSeedEta(double x){ seed_eta=x;} | ||
void setSeedPhi(double x){ seed_phi=x;} | ||
void setSeedZ(double x){ seed_Z=x;} | ||
void setSeedR(double x){ seed_R=x;} | ||
void setSeedTime(double x){ seed_time=x;} | ||
void setIsHaloFromPattern(bool x) { ishalofrompattern=x;} | ||
void setIsHaloFromPattern_HLT(bool x) { ishalofrompattern_hlt=x;} | ||
void setEoverH(double x){eoverh=x;} | ||
void setEtStripPhiSeedPlus1(double x){etstrip_phiseedplus1=x;} | ||
void setEtStripPhiSeedMinus1(double x){etstrip_phiseedminus1=x;} | ||
void setBeamHaloRecHitsCandidates(edm::RefVector<HBHERecHitCollection> x) {bhrhcandidates =x;} | ||
//Specific to HB: | ||
void setNbTowersInEta(double x){nbtowersineta=x;} | ||
void setTimeDiscriminatorITBH(double x){ timediscriminatoritbh=x;} | ||
void setTimeDiscriminatorOTBH(double x){ timediscriminatorotbh=x;} | ||
//Specific to HE: | ||
void setH1overH123(double x){h1overh123=x;} | ||
void setClusterSize(int x){clustersize=x;} | ||
void setTimeDiscriminator(double x){ timediscriminator=x;} | ||
|
||
private: | ||
double et; | ||
double seed_et, seed_eta, seed_phi, seed_Z, seed_R, seed_time; | ||
bool ishalofrompattern; | ||
bool ishalofrompattern_hlt; | ||
double eoverh; | ||
double etstrip_phiseedplus1, etstrip_phiseedminus1; | ||
//Specific to HB: | ||
int nbtowersineta; | ||
double timediscriminatoritbh, timediscriminatorotbh; | ||
//Specific to HE: | ||
double h1overh123; | ||
int clustersize; | ||
double timediscriminator; | ||
|
||
edm::RefVector<HBHERecHitCollection> bhrhcandidates; | ||
|
||
}; | ||
typedef std::vector<HaloClusterCandidateHCAL> HaloClusterCandidateHCALCollection; | ||
} | ||
#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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#include "DataFormats/METReco/interface/HaloClusterCandidateECAL.h" | ||
|
||
using namespace reco; | ||
HaloClusterCandidateECAL::HaloClusterCandidateECAL() : | ||
et(0), | ||
seed_et(0), | ||
seed_eta(0), | ||
seed_phi(0), | ||
seed_Z(0), | ||
seed_R(0), | ||
seed_time(0), | ||
timediscriminator(0), | ||
ishalofrompattern(false), | ||
ishalofrompattern_hlt(false), | ||
hovere(0), | ||
numberofcrystalsineta(0), | ||
etstrip_iphiseedplus1(0), | ||
etstrip_iphiseedminus1(0), | ||
h2overe(0), | ||
nbearlycrystals(0), | ||
nblatecrystals(0), | ||
clustersize(0) | ||
{ | ||
} |
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,24 @@ | ||
#include "DataFormats/METReco/interface/HaloClusterCandidateHCAL.h" | ||
|
||
using namespace reco; | ||
HaloClusterCandidateHCAL::HaloClusterCandidateHCAL() : | ||
et(0), | ||
seed_et(0), | ||
seed_eta(0), | ||
seed_phi(0), | ||
seed_Z(0), | ||
seed_R(0), | ||
seed_time(0), | ||
ishalofrompattern(false), | ||
ishalofrompattern_hlt(false), | ||
eoverh(0), | ||
etstrip_phiseedplus1(0), | ||
etstrip_phiseedminus1(0), | ||
nbtowersineta(0), | ||
timediscriminatoritbh(0), | ||
timediscriminatorotbh(0), | ||
h1overh123(0), | ||
clustersize(0), | ||
timediscriminator(0) | ||
{ | ||
} |
Oops, something went wrong.