1 #ifndef RECOLOCALCALO_CALOTOWERSCREATOR_CALOTOWERSCREATIONALGO_H
2 #define RECOLOCALCALO_CALOTOWERSCREATOR_CALOTOWERSCREATIONALGO_H 1
53 bool useEtEBTreshold,
bool useEtEETreshold,
54 bool useSymEBTreshold,
bool useSymEETreshold,
57 double HBthreshold,
double HESthreshold,
double HEDthreshold,
58 double HOthreshold0,
double HOthresholdPlus1,
double HOthresholdMinus1,
59 double HOthresholdPlus2,
double HOthresholdMinus2,
60 double HF1threshold,
double HF2threshold,
61 double EBweight,
double EEweight,
62 double HBweight,
double HESweight,
double HEDweight,
63 double HOweight,
double HF1weight,
double HF2weight,
64 double EcutTower,
double EBSumThreshold,
double EESumThreshold,
bool useHO,
75 bool useEtEBTreshold,
bool useEtEETreshold,
76 bool useSymEBTreshold,
bool useSymEETreshold,
79 double HBthreshold,
double HESthreshold,
double HEDthreshold,
80 double HOthreshold0,
double HOthresholdPlus1,
double HOthresholdMinus1,
81 double HOthresholdPlus2,
double HOthresholdMinus2,
82 double HF1threshold,
double HF2threshold,
83 const std::vector<double> & EBGrid,
const std::vector<double> & EBWeights,
84 const std::vector<double> & EEGrid,
const std::vector<double> & EEWeights,
85 const std::vector<double> & HBGrid,
const std::vector<double> & HBWeights,
86 const std::vector<double> & HESGrid,
const std::vector<double> & HESWeights,
87 const std::vector<double> & HEDGrid,
const std::vector<double> & HEDWeights,
88 const std::vector<double> & HOGrid,
const std::vector<double> & HOWeights,
89 const std::vector<double> & HF1Grid,
const std::vector<double> & HF1Weights,
90 const std::vector<double> & HF2Grid,
const std::vector<double> & HF2Weights,
91 double EBweight,
double EEweight,
92 double HBweight,
double HESweight,
double HEDweight,
93 double HOweight,
double HF1weight,
double HF2weight,
94 double EcutTower,
double EBSumThreshold,
double EESumThreshold,
bool useHO,
196 float fracDepth,
double hadE);
198 float fracDepth,
double totEmE);
206 float fracDepth,
double totEmE);
std::vector< double > theHBGrid
const EcalChannelStatus * theEcalChStatus
bool theUseEtEETresholdFlag
const HcalChannelQuality * theHcalChStatus
void setEcalChStatusFromDB(const EcalChannelStatus *s)
std::map< CaloTowerDetId, MetaTower > MetaTowerMap
void setHF1EScale(double scale)
std::vector< double > theHESGrid
std::vector< double > theHEDGrid
GlobalPoint emCrystalShwrPos(DetId detId, float fracDepth)
std::vector< int > theEcalSeveritiesToBeUsedInBadTowers
void setHcalChStatusFromDB(const HcalChannelQuality *s)
void setHF2EScale(double scale)
void finish(CaloTowerCollection &destCollection)
void setEeHandle(const edm::Handle< EcalRecHitCollection > ee)
edm::Handle< EcalRecHitCollection > theEeHandle
std::vector< double > theHOWeights
MetaTower & find(const CaloTowerDetId &id)
looks for a given tower in the internal cache. If it can't find it, it makes it.
std::vector< double > theEEGrid
void rescale(const CaloTower *ct)
unsigned int ecalChanStatusForCaloTower(const CaloRecHit *hit)
GlobalPoint emShwrPos(const std::vector< std::pair< DetId, double > > &metaContains, float fracDepth, double totEmE)
void setHBEScale(double scale)
std::vector< double > theEEWeights
std::vector< double > theHESWeights
void setEbHandle(const edm::Handle< EcalRecHitCollection > eb)
const CaloSubdetectorGeometry * theTowerGeometry
void setUseRejectedRecoveredEcalHits(bool flag)
unsigned int hcalChanStatusForCaloTower(const CaloRecHit *hit)
std::vector< double > theHF2Grid
std::map< CaloTowerDetId, int > HcalDropChMap
std::vector< double > theHEDWeights
unsigned int useRejectedRecoveredEcalHits
void rescaleTowers(const CaloTowerCollection &ctInput, CaloTowerCollection &ctResult)
const CaloGeometry * theGeometry
void setEcalSeveritiesToBeExcluded(const std::vector< int > &ecalSev)
void setHcalAcceptSeverityLevelForRejectedHit(unsigned int level)
void setHcalSevLvlComputer(const HcalSeverityLevelComputer *c)
std::vector< double > theHOGrid
const CaloTowerConstituentsMap * theTowerConstituentsMap
double theHOthresholdPlus1
void convert(const CaloTowerDetId &id, const MetaTower &mt, CaloTowerCollection &collection)
void SetEcalSeveritiesToBeUsedInBadTowers(const std::vector< int > &ecalSev)
std::vector< double > theHF1Weights
void setRecoveredEcalHitsAreUsed(bool flag)
GlobalPoint hadSegmentShwrPos(DetId detId, float fracDepth)
bool theRecoveredHcalHitsAreUsed
bool theHOIsUsed
only affects energy and ET calculation. HO is still recorded in the tower
void process(const HBHERecHitCollection &hbhe)
unsigned int useRejectedRecoveredHcalHits
double theHOthresholdMinus2
std::vector< double > theHBWeights
const HcalSeverityLevelComputer * theHcalSevLvlComputer
void setHESEScale(double scale)
void setHEDEScale(double scale)
bool theUseSymEBTresholdFlag
void setEEEScale(double scale)
int compactTime(float time)
GlobalPoint hadShwPosFromCells(DetId frontCell, DetId backCell, float fracDepth)
void setRecoveredHcalHitsAreUsed(bool flag)
void getThresholdAndWeight(const DetId &detId, double &threshold, double &weight) const
helper method to look up the appropriate threshold & weight
void setUseRejectedHitsOnly(bool flag)
const HcalTopology * theHcalTopology
std::vector< int > theEcalSeveritiesToBeExcluded
void setHOEScale(double scale)
GlobalPoint hadShwrPos(const std::vector< std::pair< DetId, double > > &metaContains, float fracDepth, double hadE)
double theHOthresholdMinus1
const EcalSeverityLevelAlgo * theEcalSevLvlAlgo
void setHcalAcceptSeverityLevel(unsigned int level)
std::vector< double > theHF1Grid
void assignHit(const CaloRecHit *recHit)
adds a single hit to the tower
std::vector< double > theEBGrid
std::vector< double > theHF2Weights
void setEcalSevLvlAlgo(const EcalSeverityLevelAlgo *a)
bool theUseEtEBTresholdFlag
void setUseRejectedRecoveredHcalHits(bool flag)
unsigned int theHcalAcceptSeverityLevelForRejectedHit
void setGeometry(const CaloTowerConstituentsMap *cttopo, const HcalTopology *htopo, const CaloGeometry *geo)
HcalDropChMap hcalDropChMap
void setEBEScale(double scale)
std::vector< double > theEBWeights
double theHOthresholdPlus2
bool theRecoveredEcalHitsAreUsed
unsigned int theHcalAcceptSeverityLevel
bool theUseSymEETresholdFlag
edm::Handle< EcalRecHitCollection > theEbHandle
GlobalPoint emShwrLogWeightPos(const std::vector< std::pair< DetId, double > > &metaContains, float fracDepth, double totEmE)