Public Member Functions | Protected Attributes | List of all members
flat::FlatTrueParticle Class Reference

Flat encoding of SRTrueParticle. More...

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-11-28/FlatMaker/FlatTrueParticle.h"

Public Member Functions

 FlatTrueParticle (const std::string &prefix, TTree *tr, const IBranchPolicy *policy)
 
 ~FlatTrueParticle ()
 
void Fill (const caf::SRTrueParticle &sr)
 

Protected Attributes

int pdg
 
float visE
 
float visEinslc
 
float daughterVisE
 
float daughterVisEinslc
 
float visEBirks
 
float visEinslcBirks
 
float daughterVisEBirks
 
float daughterVisEinslcBirks
 
float enteringE
 
float totEscE
 
float time
 
int trkID
 
int prefsiID
 
float elasticProtonSumVisE
 
float inelasticProtonSumVisE
 
float inelasticPhotonSumVisE
 
float elasticProtonSumVisEinslc
 
float inelasticProtonSumVisEinslc
 
float inelasticPhotonSumVisEinslc
 
float elasticProtonMaxVisE
 
float inelasticProtonMaxVisE
 
float inelasticPhotonMaxVisE
 
float elasticProtonMaxVisEinslc
 
float inelasticProtonMaxVisEinslc
 
float inelasticPhotonMaxVisEinslc
 
float maxInelasticProtonTrueE
 
float maxInelasticPhotonTrueE
 
float maxElasticProtonTrueE
 
FlatLorentzVector p
 
TTree * daughterlist_tree
 
int daughterlist
 
long daughterlist_idx
 
int daughterlist_length
 
TTree * daughterEnergies_tree
 
float daughterEnergies
 
long daughterEnergies_idx
 
int daughterEnergies_length
 

Detailed Description

Flat encoding of SRTrueParticle.

Definition at line 21 of file FlatTrueParticle.h.

Constructor & Destructor Documentation

flat::FlatTrueParticle::FlatTrueParticle ( const std::string prefix,
TTree *  tr,
const IBranchPolicy policy 
)

Definition at line 1392 of file FlatRecord.cxx.

References compare_h5_caf::branch, daughterEnergies, daughterEnergies_idx, daughterEnergies_length, daughterEnergies_tree, daughterlist, daughterlist_idx, daughterlist_length, daughterlist_tree, daughterVisE, daughterVisEBirks, daughterVisEinslc, daughterVisEinslcBirks, elasticProtonMaxVisE, elasticProtonMaxVisEinslc, elasticProtonSumVisE, elasticProtonSumVisEinslc, enteringE, inelasticPhotonMaxVisE, inelasticPhotonMaxVisEinslc, inelasticPhotonSumVisE, inelasticPhotonSumVisEinslc, inelasticProtonMaxVisE, inelasticProtonMaxVisEinslc, inelasticProtonSumVisE, inelasticProtonSumVisEinslc, maxElasticProtonTrueE, maxInelasticPhotonTrueE, maxInelasticProtonTrueE, pdg, prefsiID, totEscE, trkID, visE, visEBirks, visEinslc, and visEinslcBirks.

