hpstr
The Heavy Photon Search Toolkit for Reconstruction (hpstr) provides an interface to physics data from the HPS experiment saved in the LCIO format and converts it into an ROOT based format.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Private Types | Private Attributes | List of all members
SvtRawDataAnaProcessor Class Reference

#include <SvtRawDataAnaProcessor.h>

Inheritance diagram for SvtRawDataAnaProcessor:
Processor

Public Member Functions

 SvtRawDataAnaProcessor (const std::string &name, Process &process)
 
 ~SvtRawDataAnaProcessor ()
 
virtual bool process (IEvent *ievent)
 Process the event and put new data products into it.
 
virtual void initialize (TTree *tree)
 Callback for the Processor to take any necessary action when the processing of events starts, such as creating histograms.
 
virtual void sample (RawSvtHit *thisHit, std::string word, IEvent *ievent, long t, int i)
 
virtual TF1 * fourPoleFitFunction (std::string word, int caser)
 
virtual float str_to_float (std::string word)
 
float reverseEngineerTime (float ti, long t)
 
virtual void finalize ()
 Callback for the Processor to take any necessary action when the processing of events finishes, such as calculating job-summary quantities.
 
virtual void configure (const ParameterSet &parameters)
 Callback for the Processor to configure itself from the given set of parameters.
 
- Public Member Functions inherited from Processor
 Processor (const std::string &name, Process &process)
 Class constructor.
 
virtual ~Processor ()
 
virtual void initialize (std::string inFilename, std::string outFilename)
 Callback for the Processor to take any necessary action when the processing of events starts, such as initializing files.
 
virtual void setFile (TFile *outFile)
 Set output TFile for AnaProcessors.
 
virtual bool process ()
 Process the histograms and generate analysis output.
 

Private Types

typedef std::map< std::string, std::shared_ptr< RawSvtHitHistos > >::iterator reg_it
 

Private Attributes

RawSvtHitHistoshistos {nullptr}
 
std::string histCfgFilename_
 
Float_t TimeRef_
 
Float_t AmpRef_
 
ModuleMappermmapper_
 
int * adcs_
 
int doSample_
 
int readout [3] ={0,0,0}
 
float times1_ [2][4][512][3]
 
float times2_ [8][4][640][3]
 
float baseErr1_ [2][4][512][12]
 
float baseErr2_ [8][4][640][12]
 
std::vector< std::string > MatchList_
 
TTree * tree_
 
TBranch * bsvtHits_ {nullptr}
 
TBranch * bvtpBank_ {nullptr}
 
TBranch * btsBank_ {nullptr}
 
TBranch * brecoClu_ {nullptr}
 
TBranch * bPart_ {nullptr}
 
TBranch * bTrk_ {nullptr}
 
TBranch * bevH_
 
std::vector< RawSvtHit * > * svtHits_ {}
 
VTPDatavtpBank_
 
TSDatatsBank_
 
std::vector< CalCluster * > * recoClu_ {}
 
std::vector< Track * > * Trk_ {}
 
std::vector< Particle * > * Part_ {}
 
EventHeaderevH_
 
std::string anaName_ {"rawSvtHitAna"}
 
std::string svtHitColl_ {"RotatedHelicalTrackHits"}
 
std::vector< std::string > regionSelections_
 
std::map< std::string, std::shared_ptr< BaseSelector > > reg_selectors_
 
std::map< std::string, std::shared_ptr< RawSvtHitHistos > > reg_histos_
 
std::vector< std::string > regions_
 
std::string baselineFile_
 
std::string timeProfiles_
 
int tphase_ {6}
 
int debug_ {0}
 

Additional Inherited Members

- Static Public Member Functions inherited from Processor
static void declare (const std::string &classname, ProcessorMaker *)
 Internal function which is part of the ProcessorFactory machinery.
 
- Protected Attributes inherited from Processor
Processprocess_
 
TFile * outF_ {nullptr}
 
std::string name_
 

Detailed Description

Definition at line 38 of file SvtRawDataAnaProcessor.h.

