mirror of
https://github.com/gwm17/Mask.git
synced 2024-11-12 21:48:50 -05:00
Remove unecessary file check
This commit is contained in:
parent
fba17f991f
commit
0b2f4f74ee
|
@ -29,24 +29,6 @@ int main(int argc, char** argv) {
|
|||
sw.Stop();
|
||||
std::cout<<"Time elapsed(seconds): "<<sw.GetElapsedSeconds()<<std::endl;
|
||||
|
||||
Mask::MaskFile input(calculator.GetOutputName(), Mask::MaskFile::FileType::read);
|
||||
Mask::MaskFileData data;
|
||||
Mask::MaskFileHeader header = input.ReadHeader();
|
||||
|
||||
std::cout<<"Header Found -- rxn type: "<<GetStringFromRxnType(header.rxn_type)<<" nsamples: "<<header.nsamples;
|
||||
std::cout<<std::endl;
|
||||
|
||||
int counter=0;
|
||||
while(!data.eof) {
|
||||
data = input.ReadData();
|
||||
for(unsigned int i=0; i<data.E.size(); i++)
|
||||
counter++;
|
||||
//std::cout<<"Data Found -- E: "<<data.E[i]<<" KE: "<<data.KE[i]<<" p: "<<data.p[i]<<" theta: "<<data.theta[i]<<" phi: "<<data.phi[i]<<std::endl;
|
||||
}
|
||||
std::cout<<"events found: "<<counter<<std::endl;
|
||||
input.Close();
|
||||
std::cout<<"File closed."<<std::endl;
|
||||
|
||||
return 0;
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user