2 #include "StjTrgHTWriter.h"
16 tree->Branch(
"nTowers" , &_nTowers ,
"nTowers/I" );
17 tree->Branch(
"towerId" , _towerId ,
"towerId[nTowers]/I");
18 tree->Branch(
"towerEt" , _towerEt ,
"towerEt[nTowers]/D");
19 tree->Branch(
"towerDsmAdc" , _towerDsmAdc ,
"towerDsmAdc[nTowers]/I");
20 tree->Branch(
"towerAdc" , _towerAdc ,
"towerAdc[nTowers]/i");
21 tree->Branch(
"towerEnergy" , _towerEnergy ,
"towerEnergy[nTowers]/D");
24 void StjTrgHTWriter::fillBranch_trgSpecific()
26 vector<int> towers = _trg->towers();
27 vector<int> towerDsmAdc = _trg->towerDsmAdc();
28 vector<unsigned int> towerAdc = _trg->towerAdc();
29 vector<double> towerEnergy = _trg->towerEnergy();
30 vector<double> towerEt = _trg->towerEt();
32 _nTowers = towers.size();
34 for(
int i = 0; i < _nTowers; ++i) {
35 _towerId[i] = towers[i];
36 _towerDsmAdc[i] = towerDsmAdc[i];
37 _towerAdc[i] = towerAdc[i];
38 _towerEnergy[i] = towerEnergy[i];
39 _towerEt[i] = towerEt[i];