4 #ifndef STJTOWERENERGYCUTET_H
5 #define STJTOWERENERGYCUTET_H
7 #include "StjTowerEnergyCut.h"
15 StjTowerEnergyCutEt(
double min = 0,
double max = 50000.0,
bool respect_vertex_position =
true)
16 : _min(min), _max(max), _flag(respect_vertex_position) { }
22 vec3.SetPtEtaPhi(deposit.towerR, deposit.towerEta, deposit.towerPhi);
25 TVector3
vertex(deposit.vertexX, deposit.vertexY, deposit.vertexZ);
29 double Et = (deposit.energy)*TMath::Sin(vec3.Theta());
31 if(Et <= _min)
return true;
33 if(Et > _max)
return true;
48 #endif // STJTOWERENERGYCUTET_H