Skip to content
Snippets Groups Projects
Commit c67100f4 authored by Scott Snyder's avatar Scott Snyder Committed by Graeme Stewart
Browse files

'Const fix.' (TrigEgammaMuonCombHypo-00-01-04)

	* Tagging TrigEgammaMuonCombHypo-00-01-04.
	* Const fix.
	* Tagging TrigEgammaMuonCombHypo-00-01-03.
	* Comply with ATLAS naming conventions.
	* Tagging TrigEgammaMuonCombHypo-00-01-02.
	* endreq -> endmsg.


Former-commit-id: bf642f13
parent 7446c697
No related branches found
No related tags found
No related merge requests found
......@@ -110,8 +110,8 @@ private:
ElectronMuonTopoInfoContainer* m_egMuTopoColl; //!< Pointer to ElectronMuonTopoInfoCollection
std::vector<const Rec::TrackParticle*> electronCollection; //!< In case more electrons will be present in input collections which would pass the cuts, store them all
std::vector<const Trk::Track*> muonCollection; //!<In case more electrons will be present in input collections which would pass the cuts, store them all
std::vector<const Rec::TrackParticle*> m_electronCollection; //!< In case more electrons will be present in input collections which would pass the cuts, store them all
std::vector<const Trk::Track*> m_muonCollection; //!<In case more electrons will be present in input collections which would pass the cuts, store them all
};
......
......@@ -60,23 +60,23 @@ HLT::ErrorCode TrigEFElectronMuonAngleHypo::hltInitialize()
{
if (msgLvl() <= MSG::VERBOSE) {
msg() << MSG::DEBUG << "Initialization:" << endreq;
msg() << MSG::DEBUG << "Initialization:" << endmsg;
}
if(msgLvl() <= MSG::DEBUG) {
msg() << MSG::DEBUG << "Initialization completed successfully:" << endreq;
msg() << MSG::DEBUG << "Input collection label = <" << m_inputLabel << endreq;
msg() << MSG::DEBUG << "Initialization completed successfully:" << endmsg;
msg() << MSG::DEBUG << "Input collection label = <" << m_inputLabel << endmsg;
msg() << MSG::DEBUG << "AcceptAll = "
<< (m_acceptAll==true ? "True" : "False") << endreq;
<< (m_acceptAll==true ? "True" : "False") << endmsg;
msg() << MSG::DEBUG << "OppositeCharge = "
<< (m_oppositeCharge==true ? "True" : "False") << endreq;
<< (m_oppositeCharge==true ? "True" : "False") << endmsg;
msg() << MSG::DEBUG << "CommonVertex = "
<< (m_commonVertex==true ? "True" : "False") << endreq;
msg() << MSG::DEBUG << "DeltaPhiCut = " << m_MaxDPhi << endreq;
msg() << MSG::DEBUG << "DeltaRRange = <" << m_MinDR << " - " << m_MaxDR << " >" << endreq;
msg() << MSG::DEBUG << "LowerMassCut = " << m_lowerMassCut << endreq;
msg() << MSG::DEBUG << "UpperMassCut = " << m_upperMassCut << endreq;
<< (m_commonVertex==true ? "True" : "False") << endmsg;
msg() << MSG::DEBUG << "DeltaPhiCut = " << m_MaxDPhi << endmsg;
msg() << MSG::DEBUG << "DeltaRRange = <" << m_MinDR << " - " << m_MaxDR << " >" << endmsg;
msg() << MSG::DEBUG << "LowerMassCut = " << m_lowerMassCut << endmsg;
msg() << MSG::DEBUG << "UpperMassCut = " << m_upperMassCut << endmsg;
}
return HLT::OK;
......@@ -86,7 +86,7 @@ HLT::ErrorCode TrigEFElectronMuonAngleHypo::hltInitialize()
HLT::ErrorCode TrigEFElectronMuonAngleHypo::hltFinalize()
{
if ( msgLvl() <= MSG::INFO )
msg() << MSG::INFO << "in finalize()" << endreq;
msg() << MSG::INFO << "in finalize()" << endmsg;
return HLT::OK;
}
......@@ -107,17 +107,17 @@ HLT::ErrorCode TrigEFElectronMuonAngleHypo::hltExecute(const HLT::TriggerElement
if ( getFeature(outputTE, EgMuTopoInfoColl) != HLT::OK || EgMuTopoInfoColl==0) {
if ( msgLvl() <= MSG::WARNING) {
msg() << MSG::WARNING << "No mass information found for this trigger element! " << endreq;
msg() << MSG::WARNING << "No mass information found for this trigger element! " << endmsg;
}
return HLT::MISSING_FEATURE;
} else {
if ( msgLvl() <= MSG::DEBUG )
msg() << MSG::DEBUG << "ElectronMuonTopoInfoContainer successfully retrieved" << endreq;
msg() << MSG::DEBUG << "ElectronMuonTopoInfoContainer successfully retrieved" << endmsg;
}
if(m_acceptAll){
pass = true;
if(msgLvl() <= MSG::DEBUG) msg() << MSG::DEBUG << " Force accept! pass = " << pass << endreq;
if(msgLvl() <= MSG::DEBUG) msg() << MSG::DEBUG << " Force accept! pass = " << pass << endmsg;
return HLT::OK;
}
......@@ -128,7 +128,7 @@ HLT::ErrorCode TrigEFElectronMuonAngleHypo::hltExecute(const HLT::TriggerElement
m_monCut = 1;
if(msgLvl() <= MSG::VERBOSE) {
msg() << MSG::VERBOSE << "Got electronMuonTopoInfoCollection of the length " << EgMuTopoInfoColl->size() << endreq;
msg() << MSG::VERBOSE << "Got electronMuonTopoInfoCollection of the length " << EgMuTopoInfoColl->size() << endmsg;
}
ElectronMuonTopoInfoContainer::const_iterator egMuTopoInfo;
......@@ -141,7 +141,7 @@ HLT::ErrorCode TrigEFElectronMuonAngleHypo::hltExecute(const HLT::TriggerElement
oppositeCharge = (*egMuTopoInfo)->OppositeCharge();
if ( msgLvl() <= MSG::DEBUG ){
msg() << MSG::DEBUG << "Object no. " << egMuTopoInfo - EgMuTopoInfoColl->begin() << ": Reading in mass and distance information from address " << (*egMuTopoInfo) << "; " << *(*egMuTopoInfo) << endreq;
msg() << MSG::DEBUG << "Object no. " << egMuTopoInfo - EgMuTopoInfoColl->begin() << ": Reading in mass and distance information from address " << (*egMuTopoInfo) << "; " << *(*egMuTopoInfo) << endmsg;
}
m_monDPhiAll=dphi;
......@@ -153,13 +153,13 @@ HLT::ErrorCode TrigEFElectronMuonAngleHypo::hltExecute(const HLT::TriggerElement
{
if(msgLvl() <= MSG::VERBOSE) {
msg() << MSG::VERBOSE << "Combination did not pass opposite charge cut"
<< endreq;
<< endmsg;
}
continue;
}else{
if(msgLvl() <= MSG::VERBOSE) {
msg() << MSG::VERBOSE << "Combination passed opposite charge cut"
<< endreq;
<< endmsg;
}
}
......@@ -171,13 +171,13 @@ HLT::ErrorCode TrigEFElectronMuonAngleHypo::hltExecute(const HLT::TriggerElement
{
if(msgLvl() <= MSG::VERBOSE) {
msg() << MSG::VERBOSE << "Combination does not form common vertex."
<< endreq;
<< endmsg;
}
continue;
}else{
if(msgLvl() <= MSG::VERBOSE) {
msg() << MSG::DEBUG << "Combination passed common vertex cut with state " << VX_state
<< endreq;
<< endmsg;
}
}
......@@ -190,13 +190,13 @@ HLT::ErrorCode TrigEFElectronMuonAngleHypo::hltExecute(const HLT::TriggerElement
if(dphi > m_MaxDPhi) {
if(msgLvl() <= MSG::VERBOSE) {
msg() << MSG::VERBOSE << "Combination failed dPhi cut: "
<< dphi << " larger than " << m_MaxDPhi << endreq;
<< dphi << " larger than " << m_MaxDPhi << endmsg;
}
continue;
}else{
if(msgLvl() <= MSG::VERBOSE) {
msg() << MSG::DEBUG << "Combination passed delta phi cut: "
<< dphi << " less than or equal to " << m_MaxDPhi << endreq;
<< dphi << " less than or equal to " << m_MaxDPhi << endmsg;
}
m_monDPhiAccepted=dphi;
......@@ -207,13 +207,13 @@ HLT::ErrorCode TrigEFElectronMuonAngleHypo::hltExecute(const HLT::TriggerElement
if(dr > m_MaxDR || dr < m_MinDR) {
if(msgLvl() <= MSG::VERBOSE) {
msg() << MSG::VERBOSE << "Combination failed dR cut: "
<< dr << " outside < " << m_MinDR << "," << m_MaxDR << ">" << endreq;
<< dr << " outside < " << m_MinDR << "," << m_MaxDR << ">" << endmsg;
}
continue;
}else{
if(msgLvl() <= MSG::VERBOSE) {
msg() << MSG::DEBUG << "Combination passed delta R cut: "
<< dr << " inside < " << m_MinDR << "," << m_MaxDR << ">" << endreq; }
<< dr << " inside < " << m_MinDR << "," << m_MaxDR << ">" << endmsg; }
m_monDRAccepted=dr;
}
......@@ -227,7 +227,7 @@ HLT::ErrorCode TrigEFElectronMuonAngleHypo::hltExecute(const HLT::TriggerElement
if(msgLvl() <= MSG::VERBOSE) {
msg() << MSG::VERBOSE << "Combination failed mass cut: "
<< mass << " not in [" << m_lowerMassCut << ","
<< m_upperMassCut << "]" << endreq;
<< m_upperMassCut << "]" << endmsg;
}
} else {
// good combination found
......@@ -237,9 +237,9 @@ HLT::ErrorCode TrigEFElectronMuonAngleHypo::hltExecute(const HLT::TriggerElement
if(msgLvl() <= MSG::VERBOSE) {
msg() << MSG::VERBOSE << "Combination passed mass cut: "
<< m_lowerMassCut << " < " << mass << " < "
<< m_upperMassCut << endreq;
<< m_upperMassCut << endmsg;
msg() << MSG::DEBUG << "Good combination found! Memu="
<< mass << " CLHEP::MeV" << endreq;
<< mass << " CLHEP::MeV" << endmsg;
}
}
......@@ -248,6 +248,6 @@ HLT::ErrorCode TrigEFElectronMuonAngleHypo::hltExecute(const HLT::TriggerElement
}//end of loop over ElectronMuonInfo objects
// set output TriggerElement true if good combination
if(msgLvl() <= MSG::DEBUG) msg() << MSG::DEBUG << "pass = " << pass << endreq;
if(msgLvl() <= MSG::DEBUG) msg() << MSG::DEBUG << "pass = " << pass << endmsg;
return HLT::OK;
}
......@@ -59,7 +59,7 @@ HLT::ErrorCode TrigEFPhotonMuonAngleFexAlgo::hltInitialize()
{
if (msgLvl() <= MSG::DEBUG) {
msg() << MSG::DEBUG << "Initialization:" << endreq;
msg() << MSG::DEBUG << "Initialization:" << endmsg;
}
......@@ -70,7 +70,7 @@ HLT::ErrorCode TrigEFPhotonMuonAngleFexAlgo::hltInitialize()
HLT::ErrorCode TrigEFPhotonMuonAngleFexAlgo::hltFinalize()
{
if ( msgLvl() <= MSG::INFO )
msg() << MSG::INFO << "in finalize()" << endreq;
msg() << MSG::INFO << "in finalize()" << endmsg;
return HLT::OK;
}
......@@ -84,10 +84,10 @@ HLT::ErrorCode TrigEFPhotonMuonAngleFexAlgo::hltExecute(HLT::TEConstVec& inputTE
bool debug = msgLvl() <= MSG::DEBUG;
// sanity checks
if ( debug ) msg() << MSG::DEBUG << "Running TrigEFPhotonMuonAngleFexAlgo" << endreq;
if ( debug ) msg() << MSG::DEBUG << "Running TrigEFPhotonMuonAngleFexAlgo" << endmsg;
if ( inputTE.size() != 2 ) {
msg() << MSG::ERROR << "Got diferent than 2 number of input TEs: " << inputTE.size() << " job badly configured" << endreq;
msg() << MSG::ERROR << "Got diferent than 2 number of input TEs: " << inputTE.size() << " job badly configured" << endmsg;
return HLT::BAD_JOB_SETUP;
}
......@@ -101,11 +101,11 @@ HLT::ErrorCode TrigEFPhotonMuonAngleFexAlgo::hltExecute(HLT::TEConstVec& inputTE
const TrigRoiDescriptor* roiDescriptor2 = 0;
if ( getFeature(te1, roiDescriptor1) != HLT::OK || getFeature(te2, roiDescriptor2) != HLT::OK || roiDescriptor1==0 || roiDescriptor2==0) {
if ( msgLvl() <= MSG::DEBUG) {
msg() << MSG::DEBUG << "No RoIDescriptors for this Trigger Elements! " << endreq;
msg() << MSG::DEBUG << "No RoIDescriptors for this Trigger Elements! " << endmsg;
}
} else {
if ( debug )
msg() << MSG::DEBUG << "Trying to combine 2 RoIs: " << *roiDescriptor1 << " & " << *roiDescriptor2 << endreq;
msg() << MSG::DEBUG << "Trying to combine 2 RoIs: " << *roiDescriptor1 << " & " << *roiDescriptor2 << endmsg;
}
}
......@@ -119,21 +119,21 @@ HLT::ErrorCode TrigEFPhotonMuonAngleFexAlgo::hltExecute(HLT::TEConstVec& inputTE
{
if ( msgLvl() <= MSG::WARNING)
msg() << MSG::WARNING << "Failed to get xAOD::PhotonContainer collection" << endreq;
msg() << MSG::WARNING << "Failed to get xAOD::PhotonContainer collection" << endmsg;
return HLT::MISSING_FEATURE;
}
else{
if ( debug )
msg() << MSG::DEBUG << "xAOD::PhotonContainer collection successfully retrieved" << endreq;
msg() << MSG::DEBUG << "xAOD::PhotonContainer collection successfully retrieved" << endmsg;
}
}else{
if ( debug )
msg() << MSG::DEBUG << "xAOD::PhotonContainer collection successfully retrieved" << endreq;
msg() << MSG::DEBUG << "xAOD::PhotonContainer collection successfully retrieved" << endmsg;
}
if (vectorEgammaContainers.size() < 1) {
msg() << MSG::DEBUG << " empty xAOD::PhotonContainer from the trigger element" << endreq;
msg() << MSG::DEBUG << " empty xAOD::PhotonContainer from the trigger element" << endmsg;
return HLT::OK;
}
const xAOD::PhotonContainer* photonContainer1 = vectorEgammaContainers.back();;
......@@ -148,17 +148,17 @@ HLT::ErrorCode TrigEFPhotonMuonAngleFexAlgo::hltExecute(HLT::TEConstVec& inputTE
if(getFeature(te2, MuEFTracksEF) != HLT::OK || MuEFTracksEF == 0)
{
if ( msgLvl() <= MSG::WARNING)
msg() << MSG::WARNING << "Failed to get EF MuidTrackContainer" << endreq;
msg() << MSG::WARNING << "Failed to get EF MuidTrackContainer" << endmsg;
return HLT::MISSING_FEATURE;
}
else{
if ( debug )
msg() << MSG::DEBUG << "EF MuidTrackContainer successfully retrieved with size " << MuEFTracksEF->size() << endreq;
msg() << MSG::DEBUG << "EF MuidTrackContainer successfully retrieved with size " << MuEFTracksEF->size() << endmsg;
}
}else{
if ( debug )
msg() << MSG::DEBUG << "EF MuidTrackContainer successfully retrieved with size " << MuEFTracksEF->size() << endreq;
msg() << MSG::DEBUG << "EF MuidTrackContainer successfully retrieved with size " << MuEFTracksEF->size() << endmsg;
}
......@@ -169,7 +169,7 @@ HLT::ErrorCode TrigEFPhotonMuonAngleFexAlgo::hltExecute(HLT::TEConstVec& inputTE
xAOD::PhotonContainer::const_iterator photon1;
xAOD::MuonContainer::const_iterator muon;
if(msgLvl() <= MSG::VERBOSE) {
msg() << MSG::VERBOSE << "Size of photon container: " << photonContainer1->size() << " size of muon container " << MuEFTracksEF->size() << endreq;
msg() << MSG::VERBOSE << "Size of photon container: " << photonContainer1->size() << " size of muon container " << MuEFTracksEF->size() << endmsg;
}
int mu_count,el_count;
mu_count=el_count=0;
......@@ -184,13 +184,13 @@ HLT::ErrorCode TrigEFPhotonMuonAngleFexAlgo::hltExecute(HLT::TEConstVec& inputTE
if((*photon1)==0)
{
msg() << MSG::WARNING << "Null pointer in egammaContainer. Skipping." << endreq;
msg() << MSG::WARNING << "Null pointer in egammaContainer. Skipping." << endmsg;
continue;
}
const xAOD::CaloCluster* clus = (*photon1)->caloCluster();
if(!clus) {
if(debug)
msg() << MSG::DEBUG << "REGTEST no cluster pointer in egamma object " << endreq;
msg() << MSG::DEBUG << "REGTEST no cluster pointer in egamma object " << endmsg;
continue;
}
......@@ -198,17 +198,17 @@ HLT::ErrorCode TrigEFPhotonMuonAngleFexAlgo::hltExecute(HLT::TEConstVec& inputTE
mu_count++;
if((*muon)==0)
{
msg() << MSG::WARNING << "Null pointer in MuonContainer. Skipping." << endreq;
msg() << MSG::WARNING << "Null pointer in MuonContainer. Skipping." << endmsg;
continue;
}
const xAOD::TrackParticle* muon1 = (*muon)->trackParticle(xAOD::Muon::CombinedTrackParticle);
if (!muon1) {
if (debug) msg() << MSG::DEBUG << "No CombinedTrackParticle found." << endreq;
if (debug) msg() << MSG::DEBUG << "No CombinedTrackParticle found." << endmsg;
continue;
}
if(msgLvl() <= MSG::VERBOSE) {
mu_count++;
msg() << MSG::VERBOSE << "Processing photon no. " << el_count << " and muon no. " << mu_count << endreq;
msg() << MSG::VERBOSE << "Processing photon no. " << el_count << " and muon no. " << mu_count << endmsg;
}
......@@ -217,18 +217,18 @@ HLT::ErrorCode TrigEFPhotonMuonAngleFexAlgo::hltExecute(HLT::TEConstVec& inputTE
float mu_phi = muon1->phi();
if(msgLvl() <= MSG::VERBOSE) {
msg() << MSG::VERBOSE << "New combination:" << endreq;
msg() << MSG::VERBOSE << "New combination:" << endmsg;
msg() << MSG::VERBOSE << "egammaPhoton: addr=" << (*photon1)
<< " et=" << clus->e()/cosh(clus->eta())
<< "; eta=" << clus->eta()
<< "; phi=" << clus->phi()
<< endreq;
<< endmsg;
msg() << MSG::VERBOSE << "muon: addr=" << muon1
<< " et=" << muon1->pt()
<< "; eta=" << muon1->eta()
<< "; phi=" << mu_phi
<< "; charge=" << muon1->charge()
<< endreq;
<< endmsg;
}
......@@ -254,7 +254,7 @@ HLT::ErrorCode TrigEFPhotonMuonAngleFexAlgo::hltExecute(HLT::TEConstVec& inputTE
if(debug){
msg() << MSG::DEBUG << "Created following object: "
<< (*EgMuTopoInfo)
<< endreq;
<< endmsg;
}
egMuTopoColl->push_back(EgMuTopoInfo);
......@@ -265,13 +265,13 @@ HLT::ErrorCode TrigEFPhotonMuonAngleFexAlgo::hltExecute(HLT::TEConstVec& inputTE
HLT::ErrorCode hltStatus = attachFeature(outputTE, egMuTopoColl, "HLT_PhotonMuonTopoFEX");
if (hltStatus != HLT::OK ){
msg() << MSG::WARNING << "Write of ElectronMuonTopoInfo container to outputTE failed" << endreq;
msg() << MSG::WARNING << "Write of ElectronMuonTopoInfo container to outputTE failed" << endmsg;
for(ElectronMuonTopoInfoContainer::iterator itr = egMuTopoColl->begin(); itr!=egMuTopoColl->end() ; ++itr)
delete *itr;
delete egMuTopoColl;
return hltStatus;
}else{
if(debug) msg() << MSG::DEBUG << "successfully recorded EF_PhotonMuonTopoFEX" << endreq;
if(debug) msg() << MSG::DEBUG << "successfully recorded EF_PhotonMuonTopoFEX" << endmsg;
}
return HLT::OK;
......
......@@ -66,21 +66,21 @@ HLT::ErrorCode TrigL2ElectronMuonAngleFexAlgo::hltInitialize()
{
if (msgLvl() <= MSG::DEBUG) {
msg() << MSG::DEBUG << "Initialization:" << endreq;
msg() << MSG::DEBUG << "Initialization:" << endmsg;
}
if(msgLvl() <= MSG::DEBUG) {
msg() << MSG::DEBUG << "Initialization completed successfully:" << endreq;
msg() << MSG::DEBUG << "Initialization completed successfully:" << endmsg;
msg() << MSG::DEBUG << "AcceptAll = "
<< (m_acceptAll==true ? "True" : "False") << endreq;
<< (m_acceptAll==true ? "True" : "False") << endmsg;
msg() << MSG::DEBUG << "ValidElectron = "
<< (m_electronValid==true ? "True" : "False") << endreq;
msg() << MSG::DEBUG << "DeltaPhiCut = " << m_MaxDPhi << endreq;
msg() << MSG::DEBUG << "DeltaPhiCut = " << m_MaxDPhi << endreq;
msg() << MSG::DEBUG << "MaxDeltaRCut = " << m_MaxDR << endreq;
msg() << MSG::DEBUG << "LowerMassCut = " << m_lowerMassCut << endreq;
msg() << MSG::DEBUG << "UpperMassCut = " << m_upperMassCut << endreq;
<< (m_electronValid==true ? "True" : "False") << endmsg;
msg() << MSG::DEBUG << "DeltaPhiCut = " << m_MaxDPhi << endmsg;
msg() << MSG::DEBUG << "DeltaPhiCut = " << m_MaxDPhi << endmsg;
msg() << MSG::DEBUG << "MaxDeltaRCut = " << m_MaxDR << endmsg;
msg() << MSG::DEBUG << "LowerMassCut = " << m_lowerMassCut << endmsg;
msg() << MSG::DEBUG << "UpperMassCut = " << m_upperMassCut << endmsg;
}
return HLT::OK;
......@@ -90,7 +90,7 @@ HLT::ErrorCode TrigL2ElectronMuonAngleFexAlgo::hltInitialize()
HLT::ErrorCode TrigL2ElectronMuonAngleFexAlgo::hltFinalize()
{
if ( msgLvl() <= MSG::INFO )
msg() << MSG::INFO << "in finalize()" << endreq;
msg() << MSG::INFO << "in finalize()" << endmsg;
return HLT::OK;
}
......@@ -104,10 +104,10 @@ HLT::ErrorCode TrigL2ElectronMuonAngleFexAlgo::acceptInputs(HLT::TEConstVec& inp
// sanity checks
if ( msgLvl() <= MSG::DEBUG )
msg() << MSG::DEBUG << "Running TrigL2ElectronMuonAngleFexAlgo::acceptInputs" << endreq;
msg() << MSG::DEBUG << "Running TrigL2ElectronMuonAngleFexAlgo::acceptInputs" << endmsg;
if ( inputTE.size() != 2 ) {
msg() << MSG::ERROR << "Got diferent than 2 number of input TEs: " << inputTE.size() << " job badly configured" << endreq;
msg() << MSG::ERROR << "Got diferent than 2 number of input TEs: " << inputTE.size() << " job badly configured" << endmsg;
return HLT::BAD_JOB_SETUP;
}
......@@ -117,7 +117,7 @@ HLT::ErrorCode TrigL2ElectronMuonAngleFexAlgo::acceptInputs(HLT::TEConstVec& inp
if (m_acceptAll) {
if ( msgLvl() <= MSG::DEBUG )
msg() << MSG::DEBUG << "AcceptAll property is set: taking all events"
<< endreq;
<< endmsg;
pass = true;
return HLT::OK;
......@@ -125,7 +125,7 @@ HLT::ErrorCode TrigL2ElectronMuonAngleFexAlgo::acceptInputs(HLT::TEConstVec& inp
else {
if ( msgLvl() <= MSG::DEBUG )
msg() << MSG::DEBUG << "AcceptAll property not set: applying selection"
<< endreq;
<< endmsg;
}
// this are 2 TEs which we eventually will combine
......@@ -138,12 +138,12 @@ HLT::ErrorCode TrigL2ElectronMuonAngleFexAlgo::acceptInputs(HLT::TEConstVec& inp
const TrigRoiDescriptor* roiDescriptor2 = 0;
if ( getFeature(te1, roiDescriptor1) != HLT::OK || getFeature(te2, roiDescriptor2) != HLT::OK || roiDescriptor1==0 || roiDescriptor2==0) {
if ( msgLvl() <= MSG::WARNING) {
msg() << MSG::WARNING << "No RoIDescriptors for this Trigger Elements! " << endreq;
msg() << MSG::WARNING << "No RoIDescriptors for this Trigger Elements! " << endmsg;
}
return HLT::MISSING_FEATURE;
} else {
if ( msgLvl() <= MSG::DEBUG )
msg() << MSG::DEBUG << "Trying to combine 2 RoIs: " << *roiDescriptor1 << " & " << *roiDescriptor2 << endreq;
msg() << MSG::DEBUG << "Trying to combine 2 RoIs: " << *roiDescriptor1 << " & " << *roiDescriptor2 << endmsg;
}
}
......@@ -158,18 +158,18 @@ HLT::ErrorCode TrigL2ElectronMuonAngleFexAlgo::acceptInputs(HLT::TEConstVec& inp
{
if ( msgLvl() <= MSG::WARNING) {
msg() << MSG::WARNING << "Failed to get TrigElectron collection" << endreq;
msg() << MSG::WARNING << "Failed to get TrigElectron collection" << endmsg;
}
return HLT::MISSING_FEATURE;
}
else{
if ( msgLvl() <= MSG::DEBUG )
msg() << MSG::DEBUG << "TrigElectron collection successfully retrieved" << endreq;
msg() << MSG::DEBUG << "TrigElectron collection successfully retrieved" << endmsg;
}
}else{
if ( msgLvl() <= MSG::DEBUG )
msg() << MSG::DEBUG << "TrigElectron collection successfully retrieved" << endreq;
msg() << MSG::DEBUG << "TrigElectron collection successfully retrieved" << endmsg;
}
// retrieving muons
if ( getFeatures(te1, muonContainer1) != HLT::OK || muonContainer1.size() == 0)
......@@ -178,23 +178,23 @@ HLT::ErrorCode TrigL2ElectronMuonAngleFexAlgo::acceptInputs(HLT::TEConstVec& inp
{
if ( msgLvl() <= MSG::WARNING) {
msg() << MSG::WARNING << "Failed to get MuonCombinedFeature collection" << endreq;
msg() << MSG::WARNING << "Failed to get MuonCombinedFeature collection" << endmsg;
}
return HLT::MISSING_FEATURE;
}
else{
if ( msgLvl() <= MSG::DEBUG )
msg() << MSG::DEBUG << "MuonCombinedFeature collection successfully retrieved" << endreq;
msg() << MSG::DEBUG << "MuonCombinedFeature collection successfully retrieved" << endmsg;
}
}else{
if ( msgLvl() <= MSG::DEBUG )
msg() << MSG::DEBUG << "MuonCombinedFeature collection successfully retrieved" << endreq;
msg() << MSG::DEBUG << "MuonCombinedFeature collection successfully retrieved" << endmsg;
}
if(m_acceptAll){
pass = true;
if(msgLvl() <= MSG::DEBUG) msg() << MSG::DEBUG << " Force accept! pass = " << pass << endreq;
if(msgLvl() <= MSG::DEBUG) msg() << MSG::DEBUG << " Force accept! pass = " << pass << endmsg;
return HLT::OK;
}
......@@ -208,7 +208,7 @@ HLT::ErrorCode TrigL2ElectronMuonAngleFexAlgo::acceptInputs(HLT::TEConstVec& inp
for ( electron1 = electronContainer1->begin(); electron1 != electronContainer1->end(); ++electron1 ) {
if((*electron1)==0)
{
msg() << MSG::WARNING << "Null pointer in TrigElectronContainer. Skipping." << endreq;
msg() << MSG::WARNING << "Null pointer in TrigElectronContainer. Skipping." << endmsg;
continue;
}
for ( muon1 = muonContainer1.begin(); muon1 != muonContainer1.end(); ++muon1 ) {
......@@ -216,14 +216,14 @@ HLT::ErrorCode TrigL2ElectronMuonAngleFexAlgo::acceptInputs(HLT::TEConstVec& inp
if((*muon1)==0)
{
msg() << MSG::WARNING << "Null pointer in CombinedMuonFeature vector. Skipping." << endreq;
msg() << MSG::WARNING << "Null pointer in CombinedMuonFeature vector. Skipping." << endmsg;
continue;
}
if((*muon1)->IDTrack()==0)
{
if(msgLvl() <= MSG::DEBUG) {
msg() << MSG::DEBUG << "Null pointer to IDTrack from muon. Skipping." << endreq;
msg() << MSG::DEBUG << "Null pointer to IDTrack from muon. Skipping." << endmsg;
}
continue;
}
......@@ -235,7 +235,7 @@ HLT::ErrorCode TrigL2ElectronMuonAngleFexAlgo::acceptInputs(HLT::TEConstVec& inp
if(msgLvl() <= MSG::VERBOSE) {
msg() << MSG::VERBOSE << "New combination:" << endreq;
msg() << MSG::VERBOSE << "New combination:" << endmsg;
msg() << MSG::VERBOSE << "1st TrigElectron: addr=" << (*electron1)
<< ((*electron1)->isValid() ? "(valid" : "(not valid")
<< ") RoI id="<< (*electron1)->roiId()
......@@ -243,12 +243,12 @@ HLT::ErrorCode TrigL2ElectronMuonAngleFexAlgo::acceptInputs(HLT::TEConstVec& inp
<< "; eta=" << (*electron1)->eta() <<"+-"<< (*electron1)->err_eta()
<< "; phi=" << (*electron1)->phi() <<"+-"<< (*electron1)->err_phi()
<< "; Zvtx=" << (*electron1)->Zvtx()<<"+-"<< (*electron1)->err_Zvtx()
<< endreq;
<< endmsg;
msg() << MSG::VERBOSE << "1st CombinedMuonFeature: addr=" << (*muon1)
<< " pt=" << 1/(*muon1)->ptq() << " trkAddr=" << (*muon1)->IDTrack()
<< " " << *(*muon1)
<< "; Zvtx =" << (*muon1)->IDTrack()->param()->z0() << "+-" << (*muon1)->IDTrack()->param()->ez0()
<< endreq;
<< endmsg;
}
EgMuTopoInfo->SetRoiWord((*electron1)->roiId());
......@@ -261,7 +261,7 @@ HLT::ErrorCode TrigL2ElectronMuonAngleFexAlgo::acceptInputs(HLT::TEConstVec& inp
if ( !(*electron1)->isValid() ) {
if(msgLvl() <= MSG::VERBOSE) {
msg() << MSG::VERBOSE << "TrigElectron not valid: rejecting combination" << endreq;
msg() << MSG::VERBOSE << "TrigElectron not valid: rejecting combination" << endmsg;
}
delete EgMuTopoInfo;
continue; // reject non-valid TrigElectrons if cut is on
......@@ -277,7 +277,7 @@ HLT::ErrorCode TrigL2ElectronMuonAngleFexAlgo::acceptInputs(HLT::TEConstVec& inp
if(msgLvl() <= MSG::VERBOSE) {
msg() << MSG::VERBOSE << "Delta Phi between muon and electron is " << m_DPhi <<
" and radial distance delta R is " << m_DR << endreq;
" and radial distance delta R is " << m_DR << endmsg;
}
m_monDPhiAll=m_DPhi;
......@@ -286,13 +286,13 @@ HLT::ErrorCode TrigL2ElectronMuonAngleFexAlgo::acceptInputs(HLT::TEConstVec& inp
if(m_DPhi > m_MaxDPhi) {
if(msgLvl() <= MSG::VERBOSE) {
msg() << MSG::VERBOSE << "Combination failed Delta Phi cut" << endreq;
msg() << MSG::VERBOSE << "Combination failed Delta Phi cut" << endmsg;
}
delete EgMuTopoInfo;
continue;
}else{
if(msgLvl() <= MSG::VERBOSE) {
msg() << MSG::VERBOSE << "Combination passed Delta Phi cut of " << m_MaxDPhi << endreq;
msg() << MSG::VERBOSE << "Combination passed Delta Phi cut of " << m_MaxDPhi << endmsg;
}
}
......@@ -306,13 +306,13 @@ HLT::ErrorCode TrigL2ElectronMuonAngleFexAlgo::acceptInputs(HLT::TEConstVec& inp
{
if(m_DR > m_MaxDR) {
if(msgLvl() <= MSG::VERBOSE) {
msg() << MSG::VERBOSE << "Combination failed Delta R cut" << endreq;
msg() << MSG::VERBOSE << "Combination failed Delta R cut" << endmsg;
}
delete EgMuTopoInfo;
continue;
}else{
if(msgLvl() <= MSG::VERBOSE) {
msg() << MSG::VERBOSE << "Combination passed Delta R cut of " << m_MaxDR << endreq;
msg() << MSG::VERBOSE << "Combination passed Delta R cut of " << m_MaxDR << endmsg;
}
}
}
......@@ -329,14 +329,14 @@ HLT::ErrorCode TrigL2ElectronMuonAngleFexAlgo::acceptInputs(HLT::TEConstVec& inp
// note: track charge can be zero (unknown) so must use > and not >=
if ( ! EgMuTopoInfo->opositeCharge(*electron1, *muon1) ) {
if(msgLvl() <= MSG::VERBOSE) {
msg() << MSG::VERBOSE << "Combination does not have opposite charge" << endreq;
msg() << MSG::VERBOSE << "Combination does not have opposite charge" << endmsg;
EgMuTopoInfo->SetOppositeCharge(false);
}
} else {
if(msgLvl() <= MSG::VERBOSE) {
msg() << MSG::VERBOSE << "Combination has opposite charge"
<< endreq;
<< endmsg;
EgMuTopoInfo->SetOppositeCharge(true);
}
}
......@@ -355,18 +355,18 @@ HLT::ErrorCode TrigL2ElectronMuonAngleFexAlgo::acceptInputs(HLT::TEConstVec& inp
if (msgLvl() <= MSG::VERBOSE) {
msg() << MSG::VERBOSE
<< "Combination failed vertex cut"
<< endreq;
<< endmsg;
}
} else if ( vx == ElectronMuonTopoInfo::Common ) {
if (msgLvl() <= MSG::VERBOSE) {
msg() << MSG::VERBOSE
<< "Combination passed vertex cut" << endreq;
<< "Combination passed vertex cut" << endmsg;
}
} else {
if(msgLvl() <= MSG::VERBOSE) {
msg() << MSG::VERBOSE
<< "Bad track vertex errors: not applying cut" << endreq;
<< "Bad track vertex errors: not applying cut" << endmsg;
}
}
EgMuTopoInfo->SetVertexState(vx);
......@@ -381,7 +381,7 @@ HLT::ErrorCode TrigL2ElectronMuonAngleFexAlgo::acceptInputs(HLT::TEConstVec& inp
if(msgLvl() <= MSG::VERBOSE) {
msg() << MSG::VERBOSE << "Combination failed mass cut: "
<< m_mass << " not in [" << m_lowerMassCut << ","
<< m_upperMassCut << "]" << endreq;
<< m_upperMassCut << "]" << endmsg;
}
delete EgMuTopoInfo;
continue;
......@@ -394,16 +394,16 @@ HLT::ErrorCode TrigL2ElectronMuonAngleFexAlgo::acceptInputs(HLT::TEConstVec& inp
if(msgLvl() <= MSG::VERBOSE) {
msg() << MSG::VERBOSE << "Combination passed mass cut: "
<< m_lowerMassCut << " < " << m_mass << " < "
<< m_upperMassCut << endreq;
<< m_upperMassCut << endmsg;
msg() << MSG::DEBUG << "Good combination found! Memu="
<< m_mass << " CLHEP::MeV" << endreq;
<< m_mass << " CLHEP::MeV" << endmsg;
}
}
if(msgLvl() <= MSG::DEBUG){
msg() << MSG::DEBUG << "Created following object: "
<< (*EgMuTopoInfo)
<< endreq;
<< endmsg;
}
if ( !m_egMuTopoColl ) m_egMuTopoColl = new ElectronMuonTopoInfoContainer();
......@@ -413,13 +413,13 @@ HLT::ErrorCode TrigL2ElectronMuonAngleFexAlgo::acceptInputs(HLT::TEConstVec& inp
} // electrons2 container loop end
} // electrons1 container loop end
// set output TriggerElement true if good combination
if(msgLvl() <= MSG::DEBUG) msg() << MSG::DEBUG << "pass = " << pass << endreq;
if(msgLvl() <= MSG::DEBUG) msg() << MSG::DEBUG << "pass = " << pass << endmsg;
return HLT::OK;
}
HLT::ErrorCode TrigL2ElectronMuonAngleFexAlgo::hltExecute(HLT::TEConstVec& /*inputTE*/, HLT::TriggerElement* outputTE){
if(msgLvl() <= MSG::VERBOSE) {
msg() << MSG::VERBOSE << "Attaching electronMuonTopoInfoCollection of the length " << m_egMuTopoColl->size() << endreq;
msg() << MSG::VERBOSE << "Attaching electronMuonTopoInfoCollection of the length " << m_egMuTopoColl->size() << endmsg;
}
if(m_egMuTopoColl!=0) attachFeature(outputTE, m_egMuTopoColl, "EgMuTopoFEX");
......
......@@ -78,23 +78,23 @@ HLT::ErrorCode TrigL2ElectronMuonAngleHypo::hltInitialize()
{
if (msgLvl() <= MSG::VERBOSE) {
msg() << MSG::DEBUG << "Initialization:" << endreq;
msg() << MSG::DEBUG << "Initialization:" << endmsg;
}
if(msgLvl() <= MSG::DEBUG) {
msg() << MSG::DEBUG << "Initialization completed successfully:" << endreq;
msg() << MSG::DEBUG << "Initialization completed successfully:" << endmsg;
msg() << MSG::DEBUG << "AcceptAll = "
<< (m_acceptAll==true ? "True" : "False") << endreq;
msg() << MSG::DEBUG << "Input Collection has label " << m_inputLabel << endreq;
msg() << MSG::DEBUG << "DeltaPhiCut = " << m_MaxDPhi << endreq;
msg() << MSG::DEBUG << "DeltaRRange = <" << m_MinDR << " - " << m_MaxDR << " >" << endreq;
msg() << MSG::DEBUG << "LowerMassCut = " << m_lowerMassCut << endreq;
msg() << MSG::DEBUG << "UpperMassCut = " << m_upperMassCut << endreq;
<< (m_acceptAll==true ? "True" : "False") << endmsg;
msg() << MSG::DEBUG << "Input Collection has label " << m_inputLabel << endmsg;
msg() << MSG::DEBUG << "DeltaPhiCut = " << m_MaxDPhi << endmsg;
msg() << MSG::DEBUG << "DeltaRRange = <" << m_MinDR << " - " << m_MaxDR << " >" << endmsg;
msg() << MSG::DEBUG << "LowerMassCut = " << m_lowerMassCut << endmsg;
msg() << MSG::DEBUG << "UpperMassCut = " << m_upperMassCut << endmsg;
msg() << MSG::DEBUG << "OppositeCharge = "
<< (m_oppositeCharge==true ? "True" : "False") << endreq;
<< (m_oppositeCharge==true ? "True" : "False") << endmsg;
msg() << MSG::DEBUG << "CommonVertex = "
<< (m_commonVertex==true ? "True" : "False") << endreq;
<< (m_commonVertex==true ? "True" : "False") << endmsg;
}
......@@ -105,7 +105,7 @@ HLT::ErrorCode TrigL2ElectronMuonAngleHypo::hltInitialize()
HLT::ErrorCode TrigL2ElectronMuonAngleHypo::hltFinalize()
{
if ( msgLvl() <= MSG::INFO )
msg() << MSG::INFO << "in finalize()" << endreq;
msg() << MSG::INFO << "in finalize()" << endmsg;
return HLT::OK;
}
......@@ -126,19 +126,19 @@ HLT::ErrorCode TrigL2ElectronMuonAngleHypo::hltExecute(const HLT::TriggerElement
if ( getFeature(outputTE, EgMuTopoInfoColl, m_inputLabel ) != HLT::OK || EgMuTopoInfoColl==0) {
if ( msgLvl() <= MSG::WARNING) {
msg() << MSG::WARNING << "No mass information found for this trigger element woth label " << m_inputLabel << endreq;
msg() << MSG::WARNING << "No mass information found for this trigger element woth label " << m_inputLabel << endmsg;
}
return HLT::MISSING_FEATURE;
} else {
if ( msgLvl() <= MSG::DEBUG )
msg() << MSG::DEBUG << "ElectronMuonTopoInfoContainer successfully retrieved" << endreq;
msg() << MSG::DEBUG << "ElectronMuonTopoInfoContainer successfully retrieved" << endmsg;
}
if(m_acceptAll){
pass = true;
if(msgLvl() <= MSG::DEBUG) msg() << MSG::DEBUG << " Force accept! pass = " << pass << endreq;
if(msgLvl() <= MSG::DEBUG) msg() << MSG::DEBUG << " Force accept! pass = " << pass << endmsg;
return HLT::OK;
}
......@@ -147,7 +147,7 @@ HLT::ErrorCode TrigL2ElectronMuonAngleHypo::hltExecute(const HLT::TriggerElement
m_monCut = 1;
if(msgLvl() <= MSG::VERBOSE) {
msg() << MSG::VERBOSE << "Got electronMuonTopoInfoCollection of the length " << EgMuTopoInfoColl->size() << endreq;
msg() << MSG::VERBOSE << "Got electronMuonTopoInfoCollection of the length " << EgMuTopoInfoColl->size() << endmsg;
}
ElectronMuonTopoInfoContainer::const_iterator egMuTopoInfo;
......@@ -159,7 +159,7 @@ HLT::ErrorCode TrigL2ElectronMuonAngleHypo::hltExecute(const HLT::TriggerElement
oppositeCharge = (*egMuTopoInfo)->OppositeCharge();
VX_state = (*egMuTopoInfo)->VertexState();
if ( msgLvl() <= MSG::DEBUG ){
msg() << MSG::DEBUG << "Object no. " << egMuTopoInfo - EgMuTopoInfoColl->begin() << ": Reading in mass and distance information from address " << (*egMuTopoInfo) << "; " << *(*egMuTopoInfo) << endreq;
msg() << MSG::DEBUG << "Object no. " << egMuTopoInfo - EgMuTopoInfoColl->begin() << ": Reading in mass and distance information from address " << (*egMuTopoInfo) << "; " << *(*egMuTopoInfo) << endmsg;
}
......@@ -174,13 +174,13 @@ HLT::ErrorCode TrigL2ElectronMuonAngleHypo::hltExecute(const HLT::TriggerElement
{
if(msgLvl() <= MSG::VERBOSE) {
msg() << MSG::VERBOSE << "Combination did not pass opposite charge cut"
<< endreq;
<< endmsg;
}
continue;
}else{
if(msgLvl() <= MSG::VERBOSE) {
msg() << MSG::VERBOSE << "Combination passed opposite charge cut"
<< endreq;
<< endmsg;
}
}
......@@ -194,13 +194,13 @@ HLT::ErrorCode TrigL2ElectronMuonAngleHypo::hltExecute(const HLT::TriggerElement
{
if(msgLvl() <= MSG::VERBOSE) {
msg() << MSG::VERBOSE << "Combination does not form common vertex."
<< endreq;
<< endmsg;
}
continue;
}else{
if(msgLvl() <= MSG::VERBOSE) {
msg() << MSG::DEBUG << "Combination passed common vertex cut with state " << VX_state
<< endreq;
<< endmsg;
}
}
......@@ -210,13 +210,13 @@ HLT::ErrorCode TrigL2ElectronMuonAngleHypo::hltExecute(const HLT::TriggerElement
if(dphi > m_MaxDPhi) {
if(msgLvl() <= MSG::VERBOSE) {
msg() << MSG::VERBOSE << "Combination failed dPhi cut: "
<< dphi << " larger than " << m_MaxDPhi << endreq;
<< dphi << " larger than " << m_MaxDPhi << endmsg;
}
continue;
}else{
if(msgLvl() <= MSG::VERBOSE) {
msg() << MSG::DEBUG << "Combination passed delta phi cut: "
<< dphi << " less than or equal to " << m_MaxDPhi << endreq;
<< dphi << " less than or equal to " << m_MaxDPhi << endmsg;
}
m_monDPhiAccepted=dphi;
......@@ -228,13 +228,13 @@ HLT::ErrorCode TrigL2ElectronMuonAngleHypo::hltExecute(const HLT::TriggerElement
if(dr > m_MaxDR || dr < m_MinDR) {
if(msgLvl() <= MSG::VERBOSE) {
msg() << MSG::VERBOSE << "Combination failed dR cut: "
<< dr << " outside < " << m_MinDR << "," << m_MaxDR << ">" << endreq;
<< dr << " outside < " << m_MinDR << "," << m_MaxDR << ">" << endmsg;
}
continue;
}else{
if(msgLvl() <= MSG::VERBOSE) {
msg() << MSG::DEBUG << "Combination passed delta R cut: "
<< dr << " inside < " << m_MinDR << "," << m_MaxDR << ">" << endreq; }
<< dr << " inside < " << m_MinDR << "," << m_MaxDR << ">" << endmsg; }
m_monDRAccepted=dr;
}
......@@ -247,7 +247,7 @@ HLT::ErrorCode TrigL2ElectronMuonAngleHypo::hltExecute(const HLT::TriggerElement
if(msgLvl() <= MSG::VERBOSE) {
msg() << MSG::VERBOSE << "Combination failed mass cut: "
<< mass << " not in [" << m_lowerMassCut << ","
<< m_upperMassCut << "]" << endreq;
<< m_upperMassCut << "]" << endmsg;
}
continue;
} else {
......@@ -258,16 +258,16 @@ HLT::ErrorCode TrigL2ElectronMuonAngleHypo::hltExecute(const HLT::TriggerElement
if(msgLvl() <= MSG::VERBOSE) {
msg() << MSG::VERBOSE << "Combination passed mass cut: "
<< m_lowerMassCut << " < " << mass << " < "
<< m_upperMassCut << endreq;
<< m_upperMassCut << endmsg;
msg() << MSG::DEBUG << "Good combination found! Memu="
<< mass << " CLHEP::MeV" << endreq;
<< mass << " CLHEP::MeV" << endmsg;
}
}
}//end of loop over egMuTopoInfo objects
if(msgLvl() <= MSG::DEBUG) msg() << MSG::DEBUG << "pass = " << pass << endreq;
if(msgLvl() <= MSG::DEBUG) msg() << MSG::DEBUG << "pass = " << pass << endmsg;
return HLT::OK;
}
......@@ -66,7 +66,7 @@ HLT::ErrorCode TrigL2PhotonMuonAngleFexAlgo::hltInitialize()
HLT::ErrorCode TrigL2PhotonMuonAngleFexAlgo::hltFinalize()
{
if ( msgLvl() <= MSG::INFO )
msg() << MSG::INFO << "in finalize()" << endreq;
msg() << MSG::INFO << "in finalize()" << endmsg;
return HLT::OK;
}
......@@ -80,10 +80,10 @@ HLT::ErrorCode TrigL2PhotonMuonAngleFexAlgo::hltExecute(HLT::TEConstVec& inputTE
// sanity checks
if ( msgLvl() <= MSG::DEBUG )
msg() << MSG::DEBUG << "Running TrigL2PhotonMuonAngleFexAlgo::hltExecute" << endreq;
msg() << MSG::DEBUG << "Running TrigL2PhotonMuonAngleFexAlgo::hltExecute" << endmsg;
if ( inputTE.size() != 2 ) {
msg() << MSG::ERROR << "Got diferent than 2 number of input TEs: " << inputTE.size() << " job badly configured" << endreq;
msg() << MSG::ERROR << "Got diferent than 2 number of input TEs: " << inputTE.size() << " job badly configured" << endmsg;
return HLT::BAD_JOB_SETUP;
}
......@@ -104,18 +104,18 @@ if ( inputTE.size() != 2 ) {
{
if ( msgLvl() <= MSG::WARNING) {
msg() << MSG::WARNING << "Failed to get TrigPhoton collection" << endreq;
msg() << MSG::WARNING << "Failed to get TrigPhoton collection" << endmsg;
}
return HLT::MISSING_FEATURE;
}
else{
if ( msgLvl() <= MSG::DEBUG )
msg() << MSG::DEBUG << "TrigPhoton collection successfully retrieved" << endreq;
msg() << MSG::DEBUG << "TrigPhoton collection successfully retrieved" << endmsg;
}
}else{
if ( msgLvl() <= MSG::DEBUG )
msg() << MSG::DEBUG << "TrigPhoton collection successfully retrieved" << endreq;
msg() << MSG::DEBUG << "TrigPhoton collection successfully retrieved" << endmsg;
}
// retrieving muons
if ( getFeatures(te1, muonContainer1) != HLT::OK || muonContainer1.size() == 0)
......@@ -124,18 +124,18 @@ if ( inputTE.size() != 2 ) {
{
if ( msgLvl() <= MSG::WARNING) {
msg() << MSG::WARNING << "Failed to get MuonCombinedFeature collection" << endreq;
msg() << MSG::WARNING << "Failed to get MuonCombinedFeature collection" << endmsg;
}
return HLT::MISSING_FEATURE;
}
else{
if ( msgLvl() <= MSG::DEBUG )
msg() << MSG::DEBUG << "MuonCombinedFeature collection successfully retrieved" << endreq;
msg() << MSG::DEBUG << "MuonCombinedFeature collection successfully retrieved" << endmsg;
}
}else{
if ( msgLvl() <= MSG::DEBUG )
msg() << MSG::DEBUG << "MuonCombinedFeature collection successfully retrieved" << endreq;
msg() << MSG::DEBUG << "MuonCombinedFeature collection successfully retrieved" << endmsg;
}
// now we have 2 bunches of leptons and we need to find out whether they can form topological combination
......@@ -145,25 +145,25 @@ if ( inputTE.size() != 2 ) {
for ( photon1 = photonContainer1->begin(); photon1 != photonContainer1->end(); ++photon1 ) {
if((*photon1)==0)
{
msg() << MSG::WARNING << "Null pointer in TrigPhotonContainer. Skipping." << endreq;
msg() << MSG::WARNING << "Null pointer in TrigPhotonContainer. Skipping." << endmsg;
continue;
}
if ( !(*photon1)->isValid() )
{
msg() << MSG::DEBUG << "Photon is not valid" << endreq;
msg() << MSG::DEBUG << "Photon is not valid" << endmsg;
continue;
}
for ( muon1 = muonContainer1.begin(); muon1 != muonContainer1.end(); ++muon1 ) {
if((*muon1)==0)
{
msg() << MSG::WARNING << "Null pointer in CombinedMuonFeature vector. Skipping." << endreq;
msg() << MSG::WARNING << "Null pointer in CombinedMuonFeature vector. Skipping." << endmsg;
continue;
}
if((*muon1)->IDTrack()==0)
{
if(msgLvl() <= MSG::DEBUG) {
msg() << MSG::DEBUG << "Null pointer to IDTrack from muon. Skipping." << endreq;
msg() << MSG::DEBUG << "Null pointer to IDTrack from muon. Skipping." << endmsg;
}
continue;
}
......@@ -172,19 +172,19 @@ if ( inputTE.size() != 2 ) {
if(msgLvl() <= MSG::VERBOSE) {
msg() << MSG::VERBOSE << "New combination:" << endreq;
msg() << MSG::VERBOSE << "New combination:" << endmsg;
msg() << MSG::VERBOSE << "1st TrigPhoton: addr=" << (*photon1)
<< ((*photon1)->isValid() ? "(valid" : "(not valid")
<< ") RoI id="<< (*photon1)->roiId()
<< "; pt=" << (*photon1)->pt()
<< "; eta=" << (*photon1)->eta()
<< "; phi=" << (*photon1)->phi()
<< endreq;
<< endmsg;
msg() << MSG::VERBOSE << "1st CombinedMuonFeature: addr=" << (*muon1)
<< " pt=" << 1/(*muon1)->ptq() << " trkAddr=" << (*muon1)->IDTrack()
<< " " << *(*muon1)
<< "; Zvtx =" << (*muon1)->IDTrack()->param()->z0() << "+-" << (*muon1)->IDTrack()->param()->ez0()
<< endreq;
<< endmsg;
}
EgMuTopoInfo->SetRoiWord((*photon1)->roiId());
EgMuTopoInfo->SetElecValid(true);
......@@ -208,7 +208,7 @@ if ( inputTE.size() != 2 ) {
if(msgLvl() <= MSG::DEBUG){
msg() << MSG::DEBUG << "Created following object: "
<< (*EgMuTopoInfo)
<< endreq;
<< endmsg;
}
......@@ -219,13 +219,13 @@ if ( inputTE.size() != 2 ) {
HLT::ErrorCode hltStatus = attachFeature(outputTE, egMuTopoColl, "L2_PhotonMuonTopoFEX");
if (hltStatus != HLT::OK ){
msg() << MSG::WARNING << "Write of ElectronMuonTopoInfo container to outputTE failed" << endreq;
msg() << MSG::WARNING << "Write of ElectronMuonTopoInfo container to outputTE failed" << endmsg;
for(ElectronMuonTopoInfoContainer::iterator itr = egMuTopoColl->begin(); itr!=egMuTopoColl->end() ; ++itr)
delete *itr;
delete egMuTopoColl;
return hltStatus;
}else{
if(msgLvl() <= MSG::DEBUG) msg() << MSG::DEBUG << "successfully recorded L2_PhotonMuonTopoFEX" << endreq;
if(msgLvl() <= MSG::DEBUG) msg() << MSG::DEBUG << "successfully recorded L2_PhotonMuonTopoFEX" << endmsg;
}
// set output TriggerElement true if good combination
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment