-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restore fed error treatment for phase0 pixel detector #26679
Merged
cmsbuild
merged 7 commits into
cms-sw:master
from
veszpv:RestoreFEDErrorTreatmentForPhase0v2
May 13, 2019
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
4b2b2c3
Disable reading bad channel collection all together for non-phase 1 d…
veszpv b927c41
Interpret FED error type 25 as bad channel only for phase 1. In case …
veszpv c8ed360
Make the class that interprets phase 1 FED errors (ErrorChecker) inhe…
veszpv 5b01a8a
Make the class that interprets phase 1 FED errors (ErrorChecker) inhe…
veszpv a79e48a
Instantiate the correct error checker: the old one when variable phas…
veszpv 37af528
Apply code-check
veszpv afe87d4
Implement requested changes
veszpv File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#ifndef ErrorCheckerBase_H | ||
#define ErrorCheckerBase_H | ||
/** \class ErrorCheckerBase | ||
* | ||
* | ||
*/ | ||
|
||
#include "DataFormats/SiPixelRawData/interface/SiPixelRawDataError.h" | ||
|
||
#include <vector> | ||
#include <map> | ||
|
||
|
||
class SiPixelFrameConverter; | ||
class SiPixelFedCabling; | ||
|
||
class ErrorCheckerBase { | ||
|
||
public: | ||
typedef cms_uint32_t Word32; | ||
typedef cms_uint64_t Word64; | ||
|
||
typedef std::vector<SiPixelRawDataError> DetErrors; | ||
typedef std::map<cms_uint32_t, DetErrors> Errors; | ||
|
||
virtual ~ErrorCheckerBase() {}; | ||
|
||
virtual void setErrorStatus(bool ErrorStatus)=0; | ||
|
||
virtual bool checkCRC(bool& errorsInEvent, int fedId, const Word64* trailer, Errors& errors)=0; | ||
|
||
virtual bool checkHeader(bool& errorsInEvent, int fedId, const Word64* header, Errors& errors)=0; | ||
|
||
virtual bool checkTrailer(bool& errorsInEvent, int fedId, unsigned int nWords, const Word64* trailer, Errors& errors)=0; | ||
|
||
virtual bool checkROC(bool& errorsInEvent, int fedId, const SiPixelFrameConverter* converter, | ||
const SiPixelFedCabling* theCablingTree, | ||
Word32& errorWord, Errors& errors)=0; | ||
|
||
|
||
|
||
virtual void conversionError(int fedId, const SiPixelFrameConverter* converter, | ||
int status, Word32& errorWord, Errors& errors)=0; | ||
|
||
private: | ||
|
||
virtual cms_uint32_t errorDetId(const SiPixelFrameConverter* converter, | ||
int errorType, const Word32 & word) const =0; | ||
|
||
}; | ||
|
||
#endif |
49 changes: 49 additions & 0 deletions
49
EventFilter/SiPixelRawToDigi/interface/ErrorCheckerPhase0.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#ifndef ErrorCheckerPhase0_H | ||
#define ErrorCheckerPhase0_H | ||
/** \class ErrorCheckerPhase0 | ||
* | ||
* | ||
*/ | ||
|
||
#include "EventFilter/SiPixelRawToDigi/interface/ErrorCheckerBase.h" | ||
#include "FWCore/Utilities/interface/typedefs.h" | ||
|
||
|
||
class ErrorCheckerPhase0 : public ErrorCheckerBase { | ||
|
||
public: | ||
typedef cms_uint32_t Word32; | ||
typedef cms_uint64_t Word64; | ||
|
||
typedef std::vector<SiPixelRawDataError> DetErrors; | ||
typedef std::map<cms_uint32_t, DetErrors> Errors; | ||
|
||
ErrorCheckerPhase0(); | ||
|
||
void setErrorStatus(bool ErrorStatus) override; | ||
|
||
bool checkCRC(bool& errorsInEvent, int fedId, const Word64* trailer, Errors& errors) override; | ||
|
||
bool checkHeader(bool& errorsInEvent, int fedId, const Word64* header, Errors& errors) override; | ||
|
||
bool checkTrailer(bool& errorsInEvent, int fedId, unsigned int nWords, const Word64* trailer, Errors& errors) override; | ||
|
||
bool checkROC(bool& errorsInEvent, int fedId, const SiPixelFrameConverter* converter, | ||
const SiPixelFedCabling* theCablingTree, | ||
Word32& errorWord, Errors& errors) override; | ||
|
||
|
||
|
||
void conversionError(int fedId, const SiPixelFrameConverter* converter, | ||
int status, Word32& errorWord, Errors& errors) override; | ||
|
||
private: | ||
|
||
bool includeErrors; | ||
|
||
cms_uint32_t errorDetId(const SiPixelFrameConverter* converter, | ||
int errorType, const Word32 & word) const override; | ||
|
||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, bad channels are there only for Phase1