Skip to content

Commit

Permalink
fixed compiler warning treated as errors in CMSSW>=6_2_X
Browse files Browse the repository at this point in the history
  • Loading branch information
ferencek committed Oct 29, 2013
1 parent 20c341f commit 3aa6e0a
Show file tree
Hide file tree
Showing 5 changed files with 544 additions and 542 deletions.
32 changes: 16 additions & 16 deletions bin/PM_analyze_tuple.cc
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ bool jsonContainsEvent (const std::vector< edm::LuminosityBlockRange > &jsonVec,

bool (*funcPtr)(edm::LuminosityBlockRange const &,
edm::LuminosityBlockID const &) = &edm::contains;
edm::LuminosityBlockID lumiID (event.id().run(),
edm::LuminosityBlockID lumiID (event.id().run(),
event.id().luminosityBlock());

std::vector< edm::LuminosityBlockRange >::const_iterator iter =
std::vector< edm::LuminosityBlockRange >::const_iterator iter =
std::find_if(jsonVec.begin(), jsonVec.end(),
boost::bind(funcPtr, _1, lumiID) );

Expand Down Expand Up @@ -119,7 +119,7 @@ int main (int argc, char* argv[])
std::copy(jsonVector.begin(), jsonVector.end(), lumiVector.begin());
}
}


//___________________
// FWLite setup
Expand All @@ -135,17 +135,17 @@ int main (int argc, char* argv[])
btagMap["SSV"] = "simpleSecondaryVertexBJetTags";
btagMap["SSVHP"] = "simpleSecondaryVertexHighPurBJetTags";
btagMap["SSVHE"] = "simpleSecondaryVertexHighEffBJetTags";

std::string Tagger = btagMap.find( parser.stringValue( "Tagger" ) )->second;
std::string awayTagger = btagMap.find(parser.stringValue( "AwayTagger" ) )->second;
std::string awayTagger = btagMap.find(parser.stringValue( "AwayTagger" ) )->second;
double btag_cut_Tagger = parser.doubleValue( "TaggerCut" );
double btag_cut_awayTagger = parser.doubleValue( "AwayTaggerCut" );
std::string jetCollection = parser.stringValue( "JetCollection" ) ;
std::string triggername = parser.stringValue( "TriggerName" ) ;
std::string jetCollection = parser.stringValue( "JetCollection" ) ;
std::string triggername = parser.stringValue( "TriggerName" ) ;

int outputEvery = parser.integerValue ( "outputEvery" );
int maxNevents = parser.integerValue ( "maxevents" );

cout << "outputEvery = " << outputEvery << endl;

//__________________
Expand Down Expand Up @@ -173,7 +173,7 @@ int main (int argc, char* argv[])

++nentry;

if ( outputEvery!=0 && (nentry % outputEvery) == 0 )
if ( outputEvery!=0 && (nentry % outputEvery) == 0 )
cout << "Processing Event: " << nentry << endl;

if ( outputEvery == 0 )
Expand Down Expand Up @@ -341,7 +341,7 @@ int main (int argc, char* argv[])
trackMuon->py(),
trackMuon->pz(),
sqrt(trackMuon->p() * trackMuon->p() + 0.1057*0.1057));

// find a muon in a jet
//check deltar
double deltaR = ROOT::Math::VectorUtil::DeltaR(jetIter->p4().Vect(),
Expand Down Expand Up @@ -464,10 +464,10 @@ int main (int argc, char* argv[])
// find away jet
////////////////////////////
bool AwayTaggedJet = false;
bool AwayMuonJet = false;
//bool AwayMuonJet = false;
TLorentzVector p4AwayMuon;
TLorentzVector p4AwayTagged;

for (vector< pat::Jet >::const_iterator awayjetIter = jetHandle->begin();
awayjetIter != jetHandle->end(); ++awayjetIter)
{
Expand Down Expand Up @@ -540,7 +540,7 @@ int main (int argc, char* argv[])
}//events

std::cout << " done. " << std::endl;

std::string m_outputName = parser.stringValue ("outputFile");
if (optutl::CommandLineParser::kStringVector ==
parser.hasOption("inputFiles"))
Expand All @@ -554,8 +554,8 @@ int main (int argc, char* argv[])
hstore->write (m_outputName,
parser.argVec());
}


return 0;

}
Loading

0 comments on commit 3aa6e0a

Please sign in to comment.