1393  : p(prefix+"p.", tr, policy),
1394  daughterlist_tree(make_tree(prefix+"daughterlist", "daughterlist", tr)),
1395  daughterlist(0),
1397  daughterEnergies_tree(make_tree(prefix+"daughterEnergies", "daughterEnergies", tr)),
1398  daughterEnergies(0),
1400 {
1401  branch(tr, prefix+"pdg", &pdg, policy);
1402  branch(tr, prefix+"visE", &visE, policy);
1403  branch(tr, prefix+"visEinslc", &visEinslc, policy);
1404  branch(tr, prefix+"daughterVisE", &daughterVisE, policy);
1405  branch(tr, prefix+"daughterVisEinslc", &daughterVisEinslc, policy);
1406  branch(tr, prefix+"visEBirks", &visEBirks, policy);
1407  branch(tr, prefix+"visEinslcBirks", &visEinslcBirks, policy);
1408  branch(tr, prefix+"daughterVisEBirks", &daughterVisEBirks, policy);
1409  branch(tr, prefix+"daughterVisEinslcBirks", &daughterVisEinslcBirks, policy);
1410  branch(tr, prefix+"enteringE", &enteringE, policy);
1411  branch(tr, prefix+"totEscE", &totEscE, policy);
1412  branch(tr, prefix+"time", &time, policy);
1413  branch(tr, prefix+"trkID", &trkID, policy);
1414  branch(tr, prefix+"prefsiID", &prefsiID, policy);
1415  branch(tr, prefix+"elasticProtonSumVisE", &elasticProtonSumVisE, policy);
1416  branch(tr, prefix+"inelasticProtonSumVisE", &inelasticProtonSumVisE, policy);
1417  branch(tr, prefix+"inelasticPhotonSumVisE", &inelasticPhotonSumVisE, policy);
1418  branch(tr, prefix+"elasticProtonSumVisEinslc", &elasticProtonSumVisEinslc, policy);
1419  branch(tr, prefix+"inelasticProtonSumVisEinslc", &inelasticProtonSumVisEinslc, policy);
1420  branch(tr, prefix+"inelasticPhotonSumVisEinslc", &inelasticPhotonSumVisEinslc, policy);
1421  branch(tr, prefix+"elasticProtonMaxVisE", &elasticProtonMaxVisE, policy);
1422  branch(tr, prefix+"inelasticProtonMaxVisE", &inelasticProtonMaxVisE, policy);
1423  branch(tr, prefix+"inelasticPhotonMaxVisE", &inelasticPhotonMaxVisE, policy);
1424  branch(tr, prefix+"elasticProtonMaxVisEinslc", &elasticProtonMaxVisEinslc, policy);
1425  branch(tr, prefix+"inelasticProtonMaxVisEinslc", &inelasticProtonMaxVisEinslc, policy);
1426  branch(tr, prefix+"inelasticPhotonMaxVisEinslc", &inelasticPhotonMaxVisEinslc, policy);
1427  branch(tr, prefix+"maxInelasticProtonTrueE", &maxInelasticProtonTrueE, policy);
1428  branch(tr, prefix+"maxInelasticPhotonTrueE", &maxInelasticPhotonTrueE, policy);
1429  branch(tr, prefix+"maxElasticProtonTrueE", &maxElasticProtonTrueE, policy);
1430  branch(daughterlist_tree, prefix+"daughterlist", &daughterlist, policy);
1431  if(daughterlist_tree->GetNbranches() > 0){
1432  branch(tr, prefix+"daughterlist_idx", &daughterlist_idx, 0);
1433  branch(tr, prefix+"daughterlist_length", &daughterlist_length, 0);
1434  }
1435  branch(daughterEnergies_tree, prefix+"daughterEnergies", &daughterEnergies, policy);
1436  if(daughterEnergies_tree->GetNbranches() > 0){
1437  branch(tr, prefix+"daughterEnergies_idx", &daughterEnergies_idx, 0);
1438  branch(tr, prefix+"daughterEnergies_length", &daughterEnergies_length, 0);
1439  }
1440 }
const XML_Char * prefix
Definition: expat.h:380
FlatLorentzVector p
flat::FlatTrueParticle::~FlatTrueParticle ( )

Definition at line 1442 of file FlatRecord.cxx.

References daughterEnergies_tree, and daughterlist_tree.

1443 {
1444  if(daughterlist_tree->GetNbranches() > 0) daughterlist_tree->Write();
1445  delete daughterlist_tree;
1446  if(daughterEnergies_tree->GetNbranches() > 0) daughterEnergies_tree->Write();
1447  delete daughterEnergies_tree;
1448 }

Member Function Documentation

void flat::FlatTrueParticle::Fill ( const caf::SRTrueParticle sr)

Definition at line 1450 of file FlatRecord.cxx.

