Definition at line 88 of file MuonCaloCompatibility.cc.
References accessing_overflow(), reco::Muon::calEnergy(), reco::MuonEnergy::em, reco::TrackBase::eta(), eta(), edm::hlt::Exception, edm::Ref< C, T, F >::get(), reco::MuonEnergy::had, reco::MuonEnergy::ho, isConfigured_, edm::Ref< C, T, F >::isNull(), LogTrace, muon_compatibility, muon_em_etaB, muon_em_etaEmi, muon_em_etaEpl, muon_em_etaTmi, muon_em_etaTpl, muon_had_etaB, muon_had_etaEmi, muon_had_etaEpl, muon_had_etaTmi, muon_had_etaTpl, muon_ho_etaB, muon_template_em, muon_template_had, muon_template_ho, NULL, reco::TrackBase::p(), AlCaHLTBitMon_ParallelJobs::p, pbx, pby, pbz, pion_em_etaB, pion_em_etaEmi, pion_em_etaEpl, pion_em_etaTmi, pion_em_etaTpl, pion_had_etaB, pion_had_etaEmi, pion_had_etaEpl, pion_had_etaTmi, pion_had_etaTpl, pion_ho_etaB, pion_template_em, pion_template_had, pion_template_ho, psx, psy, psz, funct::sin(), reco::Muon::standAloneMuon(), reco::TrackBase::theta(), reco::Muon::track(), use_corrected_hcal, and use_em_special.
Referenced by MuonIdProducer::makeCaloMuon(), and MuonIdProducer::produce().
90 edm::LogWarning(
"MuonIdentification") <<
"MuonCaloCompatibility is not configured! Nothing is calculated.";
133 throw cms::Exception(
"FatalError") <<
"Failed to fill muon id calo_compatibility information for a muon with undefined references to tracks";
145 if( p>=2000. ) p = 1999.9;
166 if( p>=2000. ) p = 1999.9;
184 if( p < 0. )
return 0.5;
185 if( fabs(eta) > 2.5 )
return 0.5;
203 else if(eta > -1.4 && eta <= -1.31) {
210 else if(eta > -1.31 && eta <= 1.31) {
219 else if(eta > 1.31 && eta <= 1.4) {
234 LogTrace(
"MuonIdentification")<<
"Some very weird thing happened in MuonCaloCompatibility::evaluate - go figure ;) ";
238 else if( 42 == 42 ) {
239 if( track->
eta() > 1.27 ) {
246 if( track->
eta() <= 1.27 && track->
eta() > 1.1 ) {
253 if( track->
eta() <= 1.1 && track->
eta() > -1.1 ) {
260 if( track->
eta() <= -1.1 && track->
eta() > -1.27 ) {
267 if( track->
eta() <= -1.27 ) {
279 if( track->
eta() > 1.479 ) {
286 if( track->
eta() <= 1.479 && track->
eta() > -1.479 ) {
292 if( track->
eta() <= -1.479 ) {
302 if( track->
eta() < 1.28 && track->
eta() > -1.28 ) {
321 LogTrace(
"MuonIdentification")<<
"Input variables: eta p em had ho "<<
"\n"
322 <<eta<<
" "<<p<<
" "<<em<<
" "<<had<<
" "<<ho<<
" "<<
"\n"
323 <<
"cal uncorr: em had ho "<<
"\n"
337 LogTrace(
"MuonIdentification")<<
" // Message: trying to access overflow bin in MuonCompatibility template for ecal - defaulting signal and background ";
346 LogTrace(
"MuonIdentification")<<
" // Message: trying to access overflow bin in MuonCompatibility template for hcal - defaulting signal and background ";
355 LogTrace(
"MuonIdentification")<<
" // Message: trying to access overflow bin in MuonCompatibility template for ho - defaulting signal and background ";
366 LogTrace(
"MuonIdentification")<<
" // Message: trying to access overflow bin in MuonCompatibility template for ecal - defaulting signal and background ";
375 LogTrace(
"MuonIdentification")<<
" // Message: trying to access overflow bin in MuonCompatibility template for hcal - defaulting signal and background ";
384 LogTrace(
"MuonIdentification")<<
" // Message: trying to access overflow bin in MuonCompatibility template for ho - defaulting signal and background ";
396 if (
psx == 0. ||
pbx == 0.) {
400 if (
psy == 0. ||
pby == 0.) {
404 if (
psz == 0. ||
pbz == 0.) {
435 LogTrace(
"MuonIdentification")<<
"Divide by 0 - defaulting consistency to 0.5 (neutral)!!";
437 LogTrace(
"MuonIdentification")<<
"Input variables: eta p em had ho "<<
"\n"
438 <<eta<<
" "<<p<<
" "<<em<<
" "<<had<<
" "<<ho<<
" "<<
"\n"
439 <<
"cal uncorr: em had ho "<<
"\n"
double p() const
momentum vector magnitude
double theta() const
polar angle
Sin< T >::type sin(const T &t)
virtual TrackRef track() const
reference to a Track
float ho
energy deposited in crossed HO towers
bool isNull() const
Checks for null.
double eta() const
pseudorapidity of momentum vector
MuonEnergy calEnergy() const
get energy deposition information
bool accessing_overflow(TH2D *histo, double x, double y)
T const * get() const
Returns C++ pointer to the item.
double muon_compatibility
virtual TrackRef standAloneMuon() const
reference to a stand-alone muon Track