emcGainBaseLineCalculator.C File Reference

#include "emcGainBaseLineCalculator.h"
#include "emcCalFEM.h"
#include "emcCalibrationDataHelper.h"
#include "emcFEMList.h"
#include "EmcIndexer.h"
#include "PHTimeStamp.h"
#include "TH1.h"
#include "TH2.h"
#include "TDirectoryHelper.h"
#include <cassert>
#include <cmath>
#include <set>
#include <vector>
#include <string>
#include <iostream>
#include <iterator>
#include <list>
#include <algorithm>
#include <sstream>

Include dependency graph for emcGainBaseLineCalculator.C:

Go to the source code of this file.

Functions

void distributionShape (const std::vector< emcGainBaseLineCalculator::Tuple > &vx, double mean, unsigned int k, float &variance, float &skewness, float &kurtosis)
int getIz (const emcGainBaseLineCalculator::Tuple &x)
int getIy (const emcGainBaseLineCalculator::Tuple &x)
float ratio (float a, float b, float epsilon)
void split (const std::string &s, const char sep, std::vector< std::string > &parts)
std::string patch (const std::string &src)
std::string buildBasename (int run, int isector, const char *details)
std::ostream & operator<< (std::ostream &os, const emcGainBaseLineCalculator::Tuple &fp)
int trim (const std::vector< emcGainBaseLineCalculator::Tuple > &x, const float &alpha, float &tmean, float &tvar, unsigned int &k, std::vector< emcGainBaseLineCalculator::Tuple > &sx, std::vector< int > &reject)
void zeroSuppress (const std::vector< emcGainBaseLineCalculator::Tuple > &in, std::vector< emcGainBaseLineCalculator::Tuple > &out, float epsilon, std::vector< int > &reject)
int decodeRunNumber (const std::string str)
BLMethod * decodeDetails (const std::string &details, std::set< int > &femsToDiscard, float &percent, int &xminxxmax, bool &zerosuppressed, int &runnumber)

Variables

bool fZeroSuppressed
float fPercentage


Function Documentation

std::string @0::buildBasename int  run,
int  isector,
const char *  details
[static]
 

Definition at line 175 of file emcGainBaseLineCalculator.C.

References EmcIndexer::EmcSectorId(), and patch().

Referenced by emcGainBaseLineCalculator::createHistos(), and emcGainBaseLineCalculator::getHisto().

BLMethod* @0::decodeDetails const std::string &  details,
std::set< int > &  femsToDiscard,
float &  percent,
int &  xminxxmax,
bool &  zerosuppressed,
int &  runnumber
[static]
 

Definition at line 582 of file emcGainBaseLineCalculator.C.

References split().

Referenced by emcGainBaseLineCalculator::getBaseLine().

int @0::decodeRunNumber const std::string  str  )  [static]
 

Definition at line 564 of file emcGainBaseLineCalculator.C.

void @0::distributionShape const std::vector< emcGainBaseLineCalculator::Tuple > &  vx,
double  mean,
unsigned int  k,
float &  variance,
float &  skewness,
float &  kurtosis
[static]
 

Definition at line 34 of file emcGainBaseLineCalculator.C.

int @0::getIy const emcGainBaseLineCalculator::Tuple x  )  [static]
 

Definition at line 74 of file emcGainBaseLineCalculator.C.

References EmcIndexer::decodeTowerId(), and emcGainBaseLineCalculator::Tuple::towerid().

int @0::getIz const emcGainBaseLineCalculator::Tuple x  )  [static]
 

Definition at line 66 of file emcGainBaseLineCalculator.C.

References EmcIndexer::decodeTowerId(), and emcGainBaseLineCalculator::Tuple::towerid().

std::ostream& @0::operator<< std::ostream &  os,
const emcGainBaseLineCalculator::Tuple fp
[static]
 

Definition at line 185 of file emcGainBaseLineCalculator.C.

References emcGainBaseLineCalculator::Tuple::index(), and emcGainBaseLineCalculator::Tuple::value().

std::string @0::patch const std::string &  src  )  [static]
 

Definition at line 158 of file emcGainBaseLineCalculator.C.

Referenced by buildBasename().

float @0::ratio float  a,
float  b,
float  epsilon
[static]
 

Definition at line 107 of file emcGainBaseLineCalculator.C.

Referenced by EmcCluster::GetPeaks(), and cluster::GetPeaks().

void @0::split const std::string &  s,
const char  sep,
std::vector< std::string > &  parts
[static]
 

Definition at line 119 of file emcGainBaseLineCalculator.C.

int @0::trim const std::vector< emcGainBaseLineCalculator::Tuple > &  x,
const float &  alpha,
float &  tmean,
float &  tvar,
unsigned int &  k,
std::vector< emcGainBaseLineCalculator::Tuple > &  sx,
std::vector< int > &  reject
[static]
 

Definition at line 192 of file emcGainBaseLineCalculator.C.

Referenced by Sector::print().

void @0::zeroSuppress const std::vector< emcGainBaseLineCalculator::Tuple > &  in,
std::vector< emcGainBaseLineCalculator::Tuple > &  out,
float  epsilon,
std::vector< int > &  reject
[static]
 

Definition at line 267 of file emcGainBaseLineCalculator.C.


Variable Documentation

float fPercentage
 

Definition at line 104 of file emcGainBaseLineCalculator.C.

bool fZeroSuppressed
 

Definition at line 103 of file emcGainBaseLineCalculator.C.

Referenced by ClassImp().