VHS.h File Reference

#include "TROOT.h"
#include <sstream>
#include <string>
#include <vector>
#include "TTree.h"

Go to the source code of this file.

Namespaces

namespace  VHS

Enumerations

enum  VHS::evtType {
  VHS::vhsNC = 0, VHS::vhsCCe = 1, VHS::vhsCCmu = 2, VHS::vhsCCtau = 3,
  VHS::vhsUnknown = 4
}

Functions

bool VHS::DrawEvent (int nEntry, const char *treeName, int nPlanes, int nStrips)
void VHS::FillDiscriminants (NtpSREvent *evt, TClonesArray *stp, std::vector< double > avgNC, std::vector< double > avgCCe, std::vector< double > avgCCmu, std::vector< double > avgCCtau, std::vector< double > varNC, std::vector< double > varCCe, std::vector< double > varCCmu, std::vector< double > varCCtau, std::vector< double > pNC, std::vector< double > pCCe, std::vector< double > pCCmu, std::vector< double > pCCtau, const int nPlanes, const int nStrips, const bool bUnit, VHSevent *&vhsevt)
std::vector< double > VHS::FindMedian (std::vector< std::vector< double > > pts, std::vector< double > avg, bool bUnit=true, bool bVerbose=true)
std::vector< double > VHS::FullVec (std::vector< double > image, std::vector< int > index, int nPlanes, int nStrips)
double VHS::GetDistance (std::vector< double > vec0, std::vector< double > vec1)
VHS::evtType VHS::GetEvtType (int inu, int iaction)
void VHS::GetImage (int *index, int nstp, TClonesArray *stp, int nPlanes, int nStrips, std::vector< double > &image, std::vector< int > &vecInd, std::vector< double > &theta)
double VHS::GetLL (std::vector< double > fullImage, std::vector< double > pHit, std::vector< double > avg, std::vector< double > var)
int VHS::GetPlane (int vecInd, int nPlanes)
int VHS::GetStrip (int vecInd, int nPlanes)
void VHS::GetThetaAxis (TClonesArray *stp, std::vector< int > index, double &theta, std::vector< int > &center)
std::vector< std::string > VHS::ParseNmList (const char *cstr)
void VHS::ReadFile (TFile *inFile, std::vector< double > &avgNC, std::vector< double > &avgCCe, std::vector< double > &avgCCmu, std::vector< double > &avgCCtau, std::vector< double > &varNC, std::vector< double > &varCCe, std::vector< double > &varCCmu, std::vector< double > &varCCtau, std::vector< double > &pNChit, std::vector< double > &pCCehit, std::vector< double > &pCCmuhit, std::vector< double > &pCCtauhit, const int nPlanes)
void VHS::RotatePixel (int &plane, int &strip, const int avgPlane, const int avgStrip, const double theta)
void VHS::SeparateViews (int *index, int nstp, TClonesArray *stp, std::vector< int > &ustp, std::vector< int > &vstp)
std::vector< VHSevent * > VHS::Skim (NtpStRecord *ntpst, std::vector< double > avgNC, std::vector< double > avgCCe, std::vector< double > avgCCmu, std::vector< double > avgCCtau, std::vector< double > varNC, std::vector< double > varCCe, std::vector< double > varCCmu, std::vector< double > varCCtau, std::vector< double > pNC, std::vector< double > pCCe, std::vector< double > pCCmu, std::vector< double > pCCtau, const int nPlanes=20, const int nStrips=20, const bool bUnit=true)
std::vector< double > VHS::SubtractVec (std::vector< double > image0, std::vector< double > image1)
template<class T >
std::string VHS::ToString (const T &thing, int w=0, int p=0)
void VHS::ToTH2D (std::vector< double > vec, int nPlanes, int nStrips, std::string name, std::string title, TH2D *&Uview, TH2D *&Vview)
std::vector< double > VHS::ToVector (TH2D *hist, int nPlanes)
int VHS::Train (NtpStRecord *ntpst, std::vector< double > &avgNC, std::vector< double > &avgCCe, std::vector< double > &avgCCmu, std::vector< double > &avgCCtau, std::vector< double > &varNC, std::vector< double > &varCCe, std::vector< double > &varCCmu, std::vector< double > &varCCtau, std::vector< int > &numNC, std::vector< int > &numCCe, std::vector< int > &numCCmu, std::vector< int > &numCCtau, int &NCevts, int &eCCevts, int &muCCevts, int &tauCCevts, const int maxTrain=1000, const int nPlanes=20, const int nStrips=20, const int cutPlanes=40, const double eRecoMax=999., const double eTrueMax=999.)
void VHS::TrainPost (TFile *outFile, std::vector< double > &avgNC, std::vector< double > &avgCCe, std::vector< double > &avgCCmu, std::vector< double > &avgCCtau, std::vector< double > &varNC, std::vector< double > &varCCe, std::vector< double > &varCCmu, std::vector< double > &varCCtau, std::vector< int > &numNC, std::vector< int > &numCCe, std::vector< int > &numCCmu, std::vector< int > &numCCtau, int NCevts, int eCCevts, int muCCevts, int tauCCevts, const int nPlanes=20, const int nStrips=20)
void VHS::UnitVector (std::vector< double > &vec)
int VHS::VecIndex (int ipln, int istp, int nPlanes)
void VHS::WriteFile (TFile *outFile, std::vector< double > &avgNC, std::vector< double > &avgCCe, std::vector< double > &avgCCmu, std::vector< double > &avgCCtau, std::vector< double > &varNC, std::vector< double > &varCCe, std::vector< double > &varCCmu, std::vector< double > &varCCtau, std::vector< double > &pNChit, std::vector< double > &pCCehit, std::vector< double > &pCCmuhit, std::vector< double > &pCCtauhit, const int nPlanes, const int nStrips)

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1