PPM-DU analysis  2.3
conversion and analysis of the PPM-DU data
 All Classes Files Functions Variables Pages
Functions | Variables
/home/alex/Work/Research/Km3NeT/PPM-DU/ppm-du-v2.3/rawReader.cc File Reference
#include <iostream>
#include <fstream>
#include <string>
#include <iomanip>
#include <boost/lexical_cast.hpp>
#include <climits>
#include <vector>
#include <math.h>
#include "rawReader.h"
#include "domHeader.h"
#include "pmt.h"
#include "signal.h"
#include "constants.h"

Go to the source code of this file.

Functions

int ReplacePmtId (const int dom, const int first)
 
void WriteSlice (dom &curDom)
 
int Analyse (frame &thisFrame, bool toWrite)
 
int GetFirstBit (size_t pattern, int firstBit)
 
int GetLastBit (size_t pattern, int firstBit)
 
long long int FillRaw (std::ifstream &str, std::vector< dom > &vSlice, long long int bitPosition, bool toWrite)
 
long long int GetFileLength (std::ifstream &str)
 
bool IsNoisySlice (const int signalNb, const double limitNb)
 

Variables

std::vector< std::vector
< MyEvent > > 
allHits
 
int cpt = 0
 
sliceHead Header
 

Function Documentation

int Analyse ( frame thisFrame,
bool  toWrite 
)

Definition at line 233 of file rawReader.cc.

long long int FillRaw ( std::ifstream &  str,
std::vector< dom > &  vSlice,
long long int  bitPosition,
bool  toWrite 
)

Definition at line 323 of file rawReader.cc.

long long int GetFileLength ( std::ifstream &  str)

Definition at line 406 of file rawReader.cc.

int GetFirstBit ( size_t  pattern,
int  firstBit 
)

Definition at line 303 of file rawReader.cc.

int GetLastBit ( size_t  pattern,
int  firstBit 
)

Definition at line 313 of file rawReader.cc.

bool IsNoisySlice ( const int  signalNb,
const double  limitNb 
)

a first reading loop is made in the main to extract the distribution of number of event per slice. Then a Gaussian fit is made, the limitNb is calculated as maxHisto + 3*sigma (see ANTARES-SITE-2005-001 for more information)

Definition at line 414 of file rawReader.cc.

int ReplacePmtId ( const int  dom,
const int  first 
)

Definition at line 182 of file rawReader.cc.

void WriteSlice ( dom curDom)

Definition at line 189 of file rawReader.cc.

Variable Documentation

std::vector<std::vector<MyEvent> > allHits

Definition at line 17 of file rawReader.cc.

int cpt = 0

Definition at line 178 of file rawReader.cc.

sliceHead Header

Definition at line 179 of file rawReader.cc.