Definition at line 87 of file MuonCaloCompatibility.cc.
References accessing_overflow(), reco::Muon::calEnergy(), reco::MuonEnergy::em, eta, reco::TrackBase::eta(), 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, AlCaHLTBitMon_ParallelJobs::p, reco::TrackBase::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().
89 edm::LogWarning(
"MuonIdentification") <<
"MuonCaloCompatibility is not configured! Nothing is calculated.";
132 throw cms::Exception(
"FatalError") <<
"Failed to fill muon id calo_compatibility information for a muon with undefined references to tracks";
144 if( p>=2000. ) p = 1999.9;
165 if( p>=2000. ) p = 1999.9;
183 if( p < 0. )
return 0.5;
184 if( fabs(eta) > 2.5 )
return 0.5;
202 else if(eta > -1.4 && eta <= -1.31) {
209 else if(eta > -1.31 && eta <= 1.31) {
218 else if(eta > 1.31 && eta <= 1.4) {
233 LogTrace(
"MuonIdentification")<<
"Some very weird thing happened in MuonCaloCompatibility::evaluate - go figure ;) ";
237 else if( 42 == 42 ) {
238 if( track->
eta() > 1.27 ) {
245 if( track->
eta() <= 1.27 && track->
eta() > 1.1 ) {
252 if( track->
eta() <= 1.1 && track->
eta() > -1.1 ) {
259 if( track->
eta() <= -1.1 && track->
eta() > -1.27 ) {
266 if( track->
eta() <= -1.27 ) {
278 if( track->
eta() > 1.479 ) {
285 if( track->
eta() <= 1.479 && track->
eta() > -1.479 ) {
291 if( track->
eta() <= -1.479 ) {
301 if( track->
eta() < 1.28 && track->
eta() > -1.28 ) {
320 LogTrace(
"MuonIdentification")<<
"Input variables: eta p em had ho "<<
"\n"
321 <<eta<<
" "<<p<<
" "<<em<<
" "<<had<<
" "<<ho<<
" "<<
"\n"
322 <<
"cal uncorr: em had ho "<<
"\n"
336 LogTrace(
"MuonIdentification")<<
" // Message: trying to access overflow bin in MuonCompatibility template for ecal - defaulting signal and background ";
345 LogTrace(
"MuonIdentification")<<
" // Message: trying to access overflow bin in MuonCompatibility template for hcal - defaulting signal and background ";
354 LogTrace(
"MuonIdentification")<<
" // Message: trying to access overflow bin in MuonCompatibility template for ho - defaulting signal and background ";
365 LogTrace(
"MuonIdentification")<<
" // Message: trying to access overflow bin in MuonCompatibility template for ecal - defaulting signal and background ";
374 LogTrace(
"MuonIdentification")<<
" // Message: trying to access overflow bin in MuonCompatibility template for hcal - defaulting signal and background ";
383 LogTrace(
"MuonIdentification")<<
" // Message: trying to access overflow bin in MuonCompatibility template for ho - defaulting signal and background ";
395 if (
psx == 0. ||
pbx == 0.) {
399 if (
psy == 0. ||
pby == 0.) {
403 if (
psz == 0. ||
pbz == 0.) {
434 LogTrace(
"MuonIdentification")<<
"Divide by 0 - defaulting consistency to 0.5 (neutral)!!";
436 LogTrace(
"MuonIdentification")<<
"Input variables: eta p em had ho "<<
"\n"
437 <<eta<<
" "<<p<<
" "<<em<<
" "<<had<<
" "<<ho<<
" "<<
"\n"
438 <<
"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
double eta() const
pseudorapidity of momentum vector
T const * get() const
Returns C++ pointer to the item.
bool isNull() const
Checks for null.
MuonEnergy calEnergy() const
get energy deposition information
bool accessing_overflow(TH2D *histo, double x, double y)
double muon_compatibility
virtual TrackRef standAloneMuon() const
reference to a stand-alone muon Track