References caf::SRTrueParticle::daughterEnergies, daughterEnergies, daughterEnergies_idx, daughterEnergies_length, daughterEnergies_tree, caf::SRTrueParticle::daughterlist, daughterlist, daughterlist_idx, daughterlist_length, daughterlist_tree, caf::SRTrueParticle::daughterVisE, daughterVisE, caf::SRTrueParticle::daughterVisEBirks, daughterVisEBirks, caf::SRTrueParticle::daughterVisEinslc, daughterVisEinslc, caf::SRTrueParticle::daughterVisEinslcBirks, daughterVisEinslcBirks, elasticProtonMaxVisE, caf::SRTrueParticle::elasticProtonMaxVisE, elasticProtonMaxVisEinslc, caf::SRTrueParticle::elasticProtonMaxVisEinslc, elasticProtonSumVisE, caf::SRTrueParticle::elasticProtonSumVisE, elasticProtonSumVisEinslc, caf::SRTrueParticle::elasticProtonSumVisEinslc, caf::SRTrueParticle::enteringE, enteringE, inelasticPhotonMaxVisE, caf::SRTrueParticle::inelasticPhotonMaxVisE, inelasticPhotonMaxVisEinslc, caf::SRTrueParticle::inelasticPhotonMaxVisEinslc, inelasticPhotonSumVisE, caf::SRTrueParticle::inelasticPhotonSumVisE, inelasticPhotonSumVisEinslc, caf::SRTrueParticle::inelasticPhotonSumVisEinslc, inelasticProtonMaxVisE, caf::SRTrueParticle::inelasticProtonMaxVisE, inelasticProtonMaxVisEinslc, caf::SRTrueParticle::inelasticProtonMaxVisEinslc, inelasticProtonSumVisE, caf::SRTrueParticle::inelasticProtonSumVisE, inelasticProtonSumVisEinslc, caf::SRTrueParticle::inelasticProtonSumVisEinslc, maxElasticProtonTrueE, caf::SRTrueParticle::maxElasticProtonTrueE, maxInelasticPhotonTrueE, caf::SRTrueParticle::maxInelasticPhotonTrueE, maxInelasticProtonTrueE, caf::SRTrueParticle::maxInelasticProtonTrueE, caf::SRTrueParticle::p, caf::SRTrueParticle::pdg, pdg, caf::SRTrueParticle::prefsiID, prefsiID, caf::SRTrueParticle::time, caf::SRTrueParticle::totEscE, totEscE, caf::SRTrueParticle::trkID, trkID, caf::SRTrueParticle::visE, visE, caf::SRTrueParticle::visEBirks, visEBirks, caf::SRTrueParticle::visEinslc, visEinslc, caf::SRTrueParticle::visEinslcBirks, visEinslcBirks, and submit_syst::x.

Referenced by flat::FlatNeutrino::Fill().

1451 {
1452  pdg = sr.pdg;
1453  visE = sr.visE;
1454  visEinslc = sr.visEinslc;
1457  visEBirks = sr.visEBirks;
1461  enteringE = sr.enteringE;
1462  totEscE = sr.totEscE;
1463  time = sr.time;
1464  trkID = sr.trkID;
1465  prefsiID = sr.prefsiID;
1481 
1482  p.Fill(sr.p);
1483 
1484  daughterlist_idx += daughterlist_length; // increment taken by previous record
1485  daughterlist_length = sr.daughterlist.size();
1486  for(const auto& x: sr.daughterlist){
1487  daughterlist = x;
1488  daughterlist_tree->Fill();
1489  }
1490 
1491  daughterEnergies_idx += daughterEnergies_length; // increment taken by previous record
1493  for(const auto& x: sr.daughterEnergies){
1494  daughterEnergies = x;
1495  daughterEnergies_tree->Fill();
1496  }
1497 }
float daughterVisEinslcBirks
Visible Energy in detector for all daughters of this particle, slice summed FLSHits that made CellHit...
float maxInelasticProtonTrueE
Energy of the proton daughter going through the most energetic inelastic process. ...
float time
Time from electron vertex [GeV].
float inelasticPhotonMaxVisEinslc
Vis energy in slc coming from max inelastic process with photons in final state linked to primary...
float daughterVisEinslc
Visible Energy in detector for all daughters of this particle, slice summed FLSHits that made CellHit...
float elasticProtonSumVisEinslc
Vis energy in slc coming from sum of elastic processes with protons in final state linked to primary...
float elasticProtonSumVisE
Visible energy coming from sum of elastic processes with protons in final state linked to primary...
float inelasticPhotonSumVisEinslc
Vis energy in slc coming from sum of inelastic processes with photons in final state linked to primar...
const char * p
Definition: xmltok.h:285
float inelasticProtonMaxVisE
Visible energy coming from max inelastic process with protons in final state linked to primary...
float elasticProtonMaxVisEinslc
Vis energy in slc coming from max elastic process with protons in final state linked to primary...
std::vector< int > daughterlist
float daughterVisEBirks
Visible Energy in detector for all daughters of this particle, all summed FLSHits that made CellHits ...
std::vector< float > daughterEnergies
Vector containing energy of each daughter.
float daughterVisE
Visible Energy in detector for all daughters of this particle, all summed FLSHits that made CellHits ...
float totEscE
The total escaping energy, from the particle and all of its daughters, using truth information [GeV]...
float enteringE
The kinetic energy the particle had when it first entered the detector, using truth information [GeV]...
int prefsiID
Index to Pre-FSI hadron parent in SRNeutrino (-1 if no pre-FSI parent)
float maxInelasticPhotonTrueE
Energy of the photon daughter going through the most energetic inelastic process. ...
float visE
Visible Energy in detector, all summed FLSHits that made CellHits [GeV].
float inelasticPhotonSumVisE
Visible energy coming from sum of inelastic processes with photons in final state linked to primary...
float visEinslcBirks
Visible Energy in detector, slice summed FLSHits that made CellHits [GeV] with birks suppression...
float visEBirks
Visible Energy in detector, all summed FLSHits that made CellHits [GeV] with birks suppression...
float maxElasticProtonTrueE
Energy of the proton daughter going through the most energetic elastic process.
float inelasticProtonSumVisEinslc
Vis energy in slc coming from sum of inelastic processes with protons in final state linked to primar...
float inelasticPhotonMaxVisE
Visible energy coming from max inelastic process with photons in final state linked to primary...
float elasticProtonMaxVisE
Visible energy coming from max elastic process with protons in final state linked to primary...
float visEinslc
Visible Energy in detector, slice summed FLSHits that made CellHits [GeV].
float inelasticProtonMaxVisEinslc
Vis energy in slc coming from max inelastic process with protons in final state linked to primary...
int trkID
GEANT trackID.
float inelasticProtonSumVisE
Visible energy coming from sum of inelastic processes with protons in final state linked to primary...
SRLorentzVector p
Momentum 4-vector.

