BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Criteria.h File Reference
#include "GaudiKernel/SmartDataPtr.h"
#include "EventModel/EventHeader.h"
#include "EvtRecEvent/EvtRecEvent.h"
#include "EvtRecEvent/EvtRecTrack.h"

Go to the source code of this file.

Classes

struct  GammaPair
 
struct  high_momentum
 
struct  Criteria
 

Macros

#define CRITERAI__H
 

Functions

HepLorentzVector getP4 (RecEmcShower *gTrk)
 
bool isGoodGamma (EvtRecTrack *gtrk)
 

Macro Definition Documentation

◆ CRITERAI__H

#define CRITERAI__H

Definition at line 2 of file Criteria.h.

Function Documentation

◆ getP4()

HepLorentzVector getP4 ( RecEmcShower gTrk)

Definition at line 10 of file Criteria.h.

11{
12
13 double eraw = gTrk->energy();
14 double phi = gTrk->phi();
15 double the = gTrk->theta();
16
17 return HepLorentzVector( eraw * sin(the) * cos(phi),
18 eraw * sin(the) * sin(phi),
19 eraw * cos(the),
20 eraw );
21}
double sin(const BesAngle a)
Definition: BesAngle.h:210
double cos(const BesAngle a)
Definition: BesAngle.h:213
double theta() const
Definition: DstEmcShower.h:38
double phi() const
Definition: DstEmcShower.h:39
double energy() const
Definition: DstEmcShower.h:45

Referenced by Pi0::make_pi0_list(), high_momentum::operator()(), and Pi0::Pi0ListToTDS().

◆ isGoodGamma()

bool isGoodGamma ( EvtRecTrack gtrk)

Definition at line 22 of file Criteria.h.

23{
24
25}