34 float MinTimeHits[73];
36 float MaxTimeHits[73];
37 for(
unsigned int i = 0 ;
i < 73 ;
i++ )
48 switch (
id.subdet() )
62 if(iPhi < 73 && TMath::Abs(iEta) < 23 )
64 SumE[iPhi]+=
hit->energy();
68 MinTimeHits[iPhi] = time < MinTimeHits[iPhi] ? time : MinTimeHits[iPhi];
69 MaxTimeHits[iPhi] = time > MaxTimeHits[iPhi] ? time : MaxTimeHits[iPhi];
73 for(
int iPhi = 1 ; iPhi < 73 ; iPhi++ )
78 PhiWedge wedge(SumE[iPhi], iPhi, NumHits[iPhi], MinTimeHits[iPhi], MaxTimeHits[iPhi]);
81 std::vector<const HBHERecHit*> Hits;
86 if(
id.iphi() != iPhi )
continue;
87 if( TMath::Abs(
id.ieta() ) > 22 )
continue;
88 switch (
id.subdet() )
99 Hits.push_back(&(*
hit));
103 float MinusToPlus = 0.;
104 float PlusToMinus = 0.;
105 for(
unsigned int i = 0 ;
i < Hits.size() ;
i++ )
108 int ieta_i = id_i.
ieta();
109 for(
unsigned int j = (
i+1) ;
j < Hits.size() ;
j++ )
112 int ieta_j = id_j.
ieta();
113 if( ieta_i > ieta_j ) PlusToMinus += TMath::Abs(ieta_i - ieta_j ) ;
114 else MinusToPlus += TMath::Abs(ieta_i - ieta_j);
117 float PlusZOriginConfidence = (PlusToMinus + MinusToPlus )? PlusToMinus / ( PlusToMinus + MinusToPlus ) : -1. ;
118 wedge.SetPlusZOriginConfidence( PlusZOriginConfidence );
122 return TheHcalHaloData;
float HERecHitEnergyThreshold
std::vector< T >::const_iterator const_iterator
int ieta() const
get the cell ieta
float HBRecHitEnergyThreshold
bool CompareTime(const EcalRecHit *x, const EcalRecHit *y)
const std::vector< PhiWedge > & GetPhiWedges() const