9 #ifndef StPicoBEmcPidTraits_h
10 #define StPicoBEmcPidTraits_h
25 const Float_t* dist,
const Int_t* nhit,
const Int_t* ntow);
31 virtual void Print(
const Char_t* option =
"")
const;
40 Int_t
bemcId()
const {
return (Int_t)mBemcId; }
42 Int_t
bemcAdc0()
const {
return (Int_t)mBemcAdc0; }
44 Float_t
bemcE0()
const {
return (Float_t)mBemcE0 / 1000.; }
46 Float_t
bemcE()
const {
return (Float_t)mBemcE / 1000.; }
48 Float_t
bemcZDist()
const {
return (Float_t)mBemcZDist / 100.; }
50 Float_t
bemcPhiDist()
const {
return (Float_t)mBemcPhiDist / 10000.; }
57 Int_t
btowId()
const {
return (Int_t)mBtowId; }
60 {
return ( ( (Int_t)mBtowId23 / 10 ) == 9 ? -1 : (Int_t)mBtowId23 / 10 ); }
63 {
return ( ( (Int_t)mBtowId23 % 10 ) == 9 ? -1 : (Int_t)mBtowId23 % 10 ); }
65 Float_t
btowE()
const {
return (Float_t)mBtowE / 1000.; }
67 Float_t
btowE2()
const {
return (Float_t)mBtowE2 / 1000.; }
69 Float_t
btowE3()
const {
return (Float_t)mBtowE3 / 1000.; }
71 Float_t
btowEtaDist()
const {
return (Float_t)mBtowEtaDist / 10000.; }
73 Float_t
btowPhiDist()
const {
return (Float_t)mBtowPhiDist / 10000.; }
80 void setTrackIndex(Int_t idx) { mTrackIndex = (idx > std::numeric_limits<short>::max()) ? -1 : (Short_t)idx; }
82 void setBEmcId(Int_t
id) { mBemcId = (
id > std::numeric_limits<short>::max()) ? -1 : (Short_t)id; }
85 { mBemcAdc0 = (adc0 > std::numeric_limits<unsigned short>::max()) ?
86 std::numeric_limits<unsigned short>::max() : (UShort_t)adc0; }
113 Short_t mBemcPhiDist;
115 UChar_t mBemcSmdNEta;
117 UChar_t mBemcSmdNPhi;
131 Short_t mBtowEtaDist;
133 Short_t mBtowPhiDist;
Float_t btowE2() const
Energy of second closest tower.
void setTrackIndex(Int_t idx)
Set track index of the assiciated track.
Float_t bemcE() const
Associated bemc cluster energy (STAR standard clustering algorithm)
Float_t bemcE0() const
Associated bemc cluster highest tower energy (STAR standard clustering algorithm) ...
void setEnergy(Float_t energy[5])
Set energy.
Float_t btowE3() const
Energy of third closest tower.
StPicoBEmcPidTraits()
Default constructor.
Float_t btowEtaDist() const
Eta distance to matched tower (cm)
Int_t bemcAdc0() const
Associated bemc cluster highest tower adc (STAR standard clustering algorithm)
Float_t btowE() const
Matched tower energy.
Int_t bemcSmdNPhi() const
Associated bemc cluster number of fired SMD-phi wires (STAR standard clustering algorithm) ...
Int_t btowId2() const
Track second closest tower local id.
Int_t bemcSmdNEta() const
Associated bemc cluster number of fired SMD-eta wires (STAR standard clustering algorithm) ...
Float_t bemcZDist() const
Associated bemc cluster Z-distance (cm) (STAR standard clustering algorithm)
Int_t btowId() const
Track matched tower id (using StEmcPosition::projTrack())
Keep information about Barrel ElectroMagnetic Calorimeter (BEMC) matched tracks.
Float_t bemcPhiDist() const
Associated bemc cluster phi-distance (cm) (STAR standard clustering algorithm)
Int_t btowId3() const
Track third closest tower local id.
Float_t btowPhiDist() const
Phi distance to matched tower (cm)
void setNHits(Int_t nhit[2])
Set number of hits.
Int_t bemcId() const
Associated BEMC cluster id (STAR standard clustering algorithm)
void setBEmcId(Int_t id)
Set BEMC ID.
void setDistances(Float_t dist[4])
Set distances.
void setAdc0(Int_t adc0)
Set ADC.
Int_t trackIndex() const
Return track index.
virtual void Print(const Char_t *option="") const
Print BEMC PID traits information.
void setNTOW(Int_t ntow[3])
Set IDs of the towers.
virtual ~StPicoBEmcPidTraits()
Destructor.