Member Data Documentation

float flat::FlatTrueParticle::daughterEnergies
protected

Definition at line 68 of file FlatTrueParticle.h.

Referenced by Fill(), and FlatTrueParticle().

long flat::FlatTrueParticle::daughterEnergies_idx
protected

Definition at line 69 of file FlatTrueParticle.h.

Referenced by Fill(), and FlatTrueParticle().

int flat::FlatTrueParticle::daughterEnergies_length
protected

Definition at line 70 of file FlatTrueParticle.h.

Referenced by Fill(), and FlatTrueParticle().

TTree* flat::FlatTrueParticle::daughterEnergies_tree
protected

Definition at line 67 of file FlatTrueParticle.h.

Referenced by Fill(), FlatTrueParticle(), and ~FlatTrueParticle().

int flat::FlatTrueParticle::daughterlist
protected

Definition at line 63 of file FlatTrueParticle.h.

Referenced by Fill(), and FlatTrueParticle().

long flat::FlatTrueParticle::daughterlist_idx
protected

Definition at line 64 of file FlatTrueParticle.h.

Referenced by Fill(), and FlatTrueParticle().

int flat::FlatTrueParticle::daughterlist_length
protected

Definition at line 65 of file FlatTrueParticle.h.

Referenced by Fill(), and FlatTrueParticle().

TTree* flat::FlatTrueParticle::daughterlist_tree
protected

Definition at line 62 of file FlatTrueParticle.h.

Referenced by Fill(), FlatTrueParticle(), and ~FlatTrueParticle().

float flat::FlatTrueParticle::daughterVisE
protected

Definition at line 33 of file FlatTrueParticle.h.

Referenced by Fill(), and FlatTrueParticle().

float flat::FlatTrueParticle::daughterVisEBirks
protected

Definition at line 37 of file FlatTrueParticle.h.

Referenced by Fill(), and FlatTrueParticle().

float flat::FlatTrueParticle::daughterVisEinslc
protected

Definition at line 34 of file FlatTrueParticle.h.

Referenced by Fill(), and FlatTrueParticle().

float flat::FlatTrueParticle::daughterVisEinslcBirks
protected

Definition at line 38 of file FlatTrueParticle.h.

Referenced by Fill(), and FlatTrueParticle().

float flat::FlatTrueParticle::elasticProtonMaxVisE
protected

Definition at line 50 of file FlatTrueParticle.h.

Referenced by Fill(), and FlatTrueParticle().

float flat::FlatTrueParticle::elasticProtonMaxVisEinslc
protected

Definition at line 53 of file FlatTrueParticle.h.

