HighLAND
psyche
psycheSystematics
v3r12
src
TPCPIDSystematics.hxx
1
#ifndef TPCPIDSystematics_h
2
#define TPCPIDSystematics_h
3
4
#include "EventVariationBase.hxx"
5
#include "TPCPIDVariation.hxx"
6
7
/// This systematic smears the CT of each TPC track segment
8
class
TPCPIDSystematics
:
public
TPCPIDVariation
,
public
EventVariationBase
{
9
public
:
10
11
/// Instantiate the PID systematic. nbins is the number of
12
/// bins in the PDF
13
TPCPIDSystematics
();
14
15
virtual
~
TPCPIDSystematics
(){}
16
17
/// Apply the systematic
18
virtual
void
Apply
(
const
ToyExperiment
& toy,
AnaEventC
& event);
19
20
/// Undo the systematic variations done by ApplyVariation. This is faster tha reseting the full Spill
21
bool
UndoSystematic
(
AnaEventC
& event);
22
23
/// Get the variation for a given TPC object
24
bool
GetVariation
(
const
AnaTPCParticleB
& tpcTrack,
25
Float_t& mean_var, Float_t& sigma_var,
26
const
AnaTrackB
& track,
const
ToyExperiment
& toy);
27
28
protected
:
29
30
/// Is this track relevant for this systematic ?
31
bool
IsRelevantRecObject
(
const
AnaEventC
& event,
const
AnaRecObjectC
& track)
const
;
32
33
/// Get the TrackGroup IDs array for this systematic
34
Int_t
GetRelevantRecObjectGroups
(
const
SelectionBase
& sel, Int_t* IDs)
const
;
35
36
Int_t _offset;
37
38
/// value of psycheSystematics.Tracker.FullCorrelations parameter
39
bool
_full_correlations
;
40
41
};
42
43
#endif
TPCPIDSystematics::GetVariation
bool GetVariation(const AnaTPCParticleB &tpcTrack, Float_t &mean_var, Float_t &sigma_var, const AnaTrackB &track, const ToyExperiment &toy)
Get the variation for a given TPC object.
Definition:
TPCPIDSystematics.cxx:90
TPCPIDVariation
Definition:
TPCPIDVariation.hxx:12
EventVariationBase
Definition:
EventVariationBase.hxx:11
AnaRecObjectC
Definition:
CoreDataClasses.hxx:54
AnaEventC
Definition:
CoreDataClasses.hxx:226
TPCPIDSystematics::IsRelevantRecObject
bool IsRelevantRecObject(const AnaEventC &event, const AnaRecObjectC &track) const
Is this track relevant for this systematic ?
Definition:
TPCPIDSystematics.cxx:170
TPCPIDSystematics::TPCPIDSystematics
TPCPIDSystematics()
Definition:
TPCPIDSystematics.cxx:10
TPCPIDSystematics::GetRelevantRecObjectGroups
Int_t GetRelevantRecObjectGroups(const SelectionBase &sel, Int_t *IDs) const
Get the TrackGroup IDs array for this systematic.
Definition:
TPCPIDSystematics.cxx:190
TPCPIDSystematics::UndoSystematic
bool UndoSystematic(AnaEventC &event)
Undo the systematic variations done by ApplyVariation. This is faster tha reseting the full Spill...
Definition:
TPCPIDSystematics.cxx:66
AnaTrackB
Representation of a global track.
Definition:
BaseDataClasses.hxx:603
AnaTPCParticleB
Representation of a TPC segment of a global track.
Definition:
BaseDataClasses.hxx:360
TPCPIDSystematics::Apply
virtual void Apply(const ToyExperiment &toy, AnaEventC &event)
Apply the systematic.
Definition:
TPCPIDSystematics.cxx:46
ToyExperiment
Definition:
ToyExperiment.hxx:14
TPCPIDSystematics::_full_correlations
bool _full_correlations
value of psycheSystematics.Tracker.FullCorrelations parameter
Definition:
TPCPIDSystematics.hxx:39
TPCPIDSystematics
This systematic smears the CT of each TPC track segment.
Definition:
TPCPIDSystematics.hxx:8
SelectionBase
Definition:
SelectionBase.hxx:86
Generated by
1.8.13