Go to the documentation of this file.
7 #ifndef InvMatrixUtils_h
8 #define InvMatrixUtils_h
17 #include "CLHEP/Geometry/Point3D.h"
18 #include "CLHEP/Matrix/GenMatrix.h"
19 #include "CLHEP/Matrix/Matrix.h"
20 #include "CLHEP/Matrix/Vector.h"
48 HepGeom::Point3D<Float_t>
TBposition(
const Float_t amplit[7][7],
49 const Float_t beamEne,
50 const Float_t w0 = 4.0,
51 const Float_t x0 = 8.9,
52 const Float_t
a0 = 6.2,
53 const Float_t sideX = 24.06,
54 const Float_t sideY = 22.02);
94 const CLHEP::HepMatrix& SigmaMatrix,
95 const CLHEP::HepMatrix& StatisticMatrix,
102 const CLHEP::HepMatrix& sigmaMatrix,
103 const CLHEP::HepMatrix& statisticMatrix,
116 const CLHEP::HepMatrix& sigmaMatrix,
117 const CLHEP::HepMatrix& statisticMatrix,
127 const CLHEP::HepMatrix& sigmaMatrix,
128 const CLHEP::HepMatrix& statisticMatrix,
130 double calibThres = 0.01,
166 std::pair<int, int>
findSupport(TH1F& histogram,
double thres = 0.);
177 template <
class Type>
181 superModules[
e][
p] =
val;
double effectiveSigma(TH1F &histogram, int vSteps=100)
int ietaFromXtal(const int &xtal)
static const std::string input
TCanvas * getGlobalCanvas(std::string name="Inv MatrixCanvas")
TH1D * smartProfile(TH2F *strip, double width)
int xtalFromEtaPhi(const int &myEta, const int &myPhi)
int iphiFromXtal(const int &xtal)
std::pair< int, int > findSupport(TH1F &histogram, double thres=0.)
TH1D * smartError(TH1D *strip)
TFile * getGlobalTFile(std::string name="Inv MatrixTFile.root")
void mtrReset(Type superModules[85][20], const Type val)
void mtrTransfer(double output[85][20], CLHEP::HepMatrix *input, double Default)
int phiFromXtal(const int &xtal)
CLHEP::HepMatrix * getSavedMatrix(const std::string &name)
TH1D * smartGausProfile(TH2F *strip, double width)
int writeCMSSWCoeff(const CLHEP::HepMatrix &lMatrix, double calibThres, float ERef, const CLHEP::HepMatrix &sigmaMatrix, const CLHEP::HepMatrix &statisticMatrix, std::string fileName="calibOutput.txt", std::string genTag="CAL_GENTAG", std::string method="CAL_METHOD", std::string version="CAL_VERSION", std::string type="CAL_TYPE")
int readCMSSWcoeffForComparison(CLHEP::HepMatrix &calibcoeff, const std::string &inputFileName)
int parseConfigFile(const TString &config)
double etaCorrE1E9(int eta)
int etaFromXtal(const int &xtal)
double etaCorrE1E49(int eta)
int extract(std::vector< int > *output, const std::string &dati)
HepGeom::Point3D< Float_t > TBposition(const Float_t amplit[7][7], const Float_t beamEne, const Float_t w0=4.0, const Float_t x0=8.9, const Float_t a0=6.2, const Float_t sideX=24.06, const Float_t sideY=22.02)
int xtalFromiEtaiPhi(const int &iEta, const int &iPhi)
double etaCorrE1E25(int eta)
int readCMSSWcoeff(CLHEP::HepMatrix &calibcoeff, const std::string &inputFileName, double defaultVal=1.)
int translateCoeff(const CLHEP::HepMatrix &calibcoeff, const CLHEP::HepMatrix &sigmaMatrix, const CLHEP::HepMatrix &statisticMatrix, std::string SMnumber="1", double calibThres=0.01, std::string fileName="calibOutput.txt", std::string genTag="CAL_GENTAG", std::string method="CAL_METHOD", std::string version="CAL_VERSION", std::string type="CAL_TYPE")
static constexpr float a0
int writeCalibTxt(const CLHEP::HepMatrix &AmplitudeMatrix, const CLHEP::HepMatrix &SigmaMatrix, const CLHEP::HepMatrix &StatisticMatrix, std::string fileName="calibOutput.txt")
double get3x3(const Float_t energy[7][7])
int saveGlobalTFile(std::string name="Inv MatrixFile.root")
double get5x5(const Float_t energy[7][7])