![]() |
TIMBER
beta
Tree Interface for Making Binned Events with RDataFrame
|
C++ namespace for common physics functions. More...
Functions | |
float | DeltaPhi (float phi1, float phi2) |
Calculate the difference in \(\phi\). More... | |
float | DeltaR (ROOT::Math::PtEtaPhiMVector v1, ROOT::Math::PtEtaPhiMVector v2) |
Calculate \(\Delta R\) between two vectors. More... | |
template<class T1 , class T2 > | |
float | DeltaR (T1 in1, T2 in2) |
Calculate \(\Delta R\) between two objects. More... | |
RVec< float > | HadamardProduct (RVec< float > v1, RVec< float > v2) |
Hadamard product of two vectors (v3[i] = v1[i]*v2[i] ) More... | |
RVec< float > | HadamardProduct (RVec< float > v1, RVec< RVec< float >> v2, int v2subindex) |
Hadamard product of two vectors (v3[i] = v1[i]*v2[i][v2subindex] ) where v2 has multiple sub-elements, only one of which should be accessed (at index of v2subindex). More... | |
double | InvariantMass (RVec< ROOT::Math::PtEtaPhiMVector > vects) |
Calculates the invariant mass of a vector of Lorentz vectors (ROOT::Math::PtEtaPhiMVector). Note that this is an alternative to ROOT::VecOps::InvariantMasses() which does not need the intermediate Lorentz vector. More... | |
TH1 * | LoadHist (std::string filename, std::string histname, bool inTIMBER=true) |
Generically open a histogram from a file into memory (closing the file in the process). More... | |
RVec< float > | MultiHadamardProduct (RVec< float > v1, RVec< RVec< float >> Multiv2) |
Hadamard product of a base vector and a list of N more vectors (vout[i] = v1[i]*v2[i]*v3[i]... ). More... | |
RVec< float > | MultiHadamardProduct (RVec< float > v1, RVec< RVec< RVec< float >>> Multiv2, int v2subindex) |
Hadamard product of a base vector and a list of N more vectors (vout[i] = v1[i]*v2[i][v2subindex]*v3[i][v2subindex]... ) where v<N> has multiple sub-elements, only one of which should be accessed (at index of v2subindex). More... | |
TFile * | Open (std::string file, bool inTIMBER=true, const char *option="READ") |
Open a ROOT file inside the TIMBER path. Thsi function essentially just does the char + string formatting for you. More... | |
ROOT::Math::PtEtaPhiMVector | TLvector (float pt, float eta, float phi, float m) |
Create a ROOT::Math::PtEtaPhiMVector. More... | |
RVec< ROOT::Math::PtEtaPhiMVector > | TLvector (RVec< float > pt, RVec< float > eta, RVec< float > phi, RVec< float > m) |
Create a vector of ROOT::Math::PtEtaPhiMVectors. More... | |
template<class T > | |
ROOT::Math::PtEtaPhiMVector | TLvector (T obj) |
Create a ROOT::Math::PtEtaPhiMVectors. More... | |
template<class T > | |
RVec< ROOT::Math::PtEtaPhiMVector > | TLvector (std::vector< T > objs) |
Create a vector of ROOT::Math::PtEtaPhiMVectors. More... | |
template<class T > | |
RVec< RVec< T > > | Transpose (RVec< RVec< T >> v) |
Transpose a vector so that output[j][i] = input[i][j]. More... | |
float | TransverseMass (float MET_pt, float obj_pt, float MET_phi, float obj_phi) |
Calculate the transverse mass from MET \(p_T\) and \(\eta\) and an object's \(p_T\) and \(\eta\). More... | |
C++ namespace for common physics functions.
float DeltaPhi | ( | float | phi1, |
float | phi2 | ||
) |
Calculate the difference in \(\phi\).
phi1 | |
phi2 |
float DeltaR | ( | ROOT::Math::PtEtaPhiMVector | v1, |
ROOT::Math::PtEtaPhiMVector | v2 | ||
) |
Calculate \(\Delta R\) between two vectors.
v1 | |
v2 |
float hardware::DeltaR | ( | T1 | in1, |
T2 | in2 | ||
) |
Calculate \(\Delta R\) between two objects.
in1 | |
in2 |
RVec< float > HadamardProduct | ( | RVec< float > | v1, |
RVec< float > | v2 | ||
) |
Hadamard product of two vectors (v3[i] = v1[i]*v2[i]
)
v1 | |
v2 |
RVec< float > HadamardProduct | ( | RVec< float > | v1, |
RVec< RVec< float >> | v2, | ||
int | v2subindex | ||
) |
Hadamard product of two vectors (v3[i] = v1[i]*v2[i][v2subindex]
) where v2 has multiple sub-elements, only one of which should be accessed (at index of v2subindex).
v1 | |
v2 | |
v2subindex |
double InvariantMass | ( | RVec< ROOT::Math::PtEtaPhiMVector > | vects | ) |
Calculates the invariant mass of a vector of Lorentz vectors (ROOT::Math::PtEtaPhiMVector). Note that this is an alternative to ROOT::VecOps::InvariantMasses() which does not need the intermediate Lorentz vector.
vects |
TH1 * LoadHist | ( | std::string | filename, |
std::string | histname, | ||
bool | inTIMBER = true |
||
) |
Generically open a histogram from a file into memory (closing the file in the process).
filename | |
histname | |
inTIMBER | If file is in TIMBERPATH. Defaults to true. |
RVec< float > MultiHadamardProduct | ( | RVec< float > | v1, |
RVec< RVec< float >> | Multiv2 | ||
) |
Hadamard product of a base vector and a list of N more vectors (vout[i] = v1[i]*v2[i]*v3[i]...
).
v1 | |
Multiv2 |
RVec< float > MultiHadamardProduct | ( | RVec< float > | v1, |
RVec< RVec< RVec< float >>> | Multiv2, | ||
int | v2subindex | ||
) |
Hadamard product of a base vector and a list of N more vectors (vout[i] = v1[i]*v2[i][v2subindex]*v3[i][v2subindex]...
) where v<N> has multiple sub-elements, only one of which should be accessed (at index of v2subindex).
v1 | |
Multiv2 | |
v2subindex |
TFile * Open | ( | std::string | file, |
bool | inTIMBER = true , |
||
const char * | option = "READ" |
||
) |
Open a ROOT file inside the TIMBER path. Thsi function essentially just does the char + string formatting for you.
file | Ex. TIMBER/data/example.root |
inTIMBER | If file is in TIMBERPATH. Defaults to true. |
option | Defaults to "READ" for read-only. |
ROOT::Math::PtEtaPhiMVector TLvector | ( | float | pt, |
float | eta, | ||
float | phi, | ||
float | m | ||
) |
Create a ROOT::Math::PtEtaPhiMVector.
pt | |
eta | |
phi | |
m |
RVec< ROOT::Math::PtEtaPhiMVector > TLvector | ( | RVec< float > | pt, |
RVec< float > | eta, | ||
RVec< float > | phi, | ||
RVec< float > | m | ||
) |
Create a vector of ROOT::Math::PtEtaPhiMVectors.
pt | |
eta | |
phi | |
m |
ROOT::Math::PtEtaPhiMVector hardware::TLvector | ( | T | obj | ) |
Create a ROOT::Math::PtEtaPhiMVectors.
obj |
RVec<ROOT::Math::PtEtaPhiMVector> hardware::TLvector | ( | std::vector< T > | objs | ) |
Create a vector of ROOT::Math::PtEtaPhiMVectors.
objs |
RVec<RVec<T> > hardware::Transpose | ( | RVec< RVec< T >> | v | ) |
Transpose a vector so that output[j][i] = input[i][j].
v |
float TransverseMass | ( | float | MET_pt, |
float | obj_pt, | ||
float | MET_phi, | ||
float | obj_phi | ||
) |
Calculate the transverse mass from MET \(p_T\) and \(\eta\) and an object's \(p_T\) and \(\eta\).
MET_pt | |
obj_pt | |
MET_phi | |
obj_phi |