Skip to content

Commit 27bd388

Browse files
committed
add separate sum for FCAL2 with gains for trigger equation
1 parent 3f10935 commit 27bd388

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

libraries/DSelector/DSelector.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ void DSelector::Setup_Branches(void)
9797
dL1BCALEnergy = (locL1BCALEnergyBranch != NULL) ? (Double_t*)locL1BCALEnergyBranch->GetAddress() : NULL;
9898
TBranch* locL1FCALEnergyBranch = dTreeInterface->Get_Branch("L1FCALEnergy");
9999
dL1FCALEnergy = (locL1FCALEnergyBranch != NULL) ? (Double_t*)locL1FCALEnergyBranch->GetAddress() : NULL;
100+
TBranch* locL1ECALEnergyBranch = dTreeInterface->Get_Branch("L1ECALEnergy");
101+
dL1ECALEnergy = (locL1ECALEnergyBranch != NULL) ? (Double_t*)locL1ECALEnergyBranch->GetAddress() : NULL;
102+
TBranch* locL1FCAL2EnergyBranch = dTreeInterface->Get_Branch("L1FCAL2Energy");
103+
dL1FCAL2Energy = (locL1FCAL2EnergyBranch != NULL) ? (Double_t*)locL1FCAL2EnergyBranch->GetAddress() : NULL;
100104

101105
// MC
102106
if(dIsMCFlag)

libraries/DSelector/DSelector.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ class DSelector : public TSelector
9292
UInt_t Get_L1TriggerBits(void) const;
9393
Double_t Get_L1BCALEnergy(void) const;
9494
Double_t Get_L1FCALEnergy(void) const;
95+
Double_t Get_L1ECALEnergy(void) const;
96+
Double_t Get_L1FCAL2Energy(void) const;
9597
Bool_t Get_IsThrownTopology(void) const;
9698
Float_t Get_MCWeight(void) const;
9799
Float_t Get_GeneratedEnergy(void) const;
@@ -155,6 +157,8 @@ class DSelector : public TSelector
155157
UInt_t* dL1TriggerBits;
156158
Double_t* dL1BCALEnergy;
157159
Double_t* dL1FCALEnergy;
160+
Double_t* dL1ECALEnergy;
161+
Double_t* dL1FCAL2Energy;
158162
Float_t* dMCWeight; //only present if simulated data
159163
Float_t* dGeneratedEnergy; //only present if simulated data
160164
Bool_t* dIsThrownTopology; //only present if simulated data
@@ -207,6 +211,7 @@ inline DSelector::DSelector(TTree* locTree) :
207211
dBeamWrapper(NULL), dComboWrapper(NULL), dAnalysisActions(vector<DAnalysisAction*>()),
208212
dFile(NULL), dOutputFlatTreeFile(NULL), dProofFile(NULL), dOutputFlatTreeProofFile(NULL),
209213
dTreeNumber(0), dRunNumber(NULL), dEventNumber(NULL), dL1TriggerBits(NULL), dMCWeight(NULL), dGeneratedEnergy(NULL), dIsThrownTopology(NULL), dX4_Production(NULL),
214+
dL1BCALEnergy(NULL), dL1FCALEnergy(NULL), dL1ECALEnergy(NULL), dL1FCAL2Energy(NULL),
210215
dNumBeam(NULL), dNumChargedHypos(NULL), dNumNeutralHypos(NULL), dNumCombos(NULL), dNumThrown(NULL),
211216
dNumPIDThrown_FinalState(NULL), dPIDThrown_Decaying(NULL) {}
212217

@@ -238,6 +243,16 @@ inline Double_t DSelector::Get_L1FCALEnergy(void) const
238243
return *dL1FCALEnergy;
239244
}
240245

246+
inline Double_t DSelector::Get_L1ECALEnergy(void) const
247+
{
248+
return *dL1ECALEnergy;
249+
}
250+
251+
inline Double_t DSelector::Get_L1FCAL2Energy(void) const
252+
{
253+
return *dL1FCAL2Energy;
254+
}
255+
241256
inline Bool_t DSelector::Get_IsThrownTopology(void) const
242257
{
243258
return ((dIsThrownTopology != NULL) ? *dIsThrownTopology : false);

0 commit comments

Comments
 (0)