-
Yftach Moyal authored
Added functionality of parsing LHCf driven files and analyzing them.\n Added a check on is_on status for Detector::SetBranches and Detector::FillHistogram.\n Added Dummy channels for UEM in H4 LHCf section.
Yftach Moyal authoredAdded functionality of parsing LHCf driven files and analyzing them.\n Added a check on is_on status for Detector::SetBranches and Detector::FillHistogram.\n Added Dummy channels for UEM in H4 LHCf section.
convertLHCf.cpp 643 B
/** @file ConvertLHCf.cpp
* @brief Short code to convert LHCf data format and check its content
* @scope To be defined
*
* @author Riccardo Longo
* @bug No known bugs.
*/
#include <stdio.h>
#include <iostream>
#include <string>
#include <vector>
#include <iomanip>
#include "LHCf_reader.h"
using namespace std;
int main(int argc, char *argv[]){
string fNameIn = argv[1];
cout << "Will analyize file " << fNameIn << endl;
LHCf_reader* myReader = new LHCf_reader( fNameIn.c_str() );
myReader->OpenFile();
//myReader->ReadEvents( 215, 220 );
myReader->ConvertFile();
//myReader->VisualizeChannels();
return 0;
}