Member Typedef Documentation

◆ reg_it

typedef std::map<std::string,std::shared_ptr<RawSvtHitHistos>>::iterator reg_it
private

Definition at line 106 of file SvtRawDataAnaProcessor.h.

Constructor & Destructor Documentation

◆ SvtRawDataAnaProcessor()

SvtRawDataAnaProcessor ( const std::string &  name,
Process process 
)

Definition at line 10 of file SvtRawDataAnaProcessor.cxx.

◆ ~SvtRawDataAnaProcessor()

Definition at line 14 of file SvtRawDataAnaProcessor.cxx.

Member Function Documentation

◆ configure()

void configure ( const ParameterSet parameters)
virtual

Callback for the Processor to configure itself from the given set of parameters.

Parameters
parametersParameterSet for configuration.

Reimplemented from Processor.

Definition at line 17 of file SvtRawDataAnaProcessor.cxx.

◆ finalize()

void finalize ( )
virtual

Callback for the Processor to take any necessary action when the processing of events finishes, such as calculating job-summary quantities.

Implements Processor.

Definition at line 592 of file SvtRawDataAnaProcessor.cxx.

◆ fourPoleFitFunction()

TF1 * fourPoleFitFunction ( std::string  word,
int  caser 
)
virtual

Definition at line 127 of file SvtRawDataAnaProcessor.cxx.

◆ initialize()

void initialize ( TTree *  tree)
virtual

Callback for the Processor to take any necessary action when the processing of events starts, such as creating histograms.

Parameters
tree

std::cout<<svtHits_->size()<<std::endl;

Implements Processor.

Definition at line 146 of file SvtRawDataAnaProcessor.cxx.

◆ process()

bool process ( IEvent ievent)
virtual

Process the event and put new data products into it.

Parameters
eventThe Event to process.
Returns
status of the processing, false will move to next event and skip other processes.

Implements Processor.

Definition at line 253 of file SvtRawDataAnaProcessor.cxx.

◆ reverseEngineerTime()

float reverseEngineerTime ( float  ti,
long  t 
)

◆ sample()

void sample ( RawSvtHit thisHit,
std::string  word,
IEvent ievent,
long  t,
int  i 
)
virtual

Definition at line 401 of file SvtRawDataAnaProcessor.cxx.

◆ str_to_float()

float str_to_float ( std::string  token)
virtual

THIS METHOD IS IMPLEMENTED BECAUSE C++ std:of METHOD WHICH CONVERTS STRINGS TO FLOATS IS NOT WORKING. WE NEED THIS TO READ IN OFFLINE BASELINES AND CHARACTERISTIC TIMES.

Definition at line 50 of file SvtRawDataAnaProcessor.cxx.

Member Data Documentation

◆ adcs_

int* adcs_
private

Definition at line 72 of file SvtRawDataAnaProcessor.h.

◆ AmpRef_

Float_t AmpRef_
private

Definition at line 70 of file SvtRawDataAnaProcessor.h.

◆ anaName_

std::string anaName_ {"rawSvtHitAna"}
private

Definition at line 101 of file SvtRawDataAnaProcessor.h.

◆ baseErr1_

float baseErr1_[2][4][512][12]
private

Definition at line 78 of file SvtRawDataAnaProcessor.h.

◆ baseErr2_

float baseErr2_[8][4][640][12]
private

Definition at line 79 of file SvtRawDataAnaProcessor.h.

◆ baselineFile_

std::string baselineFile_
private

Definition at line 108 of file SvtRawDataAnaProcessor.h.

◆ bevH_

TBranch* bevH_
private

Definition at line 90 of file SvtRawDataAnaProcessor.h.

◆ bPart_

TBranch* bPart_ {nullptr}
private

Definition at line 87 of file SvtRawDataAnaProcessor.h.

◆ brecoClu_

TBranch* brecoClu_ {nullptr}
private

Definition at line 86 of file SvtRawDataAnaProcessor.h.

◆ bsvtHits_

TBranch* bsvtHits_ {nullptr}
private

