CMS 3D CMS Logo

ApvAnalysisFactory.h
Go to the documentation of this file.
1 #ifndef ApvAnalysisFactory_h
2 #define ApvAnalysisFactory_h
3 //#define DEBUG_INSTANCE_COUNTING
4 
16 #include <vector>
17 #include <iostream>
18 #include <map>
19 #include <algorithm>
20 #include <string>
21 
23 public:
24  typedef std::vector<ApvAnalysis*> ApvAnalysisVector;
25 
26  ApvAnalysisFactory(std::string theAlgorithmType,
27  int theNumCMstripsInGroup,
28  int theMaskCalcFlag,
29  float theMaskNoiseCut,
30  float theMaskDeadCut,
31  float theMaskTruncCut,
32  float theCutToAvoidSignal,
33  int theEventInitNumber,
34  int theEventIterNumber);
37 
38  bool instantiateApvs(uint32_t det_id, int numberOfApvs);
39 
40  ApvAnalysisVector getApvAnalysis(const uint32_t nDET_ID);
41 
42  void getPedestal(uint32_t det_id, int apvNumber, ApvAnalysis::PedestalType& peds);
43  void getPedestal(uint32_t det_id, ApvAnalysis::PedestalType& peds);
44  float getStripPedestal(uint32_t det_id, int stripNumber);
45 
46  void getMask(uint32_t det_id, TkApvMask::MaskType& tmp);
47  void getCommonMode(uint32_t det_id, ApvAnalysis::PedestalType& tmp);
48  std::vector<float> getCommonMode(uint32_t det_id, int apvNumber);
49 
50  void getNoise(uint32_t det_id, int apvNumber, ApvAnalysis::PedestalType& noise);
51  void getNoise(uint32_t det_id, ApvAnalysis::PedestalType& noise);
52  float getStripNoise(uint32_t det_id, int stripNumber);
53 
54  void getRawNoise(uint32_t det_id, int apvNumber, ApvAnalysis::PedestalType& noise);
55  void getRawNoise(uint32_t det_id, ApvAnalysis::PedestalType& noise);
56  float getStripRawNoise(uint32_t det_id, int stripNumber);
57 
58  void getCommonModeSlope(uint32_t det_id, ApvAnalysis::PedestalType& tmp);
59  float getCommonModeSlope(uint32_t det_id, int apvNumber);
60 
61  void update(uint32_t det_id, const edm::DetSet<SiStripRawDigi>& in);
62  void updatePair(uint32_t det_id, size_t apvPair, const edm::DetSet<SiStripRawDigi>& in);
63 
64  std::string getStatus(uint32_t det_id);
65 
66  bool isUpdating(uint32_t detId);
67 
68  typedef std::map<uint32_t, ApvAnalysisVector> ApvAnalysisMap;
69  typedef std::map<ApvAnalysis*, int> MapNumberingPosition;
70  typedef std::map<ApvAnalysis*, uint32_t> InverseMap;
71 
72 private:
73  // void constructAuxiliaryApvClasses (ApvAnalysis* thisApv);
74  void constructAuxiliaryApvClasses(ApvAnalysis* theApv, uint32_t det_id, int thisApv);
75  void deleteApv(ApvAnalysis* apv);
87  bool useDB_;
88 };
89 #endif
TT6ApvMask.h
ApvAnalysisFactory::getStripPedestal
float getStripPedestal(uint32_t det_id, int stripNumber)
Definition: ApvAnalysisFactory.cc:221
ApvAnalysisFactory::getNoise
void getNoise(uint32_t det_id, int apvNumber, ApvAnalysis::PedestalType &noise)
Definition: ApvAnalysisFactory.cc:230
ApvAnalysisFactory::apvMap_
ApvAnalysisMap apvMap_
Definition: ApvAnalysisFactory.h:76
ApvAnalysisFactory::theEventInitNumber_
int theEventInitNumber_
Definition: ApvAnalysisFactory.h:84
TkApvMask::MaskType
std::vector< StripMaskType > MaskType
Definition: TkApvMask.h:15
SimpleNoiseCalculator.h
edm::DetSet
Definition: DetSet.h:23
MedianCommonModeCalculator.h
ApvAnalysis.h
ApvAnalysisFactory::theMaskTruncCut_
float theMaskTruncCut_
Definition: ApvAnalysisFactory.h:82
TT6PedestalCalculator.h
ApvAnalysisFactory::deleteApv
void deleteApv(ApvAnalysis *apv)
Definition: ApvAnalysisFactory.cc:353
createJobs.tmp
tmp
align.sh
Definition: createJobs.py:716
ApvAnalysisFactory::getPedestal
void getPedestal(uint32_t det_id, int apvNumber, ApvAnalysis::PedestalType &peds)
Definition: ApvAnalysisFactory.cc:198
ApvAnalysisFactory::updatePair
void updatePair(uint32_t det_id, size_t apvPair, const edm::DetSet< SiStripRawDigi > &in)
Definition: ApvAnalysisFactory.cc:136
ApvAnalysisFactory::instantiateApvs
bool instantiateApvs(uint32_t det_id, int numberOfApvs)
Definition: ApvAnalysisFactory.cc:57
ApvAnalysisFactory::update
void update(uint32_t det_id, const edm::DetSet< SiStripRawDigi > &in)
Definition: ApvAnalysisFactory.cc:171
ApvAnalysisFactory
Definition: ApvAnalysisFactory.h:22
ApvAnalysisFactory::getMask
void getMask(uint32_t det_id, TkApvMask::MaskType &tmp)
Definition: ApvAnalysisFactory.cc:324
ApvAnalysisFactory::useDB_
bool useDB_
Definition: ApvAnalysisFactory.h:87
ApvAnalysisFactory::InverseMap
std::map< ApvAnalysis *, uint32_t > InverseMap
Definition: ApvAnalysisFactory.h:70
ApvAnalysisFactory::getStripNoise
float getStripNoise(uint32_t det_id, int stripNumber)
Definition: ApvAnalysisFactory.cc:241
ApvAnalysisFactory::getStripRawNoise
float getStripRawNoise(uint32_t det_id, int stripNumber)
Definition: ApvAnalysisFactory.cc:276
ApvAnalysisFactory::~ApvAnalysisFactory
~ApvAnalysisFactory()
Definition: ApvAnalysisFactory.cc:45
ApvAnalysisFactory::theAlgorithmType_
std::string theAlgorithmType_
Definition: ApvAnalysisFactory.h:77
TT6CommonModeCalculator.h
ApvAnalysisFactory::getApvAnalysis
ApvAnalysisVector getApvAnalysis(const uint32_t nDET_ID)
Definition: ApvAnalysisFactory.cc:75
ApvAnalysisFactory::theMaskNoiseCut_
float theMaskNoiseCut_
Definition: ApvAnalysisFactory.h:80
edm::ParameterSet
Definition: ParameterSet.h:47
SimplePedestalCalculator.h
recoMuon::in
Definition: RecoMuonEnumerators.h:6
ApvAnalysisFactory::getRawNoise
void getRawNoise(uint32_t det_id, int apvNumber, ApvAnalysis::PedestalType &noise)
Definition: ApvAnalysisFactory.cc:265
ApvAnalysis
Definition: ApvAnalysis.h:37
ApvAnalysisFactory::ApvAnalysisMap
std::map< uint32_t, ApvAnalysisVector > ApvAnalysisMap
Definition: ApvAnalysisFactory.h:68
gpuVertexFinder::noise
__shared__ int noise
Definition: gpuFitVertices.h:50
ApvAnalysisFactory::theCMType_
std::string theCMType_
Definition: ApvAnalysisFactory.h:86
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ApvAnalysisFactory::MapNumberingPosition
std::map< ApvAnalysis *, int > MapNumberingPosition
Definition: ApvAnalysisFactory.h:69
ApvAnalysisFactory::theCutToAvoidSignal_
float theCutToAvoidSignal_
Definition: ApvAnalysisFactory.h:83
ApvAnalysisFactory::getStatus
std::string getStatus(uint32_t det_id)
ApvAnalysisFactory::getCommonMode
void getCommonMode(uint32_t det_id, ApvAnalysis::PedestalType &tmp)
Definition: ApvAnalysisFactory.cc:311
ApvAnalysisFactory::ApvAnalysisVector
std::vector< ApvAnalysis * > ApvAnalysisVector
Definition: ApvAnalysisFactory.h:24
ApvAnalysisFactory::ApvAnalysisFactory
ApvAnalysisFactory(std::string theAlgorithmType, int theNumCMstripsInGroup, int theMaskCalcFlag, float theMaskNoiseCut, float theMaskDeadCut, float theMaskTruncCut, float theCutToAvoidSignal, int theEventInitNumber, int theEventIterNumber)
ParameterSet.h
ApvAnalysis::PedestalType
std::vector< float > PedestalType
Definition: ApvAnalysis.h:44
ApvAnalysisFactory::theMaskDeadCut_
float theMaskDeadCut_
Definition: ApvAnalysisFactory.h:81
ApvAnalysisFactory::theEventIterNumber_
int theEventIterNumber_
Definition: ApvAnalysisFactory.h:85
TkCommonMode.h
ApvAnalysisFactory::theMaskCalcFlag_
int theMaskCalcFlag_
Definition: ApvAnalysisFactory.h:79
TT6NoiseCalculator.h
ApvAnalysisFactory::isUpdating
bool isUpdating(uint32_t detId)
Definition: ApvAnalysisFactory.cc:339
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
TkStateMachine.h
ApvAnalysisFactory::theNumCMstripsInGroup_
int theNumCMstripsInGroup_
Definition: ApvAnalysisFactory.h:78
ApvAnalysisFactory::getCommonModeSlope
void getCommonModeSlope(uint32_t det_id, ApvAnalysis::PedestalType &tmp)
Definition: ApvAnalysisFactory.cc:375
ApvAnalysisFactory::constructAuxiliaryApvClasses
void constructAuxiliaryApvClasses(ApvAnalysis *theApv, uint32_t det_id, int thisApv)
Definition: ApvAnalysisFactory.cc:81