Skip to content

Commit

Permalink
clean the code.
Browse files Browse the repository at this point in the history
  • Loading branch information
mirguest committed Mar 1, 2024
1 parent c5e879e commit d62ceee
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions Generator/src/LCAscHepRdr.cc
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ namespace UTIL{
std::getline(inputFile, line);
std::stringstream ss_(line);
ss_ >> NHEP >> NOUT >> BRE >> WEIGHT;
std::cout << "NHEP: " << NHEP << std::endl;
// std::cout << "NHEP: " << NHEP << std::endl;
if( inputFile.eof() )
{
//
Expand All @@ -79,7 +79,7 @@ namespace UTIL{
// Create a Collection Vector
//
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* d;

Expand Down Expand Up @@ -108,7 +108,10 @@ namespace UTIL{
for( int IHEP=0; IHEP<NHEP; IHEP++ )
{
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);

if ( theFileFormat == HEPEvt)
Expand All @@ -123,10 +126,8 @@ namespace UTIL{
>> VHEP1 >> VHEP2 >> VHEP3
>> 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
//
Expand All @@ -135,7 +136,7 @@ namespace UTIL{
// PDGID
//
mcp->setPDG(IDHEP);
std::cout << "PDG: " << IDHEP << std::endl;
// std::cout << "PDG: " << IDHEP << std::endl;
//
// Momentum vector
//
Expand Down Expand Up @@ -233,7 +234,7 @@ namespace UTIL{
//
for( int IHEP=0; IHEP<NHEP; IHEP++ )
{
continue;
// continue;
//
// Get the MCParticle
//
Expand Down

0 comments on commit d62ceee

Please sign in to comment.