63 std::auto_ptr<BeamHaloSummary> TheBeamHaloSummary(
new BeamHaloSummary() );
78 TheBeamHaloSummary->GetCSCHaloReport()[0] = 1;
87 TheBeamHaloSummary->GetCSCHaloReport()[1] = 1;
91 TheBeamHaloSummary->GetCSCHaloReport()[2] = 1;
97 TheBeamHaloSummary->GetCSCHaloReport()[3] = 1;
106 TheBeamHaloSummary->GetCSCHaloReport()[4] = 1;
113 TheBeamHaloSummary->GetCSCHaloReport()[5] = 1;
124 bool EcalLooseId =
false, EcalTightId =
false;
167 float angle = vm_Angle[cluster];
168 float roundness = vm_Roundness[cluster];
186 TheBeamHaloSummary->GetEcalHaloReport()[0] = 1;
188 TheBeamHaloSummary->GetEcalHaloReport()[1] = 1;
196 const std::vector<PhiWedge> HcalWedges = HcalData.
GetPhiWedges();
197 bool HcalLooseId =
false, HcalTightId =
false;
198 for( std::vector<PhiWedge>::const_iterator iWedge = HcalWedges.begin() ; iWedge != HcalWedges.end() ; iWedge++ )
200 bool HcaliPhi =
false;
215 for(
unsigned int i = 0 ;
i < TheBeamHaloSummary->GetHcaliPhiSuspects().size() ;
i++ )
217 if( iWedge->iPhi() == TheBeamHaloSummary->GetHcaliPhiSuspects()[
i] )
224 TheBeamHaloSummary->GetHcaliPhiSuspects().push_back( iWedge->iPhi() ) ;
228 TheBeamHaloSummary->GetHcalHaloReport()[0] = 1;
230 TheBeamHaloSummary->GetHcalHaloReport()[1] = 1;
237 TheBeamHaloSummary->getProblematicStrips().push_back(problematicStrip);
246 bool GlobalLooseId =
false;
247 bool GlobalTightId =
false;
253 if( MatchedEcalWedges.size() || MatchedHcalWedges.size() )
254 GlobalLooseId =
true;
257 for( std::vector<PhiWedge>::const_iterator iWedge = MatchedEcalWedges.begin() ; iWedge != MatchedEcalWedges.end(); iWedge ++ )
260 GlobalTightId =
true;
262 GlobalTightId =
true;
265 for( std::vector<PhiWedge>::const_iterator iWedge = MatchedHcalWedges.begin() ; iWedge != MatchedHcalWedges.end(); iWedge ++ )
268 GlobalTightId =
true;
270 GlobalTightId =
true;
274 TheBeamHaloSummary->GetGlobalHaloReport()[0] = 1;
276 TheBeamHaloSummary->GetGlobalHaloReport()[1] = 1;
284 TheBeamHaloSummary->GetGlobalHaloReport()[2] = 1;
292 TheBeamHaloSummary->GetGlobalHaloReport()[3] = 1;
296 iEvent.
put(TheBeamHaloSummary);
bool GetSegmentIsEECaloMatched() const
int NumberOfHaloTracks(HaloData::Endcap z=HaloData::both) const
edm::ValueMap< float > & GetShowerShapesRoundness()
edm::EDGetTokenT< HcalHaloData > hcalhalodata_token_
float L_HcalPhiWedgeConfidence
float T_EcalPhiWedgeConfidence
bool getByToken(EDGetToken token, Handle< PROD > &result) const
short int NFlatHaloSegments_TrkMuUnVeto() const
edm::RefVector< reco::SuperClusterCollection > & GetSuperClusters()
edm::ValueMap< float > & GetShowerShapesAngle()
short int NumberOfOutOfTimeTriggers(HaloData::Endcap z=HaloData::both) const
float L_EcalShowerShapesAngle
std::vector< PhiWedge > & GetMatchedEcalPhiWedges()
short int NFlatHaloSegments() const
int L_EcalSuperClusterSize
bool GetHaloPatternFoundEE() const
bool GetSegmentsInBothEndcaps() const
edm::EDGetTokenT< EcalHaloData > ecalhalodata_token_
int NumberOfHaloTriggers_TrkMuUnVeto(HaloData::Endcap z=HaloData::both) const
bool GetSegmentIsHECaloMatched() const
bool GetSegmentIsEBCaloMatched() const
edm::EDGetTokenT< GlobalHaloData > globalhalodata_token_
int T_EcalPhiWedgeConstituents
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
short int NTracksSmalldT() const
bool GetSegmentIsCaloMatched() const
Abs< T >::type abs(const T &t)
bool GetSegmentsInBothEndcaps_Loose_dTcut_TrkMuUnVeto() const
short int NOutOfTimeHits() const
float T_EcalShowerShapesAngle
bool GetHaloPatternFoundHE() const
int NumberOfHaloTriggers(HaloData::Endcap z=HaloData::both) const
float L_EcalShowerShapesRoundness
float T_EcalSuperClusterEnergy
float T_HcalPhiWedgeEnergy
T const * product() const
bool GetHaloPatternFoundHB() const
int T_EcalSuperClusterSize
float L_HcalPhiWedgeEnergy
std::vector< PhiWedge > & GetMatchedHcalPhiWedges()
const std::vector< HaloTowerStrip > & getProblematicStrips() const
edm::EDGetTokenT< CSCHaloData > cschalodata_token_
size_type size() const
Size of the RefVector.
float T_HcalPhiWedgeConfidence
const std::vector< PhiWedge > & GetPhiWedges() const
bool GetHaloPatternFoundEB() const
int problematicStripMinLength
float T_EcalShowerShapesRoundness
float L_EcalSuperClusterEnergy
bool GetSegmentsInBothEndcaps_Loose_TrkMuUnVeto() const
bool GetSegmentIsHBCaloMatched() const
int T_HcalPhiWedgeConstituents
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
int L_HcalPhiWedgeConstituents