All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
init_branches.h
Go to the documentation of this file.
1 #ifndef SBNCODE_SINGLEPHOTONANALYS_INIT_BRANCHES_H
2 #define SBNCODE_SINGLEPHOTONANALYS_INIT_BRANCHES_H
3 
5 
6 #include "art/Framework/Principal/Event.h"
7 
9 
10 namespace single_photon
11 {
12 
13  bool g_is_verbose = true;
14 
15  /**
16  * @brief: reset/clear data members
17  */
18  void ClearMeta(var_all& vars);
19  void CreateMetaBranches(var_all& vars);
20 
21  void ClearStubs(var_all& vars);
22  void CreateStubBranches(var_all& vars);
23 
24  void ClearSecondShowers(var_all& vars); /* reset and clear variable/vectors related to second shower */
25 // void ResizeSecondShowers(size_t size); /* currently does nothing */
26  void CreateSecondShowerBranches(var_all& vars); /*create branches in vertex tree for second shower related variables */
27 
28  void ClearSecondShowers3D(var_all& vars); /* reset and clear variables/vectors realted to second shower 3D */
29  void CreateSecondShowerBranches3D(var_all& vars); /*create branches in vertex tree for second shower 3D */
30 
31 
32  void ClearIsolation(var_all& vars); /* clear vector members related to isolation */
33  void CreateIsolationBranches(var_all& vars); /* create branches for vectors related to isolation in vertex_tree */
34 
35  void ClearFlashes(var_all& vars); /* clear and reset all the flash-related vectors/variables */
36  void ResizeFlashes(size_t size, var_all& vars); /* resize flash-related vectors */
37  void CreateFlashBranches(var_all& vars); /* create branches for flashes in vertex_tree */
38 
39  void ClearTracks(var_all& vars); /* clear track related variable and vectors */
40  void ResizeTracks(size_t size, var_all& vars); /* resize track related vectors */
41  void CreateTrackBranches(var_all& vars); /* create track related branch in vertex tree */
42 
43  void ClearShowers(var_all& vars); /* clear and reset shower related vectors/variables, for reco, and sim shower */
44  void ResizeShowers(size_t size, var_all& vars); /* resize vectors related to reco, and sim showers */
45  void CreateShowerBranches(var_all& vars); /* create branches for shower-related vec/vars in vertex_tree */
46 
47  void ClearMCTruths(var_all& vars);
48  void ResizeMCTruths(size_t size, var_all& vars); /* resize mctruth daughters vectors */
49  void CreateMCTruthBranches(var_all& vars);
50 
51  /**
52  * @brief: fill event weight related variables */
53  void AnalyzeEventWeight(art::Event const & e );
54  void ClearEventWeightBranches(var_all& vars); /* reset eventweight related variable */
55  void CreateEventWeightBranches(var_all& vars); /* create branches for eventweight related variable in eventweight_tree */
56 
57 
58  /**
59  * @brief: fill event weight related variables */
60  void ClearGeant4Branches(var_all& vars); /* reset eventweight related variable */
61  void CreateGeant4Branches(var_all& vars); /* create branches for eventweight related variable in eventweight_tree */
62  void AnalyzeGeant4( const std::vector<art::Ptr<simb::MCParticle>> &mcParticleVector,var_all& vars);
63 
64 
65  void ClearSlices(var_all& vars); /* reset and clear variables/vectors related to slice */
66  void ResizeSlices(size_t size, var_all& vars); /* resize vectors related to slice */
67  void CreateSliceBranches(var_all& vars); /* create slice branches in ncdelta_slice_tree and vertex_tree */
68 
69 
70  void Save_EventMeta( art::Event &evt, var_all& vars);
71  void Save_PFParticleInfo( std::vector<PandoraPFParticle> PPFPs, var_all& vars, para_all& paras);
72 
73 }
74 #endif // SBNCODE_SINGLEPHOTONANALYS_INIT_BRANCHES_H
void CreateShowerBranches(var_all &vars)
void CreateEventWeightBranches(var_all &vars)
void CreateFlashBranches(var_all &vars)
void ClearFlashes(var_all &vars)
void CreateSecondShowerBranches3D(var_all &vars)
void ClearMCTruths(var_all &vars)
void AnalyzeEventWeight(art::Event const &e, var_all &vars)
Definition: analyze_MC.cxx:60
void ClearGeant4Branches(var_all &vars)
: fill event weight related variables
void CreateTrackBranches(var_all &vars)
void CreateSecondShowerBranches(var_all &vars)
void ClearSecondShowers(var_all &vars)
void CreateGeant4Branches(var_all &vars)
std::size_t size(FixedBins< T, C > const &) noexcept
Definition: FixedBins.h:561
void AnalyzeGeant4(const std::vector< art::Ptr< simb::MCParticle >> &mcParticleVector, var_all &vars)
Definition: analyze_MC.cxx:11
void CreateStubBranches(var_all &vars)
void Save_EventMeta(art::Event &evt, var_all &vars)
void ClearEventWeightBranches(var_all &vars)
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
Definition: DumpUtils.h:265
void CreateMCTruthBranches(var_all &vars)
void CreateSliceBranches(var_all &vars)
void ClearSecondShowers3D(var_all &vars)
void ResizeShowers(size_t size, var_all &vars)
void ClearMeta(var_all &vars)
: reset/clear data members
void ClearStubs(var_all &vars)
void ResizeMCTruths(size_t size, var_all &vars)
void ClearIsolation(var_all &vars)
void Save_PFParticleInfo(std::vector< PandoraPFParticle > PPFPs, var_all &vars, para_all &paras)
do i e
void ResizeSlices(size_t size, var_all &vars)
TCEvent evt
Definition: DataStructs.cxx:8
void ResizeFlashes(size_t size, var_all &vars)
void ResizeTracks(size_t size, var_all &vars)
void CreateIsolationBranches(var_all &vars)
void ClearSlices(var_all &vars)
void ClearShowers(var_all &vars)
void CreateMetaBranches(var_all &vars)
void ClearTracks(var_all &vars)