Skip to content

Commit e4a8c54

Browse files
committed
Changed stage1.h and stage1.cpp to include tree entries to be used for testing sparsification tests
1 parent 725f523 commit e4a8c54

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

TPOL_scripts/stage1/stage1.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ int main(int argc, char **argv){
8686
setBranchesHitToGo(&outTree,&tpolHitToGo);
8787
tpolHitToGo.nHits = 0;
8888
tpolHitToGo.nHitsTot = 0;
89+
tpolHitToGo.nHitsTest = 0;
90+
tpolHitToGo.nHitsTotTest = 0;
8991
tpolHitToGo.ePair = 0;
9092
tpolHitToGo.E_lhit = 0;
9193
tpolHitToGo.E_rhit = 0;

TPOL_scripts/stage1/stage1.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
struct tpolHit_t {
33
Double_t eDep;
44
Double_t time;
5+
Double_t eDepTest;
6+
Double_t timeTest;
57
UInt_t sector;
68
UInt_t w_samp1;
79
UInt_t w_min;
@@ -29,6 +31,10 @@ struct tpolHitToGo_t {
2931
UInt_t inTime[32];
3032
Double_t eDep[32];
3133
Double_t time[32];
34+
UInt_t nHitsTest;
35+
UInt_t nHitsTotTest;
36+
Double_t eDepTest[32];
37+
Double_t timeTest[32];
3238
UInt_t sector[32];
3339
UInt_t w_integral[32];
3440
UInt_t w_min[32];
@@ -49,9 +55,13 @@ struct tpolHitToGo_t {
4955
void setBranchesHitToGo(TTree *outTree, tpolHitToGo_t *tpol1){
5056
outTree->Branch("nHits",&tpol1->nHits,"nHits/i");
5157
outTree->Branch("nHitsTot",&tpol1->nHitsTot,"nHitsTot/i");
58+
outTree->Branch("nHitsTest",&tpol1->nHitsTest,"nHitsTest/i");
59+
outTree->Branch("nHitsTotTest",&tpol1->nHitsTotTest,"nHitsTotTest/i");
5260
outTree->Branch("inTime",&tpol1->inTime,"inTime[nHits]/i");
5361
outTree->Branch("eDep",&tpol1->eDep,"eDep[nHits]/D");
5462
outTree->Branch("time",&tpol1->time,"time[nHits]/D");
63+
outTree->Branch("eDepTest",&tpol1->eDepTest,"eDepTest[nHits]/D");
64+
outTree->Branch("timeTest",&tpol1->timeTest,"timeTest[nHits]/D");
5565
outTree->Branch("sector",&tpol1->sector,"sector[nHits]/i");
5666
outTree->Branch("w_integral",&tpol1->w_integral,"w_integral[nHits]/i");
5767
outTree->Branch("w_min",&tpol1->w_min,"w_min[nHits]/i");

0 commit comments

Comments
 (0)