Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Printouts r2 #8045

Merged
merged 3 commits into from Mar 4, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion CalibFormats/SiStripObjects/src/SiStripQuality.cc
Expand Up @@ -198,7 +198,7 @@ void SiStripQuality::add(const RunInfo *runInfo)
// This must not happen
if( !check.empty() ) {
// throw cms::Exception("LogicError")
edm::LogWarning("SiStripQuality")
edm::LogInfo("SiStripQuality")
<< "The cabling should always include the active feds in runInfo and possibly have some more"
<< "there are instead " << check.size() << " feds only active in runInfo";
// The "false" means that we are only printing the output, but not setting the strips as bad.
Expand Down
3 changes: 3 additions & 0 deletions CommonTools/Statistics/src/GammaSeries.cc
Expand Up @@ -13,6 +13,9 @@ float GammaSeries( float a, float x )
if( x == 0. )
return 0.;

if( a == 0. ) // this happens at the end, but save all the iterations
return 0.;

// coefficient c_n of x^n is Gamma(a)/Gamma(a+1+n), which leads to the
// recurrence relation c_n = c_(n-1) / (a+n-1) with c_0 = 1/a
double term = 1/a;
Expand Down
1 change: 0 additions & 1 deletion DQM/SiPixelMonitorRawData/src/SiPixelRawDataErrorSource.cc
Expand Up @@ -108,7 +108,6 @@ void SiPixelRawDataErrorSource::analyze(const edm::Event& iEvent, const edm::Eve
edm::Handle<FEDRawDataCollection> rawDataHandle;
iEvent.getByToken(inputSourceToken_, rawDataHandle);
if(!rawDataHandle.isValid()){
std::cout << "inputsource is empty" << std::endl;
edm::LogInfo("SiPixelRawDataErrorSource") << "inputsource is empty";
}
else{
Expand Down
9 changes: 4 additions & 5 deletions PhysicsTools/TagAndProbe/plugins/ObjectViewCleaner.cc
Expand Up @@ -38,7 +38,7 @@
#include "DataFormats/EgammaCandidates/interface/Electron.h"
#include "DataFormats/JetReco/interface/Jet.h"
#include "DataFormats/EgammaCandidates/interface/Photon.h"

#include "FWCore/MessageLogger/interface/MessageLogger.h"

#include "CommonTools/Utils/interface/StringCutObjectSelector.h"

Expand Down Expand Up @@ -162,10 +162,9 @@ void ObjectViewCleaner<T>::endJob()
stringstream ss;
ss<<"nObjectsTot="<<nObjectsTot_<<" nObjectsClean="<<nObjectsClean_
<<" fObjectsClean="<<100.*(nObjectsClean_/(double)nObjectsTot_)<<"%\n";
cout<<"++++++++++++++++++++++++++++++++++++++++++++++++++"
<<"\n"<<moduleLabel_<<"(ObjectViewCleaner) SUMMARY:\n"<<ss.str()
<<"++++++++++++++++++++++++++++++++++++++++++++++++++"
<<endl;
edm::LogInfo("ObjectViewCleaner")<<"++++++++++++++++++++++++++++++++++++++++++++++++++"
<<"\n"<<moduleLabel_<<"(ObjectViewCleaner) SUMMARY:\n"<<ss.str()
<<"++++++++++++++++++++++++++++++++++++++++++++++++++";
}


Expand Down
5 changes: 1 addition & 4 deletions RecoVertex/BeamSpotProducer/src/BSFitter.cc
Expand Up @@ -570,10 +570,7 @@ reco::BeamSpot BSFitter::Fit_d0phi() {
//returns 0 if OK
auto status = h1z->Fit(&fgaus,"QLM0","",h1z->GetMean() -2.*h1z->GetRMS(),h1z->GetMean() +2.*h1z->GetRMS());

//std::cout << "fitted "<< std::endl;

//std::cout << "got function" << std::endl;
if (status){
if (status!=0 && status!=4000){ //4000 is the status if no new minimum is found by improve
edm::LogError("NoBeamSpotFit")<<"gaussian fit failed. no BS d0 fit";
return reco::BeamSpot();
}
Expand Down
1 change: 0 additions & 1 deletion RecoVertex/BeamSpotProducer/src/PVFitter.cc
Expand Up @@ -203,7 +203,6 @@ void PVFitter::setTree(TTree* tree){
bool PVFitter::runBXFitter() {

using namespace ROOT::Minuit2;

edm::LogInfo("PVFitter") << " Number of bunch crossings: " << bxMap_.size() << std::endl;

bool fit_ok = true;
Expand Down
4 changes: 2 additions & 2 deletions SLHCUpgradeSimulations/Configuration/python/muonCustoms.py
Expand Up @@ -102,9 +102,9 @@ def csc_PathVsModule_SanityCheck(process):
('digi2raw_step', 'cscpacker'),
('digi2raw_step', 'csctfpacker'),
('reconstruction', 'csc2DRecHits'),
('dqmoffline_step', 'muonAnalyzer'),
('dqmoffline_step', 'muonAnalyzer')
#('dqmHarvesting', ''),
('validation_step', 'relvalMuonBits')
# ('validation_step', 'relvalMuonBits')
]
# verify:
for path_name, module_name in paths_modules:
Expand Down
8 changes: 4 additions & 4 deletions Validation/RecoTau/plugins/ObjectViewCleaner.cc
Expand Up @@ -40,6 +40,7 @@
#include "DataFormats/TrackReco/interface/Track.h"

#include "CommonTools/Utils/interface/StringCutObjectSelector.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"

#include <memory>
#include <vector>
Expand Down Expand Up @@ -161,10 +162,9 @@ void ObjectViewCleaner<T>::endJob()
stringstream ss;
ss<<"nObjectsTot="<<nObjectsTot_<<" nObjectsClean="<<nObjectsClean_
<<" fObjectsClean="<<100.*(nObjectsClean_/(double)nObjectsTot_)<<"%\n";
cout<<"++++++++++++++++++++++++++++++++++++++++++++++++++"
<<"\n"<<moduleLabel_<<"(ObjectViewCleaner) SUMMARY:\n"<<ss.str()
<<"++++++++++++++++++++++++++++++++++++++++++++++++++"
<<endl;
edm::LogInfo("ObjectViewCleaner")<<"++++++++++++++++++++++++++++++++++++++++++++++++++"
<<"\n"<<moduleLabel_<<"(ObjectViewCleaner) SUMMARY:\n"<<ss.str()
<<"++++++++++++++++++++++++++++++++++++++++++++++++++";
}


Expand Down