Definition at line 83 of file SvtRawDataAnaProcessor.h.

◆ bTrk_

TBranch* bTrk_ {nullptr}
private

Definition at line 88 of file SvtRawDataAnaProcessor.h.

◆ btsBank_

TBranch* btsBank_ {nullptr}
private

Definition at line 85 of file SvtRawDataAnaProcessor.h.

◆ bvtpBank_

TBranch* bvtpBank_ {nullptr}
private

Definition at line 84 of file SvtRawDataAnaProcessor.h.

◆ debug_

int debug_ {0}
private

Definition at line 113 of file SvtRawDataAnaProcessor.h.

◆ doSample_

int doSample_
private

Definition at line 73 of file SvtRawDataAnaProcessor.h.

◆ evH_

EventHeader* evH_
private

Definition at line 99 of file SvtRawDataAnaProcessor.h.

◆ histCfgFilename_

std::string histCfgFilename_
private

Definition at line 68 of file SvtRawDataAnaProcessor.h.

◆ histos

RawSvtHitHistos* histos {nullptr}
private

Definition at line 67 of file SvtRawDataAnaProcessor.h.

◆ MatchList_

std::vector<std::string> MatchList_
private

Definition at line 80 of file SvtRawDataAnaProcessor.h.

◆ mmapper_

ModuleMapper* mmapper_
private

Definition at line 71 of file SvtRawDataAnaProcessor.h.

◆ Part_

std::vector<Particle*>* Part_ {}
private

Definition at line 97 of file SvtRawDataAnaProcessor.h.

◆ readout

int readout[3] ={0,0,0}
private

Definition at line 74 of file SvtRawDataAnaProcessor.h.

◆ recoClu_

std::vector<CalCluster*>* recoClu_ {}
private

Definition at line 95 of file SvtRawDataAnaProcessor.h.

◆ reg_histos_

std::map<std::string,std::shared_ptr<RawSvtHitHistos> > reg_histos_
private

Definition at line 105 of file SvtRawDataAnaProcessor.h.

◆ reg_selectors_

std::map<std::string, std::shared_ptr<BaseSelector> > reg_selectors_
private

Definition at line 104 of file SvtRawDataAnaProcessor.h.

◆ regions_

std::vector<std::string> regions_
private

Definition at line 107 of file SvtRawDataAnaProcessor.h.

◆ regionSelections_

std::vector<std::string> regionSelections_
private

Definition at line 103 of file SvtRawDataAnaProcessor.h.

◆ svtHitColl_

std::string svtHitColl_ {"RotatedHelicalTrackHits"}
private

Definition at line 102 of file SvtRawDataAnaProcessor.h.

◆ svtHits_

std::vector<RawSvtHit*>* svtHits_ {}
private

Definition at line 92 of file SvtRawDataAnaProcessor.h.

◆ timeProfiles_

std::string timeProfiles_
private

Definition at line 109 of file SvtRawDataAnaProcessor.h.

◆ TimeRef_

Float_t TimeRef_
private

Definition at line 69 of file SvtRawDataAnaProcessor.h.

◆ times1_

float times1_[2][4][512][3]
private

Definition at line 76 of file SvtRawDataAnaProcessor.h.

◆ times2_

float times2_[8][4][640][3]
private

Definition at line 77 of file SvtRawDataAnaProcessor.h.

◆ tphase_

int tphase_ {6}
private

Definition at line 110 of file SvtRawDataAnaProcessor.h.

◆ tree_

TTree* tree_
private

Definition at line 82 of file SvtRawDataAnaProcessor.h.

◆ Trk_

std::vector<Track*>* Trk_ {}
private

Definition at line 96 of file SvtRawDataAnaProcessor.h.

◆ tsBank_

TSData* tsBank_
private

Definition at line 94 of file SvtRawDataAnaProcessor.h.

◆ vtpBank_

VTPData* vtpBank_
private

Definition at line 93 of file SvtRawDataAnaProcessor.h.


The documentation for this class was generated from the following files: