HighLAND
psyche
psycheSystematics
v3r12
src
TPCFGDMatchEffSystematics.hxx
1
#ifndef TPCFGDMatchEffSystematics_h
2
#define TPCFGDMatchEffSystematics_h
3
4
#include "EventWeightBase.hxx"
5
#include "BinnedParams.hxx"
6
7
class
TPCFGDMatchEffSystematics
:
public
EventWeightBase
,
public
BinnedParams
{
8
public
:
9
10
TPCFGDMatchEffSystematics
(
bool
computecounters=
false
);
11
virtual
~
TPCFGDMatchEffSystematics
() {}
12
13
/// Apply the systematic
14
Weight_h
ComputeWeight
(
const
ToyExperiment
&,
const
AnaEventC
&,
const
ToyBoxB
&){
return
1;}
15
16
Weight_h
ComputeWeight
(
const
ToyExperiment
& toy,
const
AnaEventC
& event,
const
ToyBoxB
& box,
const
SelectionBase
& sel);
17
18
19
protected
:
20
21
/// Is this track relevant for this systematic ?
22
bool
IsRelevantRecObject
(
const
AnaEventC
& event,
const
AnaRecObjectC
& track)
const
;
23
24
/// Get the TrackGroup IDs array for this systematic
25
Int_t
GetRelevantRecObjectGroups
(
const
SelectionBase
& sel, Int_t ibranch, Int_t* IDs)
const
;
26
27
/// Get the TrueTrackGroup IDs array for this systematic
28
Int_t
GetRelevantTrueObjectGroups
(
const
SelectionBase
& sel, Int_t ibranch, Int_t* IDs)
const
;
29
30
/// Check the true-reco association
31
bool
CheckTrueRecoAssociation
(
const
AnaTrueObjectC
& trueTrack,
const
AnaRecObjectC
& track)
const
;
32
33
/// Utility to utilize for several FGD objects if needed
34
/// Get the weight given an FGD segment: prod-6
35
Weight_h
GetWeight
(
const
AnaFGDParticleB
* FGDSegment,
const
ToyExperiment
& toy);
36
37
protected
:
38
39
bool
_computecounters;
40
bool
_apply_both_FGD1_FGD2;
41
Int_t _prod6_nnodes_cut;
42
};
43
44
#endif
ToyBoxB
Definition:
ToyBoxB.hxx:13
TPCFGDMatchEffSystematics::ComputeWeight
Weight_h ComputeWeight(const ToyExperiment &, const AnaEventC &, const ToyBoxB &)
Apply the systematic.
Definition:
TPCFGDMatchEffSystematics.hxx:14
AnaRecObjectC
Definition:
CoreDataClasses.hxx:54
TPCFGDMatchEffSystematics
Definition:
TPCFGDMatchEffSystematics.hxx:7
AnaEventC
Definition:
CoreDataClasses.hxx:226
TPCFGDMatchEffSystematics::GetWeight
Weight_h GetWeight(const AnaFGDParticleB *FGDSegment, const ToyExperiment &toy)
Definition:
TPCFGDMatchEffSystematics.cxx:186
TPCFGDMatchEffSystematics::CheckTrueRecoAssociation
bool CheckTrueRecoAssociation(const AnaTrueObjectC &trueTrack, const AnaRecObjectC &track) const
Check the true-reco association.
Definition:
TPCFGDMatchEffSystematics.cxx:287
TPCFGDMatchEffSystematics::GetRelevantRecObjectGroups
Int_t GetRelevantRecObjectGroups(const SelectionBase &sel, Int_t ibranch, Int_t *IDs) const
Get the TrackGroup IDs array for this systematic.
Definition:
TPCFGDMatchEffSystematics.cxx:307
WeightType
Definition:
WeightType.hxx:6
AnaFGDParticleB
Representation of a FGD segment of a global track.
Definition:
BaseDataClasses.hxx:419
EventWeightBase
Definition:
EventWeightBase.hxx:12
AnaTrueObjectC
Definition:
CoreDataClasses.hxx:29
ToyExperiment
Definition:
ToyExperiment.hxx:14
TPCFGDMatchEffSystematics::IsRelevantRecObject
bool IsRelevantRecObject(const AnaEventC &event, const AnaRecObjectC &track) const
Is this track relevant for this systematic ?
Definition:
TPCFGDMatchEffSystematics.cxx:233
TPCFGDMatchEffSystematics::GetRelevantTrueObjectGroups
Int_t GetRelevantTrueObjectGroups(const SelectionBase &sel, Int_t ibranch, Int_t *IDs) const
Get the TrueTrackGroup IDs array for this systematic.
Definition:
TPCFGDMatchEffSystematics.cxx:347
BinnedParams
Definition:
BinnedParams.hxx:250
SelectionBase
Definition:
SelectionBase.hxx:86
Generated by
1.8.13