55 std::auto_ptr<BeamHaloSummary> TheBeamHaloSummary(
new BeamHaloSummary() );
64 TheBeamHaloSummary->GetCSCHaloReport()[0] = 1;
70 TheBeamHaloSummary->GetCSCHaloReport()[1] = 1;
78 bool EcalLooseId =
false, EcalTightId =
false;
121 float angle = vm_Angle[cluster];
122 float roundness = vm_Roundness[cluster];
140 TheBeamHaloSummary->GetEcalHaloReport()[0] = 1;
142 TheBeamHaloSummary->GetEcalHaloReport()[1] = 1;
150 const std::vector<PhiWedge> HcalWedges = HcalData.
GetPhiWedges();
151 bool HcalLooseId =
false, HcalTightId =
false;
152 for( std::vector<PhiWedge>::const_iterator iWedge = HcalWedges.begin() ; iWedge != HcalWedges.end() ; iWedge++ )
154 bool HcaliPhi =
false;
169 for(
unsigned int i = 0 ;
i < TheBeamHaloSummary->GetHcaliPhiSuspects().size() ;
i++ )
171 if( iWedge->iPhi() == TheBeamHaloSummary->GetHcaliPhiSuspects()[
i] )
178 TheBeamHaloSummary->GetHcaliPhiSuspects().push_back( iWedge->iPhi() ) ;
182 TheBeamHaloSummary->GetHcalHaloReport()[0] = 1;
184 TheBeamHaloSummary->GetHcalHaloReport()[1] = 1;
189 bool GlobalLooseId =
false;
190 bool GlobalTightId =
false;
196 if( MatchedEcalWedges.size() || MatchedHcalWedges.size() )
197 GlobalLooseId =
true;
200 for( std::vector<PhiWedge>::const_iterator iWedge = MatchedEcalWedges.begin() ; iWedge != MatchedEcalWedges.end(); iWedge ++ )
203 GlobalTightId =
true;
205 GlobalTightId =
true;
208 for( std::vector<PhiWedge>::const_iterator iWedge = MatchedHcalWedges.begin() ; iWedge != MatchedHcalWedges.end(); iWedge ++ )
211 GlobalTightId =
true;
213 GlobalTightId =
true;
217 TheBeamHaloSummary->GetGlobalHaloReport()[0] = 1;
219 TheBeamHaloSummary->GetGlobalHaloReport()[1] = 1;
221 iEvent.
put(TheBeamHaloSummary);
int NumberOfHaloTracks(HaloData::Endcap z=HaloData::both) const
edm::ValueMap< float > & GetShowerShapesRoundness()
float L_HcalPhiWedgeConfidence
float T_EcalPhiWedgeConfidence
edm::InputTag IT_GlobalHaloData
edm::RefVector< reco::SuperClusterCollection > & GetSuperClusters()
edm::ValueMap< float > & GetShowerShapesAngle()
edm::InputTag IT_CSCHaloData
short int NumberOfOutOfTimeTriggers(HaloData::Endcap z=HaloData::both) const
float L_EcalShowerShapesAngle
edm::InputTag IT_HcalHaloData
std::vector< PhiWedge > & GetMatchedEcalPhiWedges()
int L_EcalSuperClusterSize
int T_EcalPhiWedgeConstituents
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
float T_EcalShowerShapesAngle
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
int NumberOfHaloTriggers(HaloData::Endcap z=HaloData::both) const
float L_EcalShowerShapesRoundness
float T_EcalSuperClusterEnergy
float T_HcalPhiWedgeEnergy
edm::InputTag IT_EcalHaloData
int T_EcalSuperClusterSize
T const * product() const
float L_HcalPhiWedgeEnergy
std::vector< PhiWedge > & GetMatchedHcalPhiWedges()
size_type size() const
Size of the RefVector.
float T_HcalPhiWedgeConfidence
const std::vector< PhiWedge > & GetPhiWedges() const
float T_EcalShowerShapesRoundness
float L_EcalSuperClusterEnergy
int T_HcalPhiWedgeConstituents
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
int L_HcalPhiWedgeConstituents