Belle II Software prerelease-10-00-00a
SVDMaxStripTTreeModule.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11#include <svd/dataobjects/SVDShaperDigit.h>
12#include <svd/dataobjects/SVDAPVHistograms.h>
13
14#include <framework/core/Module.h>
15#include <framework/datastore/StoreArray.h>
16#include <mdst/dataobjects/SoftwareTriggerResult.h>
17
18#include <TFile.h>
19#include <TH1F.h>
20#include <TTree.h>
21
22namespace Belle2 {
27
35
36 public:
40 void initialize() override;
42 void terminate() override;
44 void event() override;
46 void beginRun() override;
47
48 private:
49
50
52 bool m_skipRejectedEvents = false;
53
54 std::string m_rootFileName = "";
55 TFile* m_rootFilePtr = nullptr;
56
57 std::string m_shapersStoreArrayName{"SVDShaperDigits"};
59
61
62 TTree* m_t = nullptr;
63 /* Branches */
64 unsigned int m_svdLayer = 0;
65 unsigned int m_svdLadder = 0;
66 unsigned int m_svdSensor = 0;
67 unsigned int m_svdSide = -1;
68 unsigned int m_svdHits = 0;
69 unsigned int m_svdChip = -1;
70 unsigned int m_event = -1;
71 };
72
73}
74
Module()
Constructor.
Definition Module.cc:30
template class for the APV Histograms
std::string m_rootFileName
root file name
std::string m_shapersStoreArrayName
storeArray name of the input ShaperDigits
bool m_skipRejectedEvents
if true skip events rejected by HLT
void initialize() override
Register input and output data.
unsigned int m_svdHits
APV hits per event.
StoreArray< SVDShaperDigit > m_shapers
array of SVDShaperDigits
void event() override
Compute the variables and fill the tree.
void terminate() override
Write the TTrees to the file.
SVDAPVHistograms< TH1F > * m_hHits
hits per APV
void beginRun() override
Define APVHistogram.
StoreObjPtr< SoftwareTriggerResult > m_resultStoreObjectPointer
Store Object to read the trigger decision.
TTree * m_t
tree containing info related to the U and V side strips
TFile * m_rootFilePtr
pointer at root file used for storing histograms
Accessor to arrays stored in the data store.
Definition StoreArray.h:113
Type-safe access to single objects in the data store.
Definition StoreObjPtr.h:96
Abstract base class for different kinds of events.