2 #include "StjTrgJPWriter.h"
16 tree->Branch(
"nJetPatches" , &_nJetPatches ,
"nJetPatches/I" );
17 tree->Branch(
"jetPatchId" , _jetPatchId ,
"jetPatchId[nJetPatches]/I");
18 tree->Branch(
"jetPatchEt" , _jetPatchEt ,
"jetPatchEt[nJetPatches]/D");
19 tree->Branch(
"jetPatchDsmAdc" , _jetPatchDsmAdc ,
"jetPatchDsmAdc[nJetPatches]/I");
20 tree->Branch(
"jetPatchAdc" , _jetPatchAdc ,
"jetPatchAdc[nJetPatches]/i");
21 tree->Branch(
"jetPatchEnergy" , _jetPatchEnergy ,
"jetPatchEnergy[nJetPatches]/D");
24 void StjTrgJPWriter::fillBranch_trgSpecific()
26 vector<int> jps = _trg->jetPatches();
27 vector<int> jetPatchDsmAdc = _trg->jetPatchDsmAdc();
28 vector<unsigned int> jetPatchAdc = _trg->jetPatchAdc();
29 vector<double> jetPatchEnergy = _trg->jetPatchEnergy();
30 vector<double> jetPatchEt = _trg->jetPatchEt();
32 _nJetPatches = jps.size();
34 for(
int i = 0; i < _nJetPatches; ++i) {
35 _jetPatchId[i] = jps[i];
36 _jetPatchDsmAdc[i] = jetPatchDsmAdc[i];
37 _jetPatchAdc[i] = jetPatchAdc[i];
38 _jetPatchEnergy[i] = jetPatchEnergy[i];
39 _jetPatchEt[i] = jetPatchEt[i];