Classes | Functions
EventGen Namespace Reference

Classes

class  ImportSingle311Event
 

Functions

void ReadPedestalFile (std::string PedestalFileName, std::vector< std::pair< double, double > > &PedMap)
 

Function Documentation

void EventGen::ReadPedestalFile ( std::string  PedestalFileName,
std::vector< std::pair< double, double > > &  PedMap 
)

Definition at line 62 of file ImportSingle311Event_module.cc.

63  {
64  //initialize the channel-ped value map
65  std::ifstream file;
66  file.open(PedestalFileName);
67  if( !file.is_open() )
68  {
70  << "failed to open input file " << PedestalFileName << "\n";
71  }
72 
73  while(!file.eof())
74  {
75  size_t ch, cryo, crate, rawch;
76  double mean, rms;
77  file >> rawch >> cryo >> crate >> ch >> mean >> rms;
78  PedMap.emplace_back(mean, rms);
79  }
80 
81  file.close();
82  return;
83  } // ReadPedestalFile()
double rms(sqlite3 *db, std::string const &table_name, std::string const &column_name)
Definition: statistics.cc:40
struct dune::tde::crate crate
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition: Exception.h:66
double mean(sqlite3 *db, std::string const &table_name, std::string const &column_name)
Definition: statistics.cc:16