Skip to content
Snippets Groups Projects
Commit d62ceeef authored by lintao@ihep.ac.cn's avatar lintao@ihep.ac.cn
Browse files

clean the code.

parent c5e879e3
No related branches found
No related tags found
No related merge requests found
...@@ -65,7 +65,7 @@ namespace UTIL{ ...@@ -65,7 +65,7 @@ namespace UTIL{
std::getline(inputFile, line); std::getline(inputFile, line);
std::stringstream ss_(line); std::stringstream ss_(line);
ss_ >> NHEP >> NOUT >> BRE >> WEIGHT; ss_ >> NHEP >> NOUT >> BRE >> WEIGHT;
std::cout << "NHEP: " << NHEP << std::endl; // std::cout << "NHEP: " << NHEP << std::endl;
if( inputFile.eof() ) if( inputFile.eof() )
{ {
// //
...@@ -79,7 +79,7 @@ namespace UTIL{ ...@@ -79,7 +79,7 @@ namespace UTIL{
// Create a Collection Vector // Create a Collection Vector
// //
mcVec = new IMPL::LCCollectionVec(LCIO::MCPARTICLE); mcVec = new IMPL::LCCollectionVec(LCIO::MCPARTICLE);
std::cout << "mc size: " << mcVec->size() << std::endl; // std::cout << "mc size: " << mcVec->size() << std::endl;
MCParticleImpl* p; MCParticleImpl* p;
MCParticleImpl* d; MCParticleImpl* d;
...@@ -108,7 +108,10 @@ namespace UTIL{ ...@@ -108,7 +108,10 @@ namespace UTIL{
for( int IHEP=0; IHEP<NHEP; IHEP++ ) for( int IHEP=0; IHEP<NHEP; IHEP++ )
{ {
std::getline(inputFile, line); std::getline(inputFile, line);
std::cout << "LINE: " << line << std::endl; if(inputFile.eof())
return nullptr;
// std::cout << "LINE: " << line << std::endl;
std::stringstream ss(line); std::stringstream ss(line);
if ( theFileFormat == HEPEvt) if ( theFileFormat == HEPEvt)
...@@ -123,10 +126,8 @@ namespace UTIL{ ...@@ -123,10 +126,8 @@ namespace UTIL{
>> VHEP1 >> VHEP2 >> VHEP3 >> VHEP1 >> VHEP2 >> VHEP3
>> VHEP4; >> VHEP4;
std::cout << "ISTHEP: " << ISTHEP << std::endl; // std::cout << "ISTHEP: " << ISTHEP << std::endl;
if(inputFile.eof())
return nullptr;
// //
// Create a MCParticle and fill it from stdhep info // Create a MCParticle and fill it from stdhep info
// //
...@@ -135,7 +136,7 @@ namespace UTIL{ ...@@ -135,7 +136,7 @@ namespace UTIL{
// PDGID // PDGID
// //
mcp->setPDG(IDHEP); mcp->setPDG(IDHEP);
std::cout << "PDG: " << IDHEP << std::endl; // std::cout << "PDG: " << IDHEP << std::endl;
// //
// Momentum vector // Momentum vector
// //
...@@ -233,7 +234,7 @@ namespace UTIL{ ...@@ -233,7 +234,7 @@ namespace UTIL{
// //
for( int IHEP=0; IHEP<NHEP; IHEP++ ) for( int IHEP=0; IHEP<NHEP; IHEP++ )
{ {
continue; // continue;
// //
// Get the MCParticle // Get the MCParticle
// //
......
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