CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
EcalFenixPeakFinder Class Reference

calculates the peak for Fenix strip, barrel input : 18 bits output: boolean More...

#include <EcalFenixPeakFinder.h>

Public Member Functions

 EcalFenixPeakFinder ()
 
virtual std::vector< int > process (std::vector< int > &filtout, std::vector< int > &output)
 
virtual ~EcalFenixPeakFinder ()
 

Private Member Functions

int process ()
 
int setInput (int input)
 

Private Attributes

int buffer_ [3]
 
bool disabled
 
int inputsAlreadyIn_
 

Detailed Description

calculates the peak for Fenix strip, barrel input : 18 bits output: boolean

\ class EcalFenixPeakFinder —>gets the sample where the value is max. the value is 1 for this max sample, 0 for the others .needs 3 samples to proceed. -—> do we really need caloVShape?

Definition at line 16 of file EcalFenixPeakFinder.h.

Constructor & Destructor Documentation

EcalFenixPeakFinder::EcalFenixPeakFinder ( )

Definition at line 3 of file EcalFenixPeakFinder.cc.

EcalFenixPeakFinder::~EcalFenixPeakFinder ( )
virtual

Definition at line 8 of file EcalFenixPeakFinder.cc.

8  {
9 }

Member Function Documentation

int EcalFenixPeakFinder::process ( )
private
std::vector< int > EcalFenixPeakFinder::process ( std::vector< int > &  filtout,
std::vector< int > &  output 
)
virtual

Definition at line 35 of file EcalFenixPeakFinder.cc.

References buffer_, i, inputsAlreadyIn_, convertSQLitetoXML_cfg::output, process(), and setInput().

Referenced by ConfigBuilder.ConfigBuilder::addExtraStream(), ConfigBuilder.ConfigBuilder::completeInputCommand(), ConfigBuilder.ConfigBuilder::doNotInlineEventContent(), ConfigBuilder.ConfigBuilder.PrintAllModules::leave(), ConfigBuilder.ConfigBuilder::prepare_FASTSIM(), ConfigBuilder.ConfigBuilder::prepare_HLT(), ConfigBuilder.ConfigBuilder::prepare_LHE(), ConfigBuilder.ConfigBuilder::prepare_VALIDATION(), ConfigBuilder.ConfigBuilder::renameHLTprocessInSequence(), ConfigBuilder.ConfigBuilder::renameInputTagsInSequence(), and ConfigBuilder.ConfigBuilder::scheduleSequence().

36 {
37 
38  // FIXME: 3
40  for (unsigned int i =0;i<3;i++) buffer_[i]=0;
41 
42  // std::vector<int> output;
43 
44  // attention, we have to shift by one, because the peak is found one too late
45  for (unsigned int i =0;i<filtout.size();i++){
46 
47  setInput(filtout[i]);
48  if (i>0) {
49  // int outone = process();
50  // output.push_back(outone);
51  output[i-1]= process();
52  }
53  }
54  // output.resize(filtout.size());
55 
56  return output;
57 }
int i
Definition: DBlmapReader.cc:9
int EcalFenixPeakFinder::setInput ( int  input)
private

Definition at line 11 of file EcalFenixPeakFinder.cc.

References buffer_, i, input, and inputsAlreadyIn_.

Referenced by process().

12 {
13  if(inputsAlreadyIn_<3)
14  {
17  }
18  else
19  {
20  for(int i=0; i<2; i++) buffer_[i]=buffer_[i+1];
21  buffer_[2]=input;
22  }
23  return 1;
24 }
int i
Definition: DBlmapReader.cc:9
static std::string const input
Definition: EdmProvDump.cc:44

Member Data Documentation

int EcalFenixPeakFinder::buffer_[3]
private

Definition at line 24 of file EcalFenixPeakFinder.h.

Referenced by process(), and setInput().

bool EcalFenixPeakFinder::disabled
private

Definition at line 19 of file EcalFenixPeakFinder.h.

int EcalFenixPeakFinder::inputsAlreadyIn_
private

Definition at line 23 of file EcalFenixPeakFinder.h.

Referenced by process(), and setInput().