Referenced by Fill(), and FlatTrueParticle().

float flat::FlatTrueParticle::elasticProtonSumVisE
protected

Definition at line 44 of file FlatTrueParticle.h.

Referenced by Fill(), and FlatTrueParticle().

float flat::FlatTrueParticle::elasticProtonSumVisEinslc
protected

Definition at line 47 of file FlatTrueParticle.h.

Referenced by Fill(), and FlatTrueParticle().

float flat::FlatTrueParticle::enteringE
protected

Definition at line 39 of file FlatTrueParticle.h.

Referenced by Fill(), and FlatTrueParticle().

float flat::FlatTrueParticle::inelasticPhotonMaxVisE
protected

Definition at line 52 of file FlatTrueParticle.h.

Referenced by Fill(), and FlatTrueParticle().

float flat::FlatTrueParticle::inelasticPhotonMaxVisEinslc
protected

Definition at line 55 of file FlatTrueParticle.h.

Referenced by Fill(), and FlatTrueParticle().

float flat::FlatTrueParticle::inelasticPhotonSumVisE
protected

Definition at line 46 of file FlatTrueParticle.h.

Referenced by Fill(), and FlatTrueParticle().

float flat::FlatTrueParticle::inelasticPhotonSumVisEinslc
protected

Definition at line 49 of file FlatTrueParticle.h.

Referenced by Fill(), and FlatTrueParticle().

float flat::FlatTrueParticle::inelasticProtonMaxVisE
protected

Definition at line 51 of file FlatTrueParticle.h.

Referenced by Fill(), and FlatTrueParticle().

float flat::FlatTrueParticle::inelasticProtonMaxVisEinslc
protected

Definition at line 54 of file FlatTrueParticle.h.

Referenced by Fill(), and FlatTrueParticle().

float flat::FlatTrueParticle::inelasticProtonSumVisE
protected

Definition at line 45 of file FlatTrueParticle.h.

Referenced by Fill(), and FlatTrueParticle().

float flat::FlatTrueParticle::inelasticProtonSumVisEinslc
protected

Definition at line 48 of file FlatTrueParticle.h.

Referenced by Fill(), and FlatTrueParticle().

float flat::FlatTrueParticle::maxElasticProtonTrueE
protected

Definition at line 58 of file FlatTrueParticle.h.

Referenced by Fill(), and FlatTrueParticle().

float flat::FlatTrueParticle::maxInelasticPhotonTrueE
protected

Definition at line 57 of file FlatTrueParticle.h.

Referenced by Fill(), and FlatTrueParticle().

float flat::FlatTrueParticle::maxInelasticProtonTrueE
protected

Definition at line 56 of file FlatTrueParticle.h.

Referenced by Fill(), and FlatTrueParticle().

FlatLorentzVector flat::FlatTrueParticle::p
protected

Definition at line 60 of file FlatTrueParticle.h.

int flat::FlatTrueParticle::pdg
protected

Definition at line 30 of file FlatTrueParticle.h.

Referenced by Fill(), and FlatTrueParticle().

int flat::FlatTrueParticle::prefsiID
protected

Definition at line 43 of file FlatTrueParticle.h.

Referenced by Fill(), and FlatTrueParticle().

float flat::FlatTrueParticle::time
protected

Definition at line 41 of file FlatTrueParticle.h.

float flat::FlatTrueParticle::totEscE
protected

Definition at line 40 of file FlatTrueParticle.h.

Referenced by Fill(), and FlatTrueParticle().

int flat::FlatTrueParticle::trkID
protected

Definition at line 42 of file FlatTrueParticle.h.

Referenced by Fill(), and FlatTrueParticle().

float flat::FlatTrueParticle::visE
protected

Definition at line 31 of file FlatTrueParticle.h.

Referenced by Fill(), and FlatTrueParticle().

float flat::FlatTrueParticle::visEBirks
protected

Definition at line 35 of file FlatTrueParticle.h.

Referenced by Fill(), and FlatTrueParticle().

float flat::FlatTrueParticle::visEinslc
protected

Definition at line 32 of file FlatTrueParticle.h.

Referenced by Fill(), and FlatTrueParticle().

float flat::FlatTrueParticle::visEinslcBirks
protected

Definition at line 36 of file FlatTrueParticle.h.

Referenced by Fill(), and FlatTrueParticle().


The documentation for this class was generated from the following files: