13 #include <calibration/CalibrationCollectorModule.h>
14 #include <mdst/dataobjects/SoftwareTriggerResult.h>
15 #include <reconstruction/dataobjects/CDCDedxTrack.h>
16 #include <mdst/dataobjects/Track.h>
17 #include <mdst/dataobjects/TrackFitResult.h>
18 #include <framework/datastore/StoreArray.h>
20 #include <reconstruction/dbobjects/CDCDedxWireGain.h>
43 virtual void prepare()
override;
48 virtual void collect()
override;
A collector module for CDC dE/dx electron calibrations.
bool IsWire
flag to write wire number in tree
bool IsEnta
flag to write enta in tree
bool IsBhabhaEvt
flag to select bhabha event
void setEoverPCutValue(double value)
Set range for EoP cut.
bool IsRadBhabhaEvt
flag to select radee event
double m_dedx
track level information
int m_maxNumHits
module params
std::vector< int > m_wire
hit level information
std::vector< int > m_layer
continuous layer number for the hit
bool m_cuts
Electron collector variables.
StoreArray< TrackFitResult > m_trackFitResults
Required array for TrackFitResults.
std::vector< double > m_dedxhit
dE/dx for the hit
bool IsMom
flag to write momentum in treet
std::vector< double > m_doca
distance of closest approach for the hit
bool IsDocaRS
flag to write rescaled doca in tree
bool IsCosth
flag to write costh in tree
int m_nhits
number of dE/dx hits on the track
virtual void collect() override
Fill ROOT objects.
double fSetEoverP
Cut of E over P value.
StoreArray< Track > m_tracks
Required array for Tracks.
bool enableTrgSel
flag to enable trigger skim selected in the module (off deafult)
bool IsLayer
flag to write layer number in tree
bool IsRun
flag to write run number in tree
virtual void prepare() override
Create and book ROOT objects.
DBObjPtr< CDCDedxWireGain > m_DBWireGains
Wire gain DB object.
bool IsDoca
flag to write doca in tree
CDCDedxElectronCollectorModule()
Constructor: Sets the description, the properties and the parameters of the module.
double m_costh
track cos(theta)
bool IsEntaRS
flag to write rescaled enta in tree
std::vector< double > m_entaRS
rescaled entrance angle for the hit
bool IsCharge
flag to write charge in treet
int m_charge
track momentum
std::vector< double > m_enta
entrance angle for the hit
StoreArray< CDCDedxTrack > m_dedxTracks
Required array for CDCDedxTracks.
std::vector< double > m_docaRS
rescaled distance of closest approach for the hit
bool Isdedxhit
flag to write dedxhits in tree
StoreObjPtr< SoftwareTriggerResult > m_TrgResult
required input
Calibration collector module base class.
Class for accessing objects in the database.
Accessor to arrays stored in the data store.
Type-safe access to single objects in the data store.
Abstract base class for different kinds of events.