#include <MuDISDefs.h>
|
| bool | IsValid () const |
| void | Clear () |
| bool | SetupTree (TTree *tree, const TString &label) |
| template<class T> |
| std::string | Print (const std::vector< T > &aVec, const TString &aName) |
| std::ostringstream | Print (const unsigned &aEvt, const TString &aLabel) |
Definition at line 212 of file MuDISDefs.h.
◆ Clear()
| void ShipMuDIS::MuonDISInBranches::Clear |
( |
| ) |
|
|
inline |
Definition at line 247 of file MuDISDefs.h.
247 {
261 }
std::vector< double > * DISxsec
std::vector< DISparticle > * DISparticles
std::vector< double > * DISvt
std::vector< bool > * DIStarget
std::vector< double > * DISvx
std::vector< double > * DISvy
std::vector< double > * DISvz
std::vector< int > * nDISdau
◆ IsValid()
| bool ShipMuDIS::MuonDISInBranches::IsValid |
( |
| ) |
const |
|
inline |
Definition at line 227 of file MuDISDefs.h.
227 {
230 return false;
231 const auto size =
static_cast<std::size_t
>(
nDISevts);
233 DISvx->size() != size ||
DISvy->size() != size ||
234 DISvz->size() != size ||
DISvt->size() != size ||
236 return false;
237 std::size_t total = 0;
239 if (count < 0 ||
240 static_cast<std::size_t
>(count) >
DISparticles->size() - total)
241 return false;
242 total += count;
243 }
245 }
◆ Print() [1/2]
template<class T>
| std::string ShipMuDIS::MuonDISInBranches::Print |
( |
const std::vector< T > & | aVec, |
|
|
const TString & | aName ) |
|
inline |
Definition at line 282 of file MuDISDefs.h.
282 {
283 std::ostringstream lOut;
284 lOut << " - " << aName << " size " << aVec.size() << " pointer " << &aVec
285 << ": ";
286 for (const auto& value : aVec) {
287 lOut << value << " ";
288 }
289 lOut << std::endl;
290 return lOut.str();
291 };
◆ Print() [2/2]
| std::ostringstream ShipMuDIS::MuonDISInBranches::Print |
( |
const unsigned & | aEvt, |
|
|
const TString & | aLabel ) |
|
inline |
Definition at line 293 of file MuDISDefs.h.
293 {
294 std::ostringstream lOut;
295 lOut << "------------ print evt " << aEvt << " branch " << aLabel
296 << " -------------" << std::endl
297 <<
" - nDISevts = " <<
nDISevts << std::endl
298 <<
" - wDIS = " <<
wDIS << std::endl;
307
308 return lOut;
309 };
std::string Print(const std::vector< T > &aVec, const TString &aName)
◆ SetupTree()
| bool ShipMuDIS::MuonDISInBranches::SetupTree |
( |
TTree * | tree, |
|
|
const TString & | label ) |
|
inline |
Definition at line 263 of file MuDISDefs.h.
263 {
279 }
bool BindInputBranch(TTree *tree, const TString &name, T *address, bool required=true)
◆ DISparticles
| std::vector<DISparticle>* ShipMuDIS::MuonDISInBranches::DISparticles = nullptr |
◆ DIStarget
| std::vector<bool>* ShipMuDIS::MuonDISInBranches::DIStarget |
◆ DISvt
| std::vector<double>* ShipMuDIS::MuonDISInBranches::DISvt = nullptr |
◆ DISvx
| std::vector<double>* ShipMuDIS::MuonDISInBranches::DISvx = nullptr |
◆ DISvy
| std::vector<double>* ShipMuDIS::MuonDISInBranches::DISvy = nullptr |
◆ DISvz
| std::vector<double>* ShipMuDIS::MuonDISInBranches::DISvz = nullptr |
◆ DISxsec
| std::vector<double>* ShipMuDIS::MuonDISInBranches::DISxsec = nullptr |
◆ fStorage
◆ nDISdau
| std::vector<int>* ShipMuDIS::MuonDISInBranches::nDISdau = nullptr |
◆ nDISevts
| int ShipMuDIS::MuonDISInBranches::nDISevts = 0 |
◆ nDISevtsGenerated
| int ShipMuDIS::MuonDISInBranches::nDISevtsGenerated = -1 |
◆ pPythia
| double ShipMuDIS::MuonDISInBranches::pPythia = -1. |
◆ wDIS
| double ShipMuDIS::MuonDISInBranches::wDIS = 1 |
The documentation for this struct was generated from the following file: