|
ATLAS Offline Software
|
#include <ALFA_Raw2Digit.h>
|
| ALFA_Raw2Digit (const std::string &name, ISvcLocator *pSvcLocator) |
|
StatusCode | initialize () |
|
StatusCode | execute () |
|
StatusCode | finalize () |
|
virtual StatusCode | sysInitialize () override |
| Override sysInitialize. More...
|
|
virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. More...
|
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
Definition at line 51 of file ALFA_Raw2Digit.h.
◆ StoreGateSvc_t
◆ ALFA_Raw2Digit()
ALFA_Raw2Digit::ALFA_Raw2Digit |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ChanPlot()
StatusCode ALFA_Raw2Digit::ChanPlot |
( |
uint32_t |
pot_n, |
|
|
uint32_t |
iLayer, |
|
|
uint32_t |
MarChan, |
|
|
uint32_t & |
chan_i, |
|
|
uint32_t & |
chan_j |
|
) |
| |
|
private |
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
StatusCode ALFA_Raw2Digit::execute |
( |
| ) |
|
Definition at line 174 of file ALFA_Raw2Digit.cxx.
186 if ( sc_read != StatusCode::SUCCESS ) {
187 msg(MSG::ERROR) <<
"ALFA_Raw2Digit: Could not find container" <<
endmsg;
188 return StatusCode::SUCCESS;
191 else if ( sc_read == StatusCode::SUCCESS ) {
198 if (
sc.isFailure()) {
199 msg(MSG::WARNING) <<
"ALFA_Raw2Digit: recordCollection failed" <<
endmsg;
200 return StatusCode::SUCCESS;
206 if (
sc.isFailure()) {
207 msg(MSG::WARNING) <<
"ALFA_Raw2Digit, recordODCollection failed" <<
endmsg;
208 return StatusCode::SUCCESS;
212 for (
unsigned int i=0;
i<8;
i++) {
214 for (
unsigned int j=0;j<20;j++) {
216 for (
unsigned int k=0;
k<64;
k++) {
220 for (
unsigned int k=0;
k<16;
k++) {
237 for(;RawData_Collection_Beg!=RawData_Collection_End; ++RawData_Collection_Beg)
239 m_mbID = ((*RawData_Collection_Beg)->GetMBId_POT());
255 for (
unsigned int i=0;
i<16;
i++) {
264 for(;p_RawData_Beg!=p_RawData_End; ++p_RawData_Beg)
268 if ((*p_RawData_Beg)->GetPMFId_PMF()>0 && ((*p_RawData_Beg)->GetWordId_PMF())<24)
270 m_pmfID= (*p_RawData_Beg)->GetPMFId_PMF();
276 msg(
MSG::DEBUG) <<
" pmfId = " << (*p_RawData_Beg)->GetPMFId_PMF() <<
", MBId = " << (*p_RawData_Beg)->GetMBId_PMF() <<
endmsg;
281 for (
unsigned int i=0;
i<16;
i++)
283 if ((*p_RawData_Beg)->Get_Chan(
i)!=100)
285 msg(
MSG::DEBUG) <<
"ALFA_Raw2Digit, maroc chanel # = " << (*p_RawData_Beg)->Get_Chan(
i)<<
endmsg;
287 m_fibID = (*p_RawData_Beg)->Get_Chan(
i);
381 return StatusCode::SUCCESS;
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ extraOutputDeps()
const DataObjIDColl & AthAlgorithm::extraOutputDeps |
( |
| ) |
const |
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 50 of file AthAlgorithm.cxx.
57 return Algorithm::extraOutputDeps();
◆ finalize()
StatusCode ALFA_Raw2Digit::finalize |
( |
| ) |
|
◆ initialize()
StatusCode ALFA_Raw2Digit::initialize |
( |
| ) |
|
Definition at line 61 of file ALFA_Raw2Digit.cxx.
82 for (
int k=0;
k<23;
k++)
84 for (
int i=0;
i<64;
i++)
171 return StatusCode::SUCCESS;
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ mapping()
StatusCode ALFA_Raw2Digit::mapping |
( |
| ) |
|
|
private |
Definition at line 508 of file ALFA_Raw2Digit.cxx.
522 int OD_MaPmtChan = 0;
540 for (
unsigned int j=0; j<8; j++)
560 throw std::runtime_error(
"FATAL: mapping MD maroc-mapmt not found in Datapath.");
575 for (
unsigned int i=0;
i<1280;
i++){
577 m_inChan >> iLayer >> MarChan >> MapChan >> FibChan;
579 msg(
MSG::DEBUG) <<
i <<
" maroc_mapmt_fiber, layer = " << iLayer <<
", maroc = " << MarChan <<
", map = "<< MapChan <<
", fib = " << FibChan <<
endmsg;
581 if ((MarChan < 0) || (MarChan > 63))
583 std::string
s1(
"MarChan out of range; file corrupted");
584 throw std::runtime_error(
s1);
587 if ((MapChan < 0) || (MapChan > 63))
589 std::string
s2(
"MapChan out of range; file corrupted");
590 throw std::runtime_error(
s2);
593 if ((iLayer < 0) || (iLayer > 19))
595 std::string
s2(
"Layer out of range; file corrupted");
596 throw std::runtime_error(
s2);
611 return StatusCode::FAILURE;
625 throw std::runtime_error(
"FATAL: mapping PMF_LAYER_MD not found in Datapath.");
637 for (
unsigned int i=0;
i<20;
i++)
642 if ((PMFNum < 0) || ( PMFNum > 22))
644 std::string
s3(
"PMFNum out of range; file corrupted");
645 throw std::runtime_error(
s3);
657 return StatusCode::FAILURE;
671 throw std::runtime_error(
"FATAL: mapping OD_MAP not found in Datapath.");
683 for(
unsigned int jlay=0; jlay<3; jlay++)
685 for(
unsigned int jside=0; jside<2; jside++)
687 for(
unsigned int jch=0; jch<32; jch++)
689 m_inOD >> OD_PMFNum >> OD_Dieter >> OD_LAYNum >> OD_Side >> OD_MaPmtChan >> OD_FibChan;
690 msg(
MSG::DEBUG) <<
" pmf2layer, OD_PMFNum = " << OD_PMFNum <<
", OD_Dieter = "<< OD_Dieter <<
", OD_LAYNum = " << OD_LAYNum <<
", OD_Side = " << OD_Side <<
", OD_MaPmtChan = " << OD_MaPmtChan <<
", OD_FibChan = " << OD_FibChan <<
endmsg;
692 if ((OD_PMFNum < 2) || ( OD_PMFNum > 4))
694 std::string
s4(
"OD_PMFNum out of range; file corrupted");
695 throw std::runtime_error(
s4);
698 if ((OD_MaPmtChan < 1) || ( OD_MaPmtChan > 64))
700 std::string s5(
"OD_MaPmtChan out of range; file corrupted");
701 throw std::runtime_error(s5);
711 if ((OD_LAYNum > 0) && ( OD_LAYNum < 4))
732 return StatusCode::FAILURE;
736 return StatusCode::SUCCESS;
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ recordCollection()
StatusCode ALFA_Raw2Digit::recordCollection |
( |
| ) |
|
|
private |
◆ recordODCollection()
StatusCode ALFA_Raw2Digit::recordODCollection |
( |
| ) |
|
|
private |
◆ renounce()
◆ renounceArray()
◆ sysInitialize()
StatusCode AthAlgorithm::sysInitialize |
( |
| ) |
|
|
overridevirtualinherited |
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ m_act_lay_h
TH1F* ALFA_Raw2Digit::m_act_lay_h[8] |
|
private |
◆ m_ALFA_RawDataCollectionKey
std::string ALFA_Raw2Digit::m_ALFA_RawDataCollectionKey |
|
private |
◆ m_All_Trigger
TH2I* ALFA_Raw2Digit::m_All_Trigger |
|
private |
◆ m_All_Trigger_norm
TH2D* ALFA_Raw2Digit::m_All_Trigger_norm |
|
private |
◆ m_CanName
std::string ALFA_Raw2Digit::m_CanName |
|
private |
◆ m_chan_i
uint32_t ALFA_Raw2Digit::m_chan_i |
|
private |
◆ m_chan_j
uint32_t ALFA_Raw2Digit::m_chan_j |
|
private |
◆ m_charge_1
uint16_t ALFA_Raw2Digit::m_charge_1[8] |
|
private |
◆ m_charge_2
uint16_t ALFA_Raw2Digit::m_charge_2[8] |
|
private |
◆ m_detStore
◆ m_digitCollection
◆ m_digitObject
◆ m_event_no
Int_t ALFA_Raw2Digit::m_event_no |
|
private |
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_fiber
int ALFA_Raw2Digit::m_fiber |
|
private |
◆ m_fiber_b
bool ALFA_Raw2Digit::m_fiber_b[8][20][64] |
|
private |
◆ m_fibID
int ALFA_Raw2Digit::m_fibID |
|
private |
◆ m_h_loc1
std::string ALFA_Raw2Digit::m_h_loc1 |
|
private |
◆ m_h_loc2
std::string ALFA_Raw2Digit::m_h_loc2 |
|
private |
◆ m_h_loc3
std::string ALFA_Raw2Digit::m_h_loc3 |
|
private |
◆ m_h_name1
std::string ALFA_Raw2Digit::m_h_name1 |
|
private |
◆ m_h_name2
std::string ALFA_Raw2Digit::m_h_name2 |
|
private |
◆ m_h_name3
std::string ALFA_Raw2Digit::m_h_name3 |
|
private |
◆ m_hit_counter
Int_t ALFA_Raw2Digit::m_hit_counter[8] |
|
private |
◆ m_hit_lay_h
TH1F* ALFA_Raw2Digit::m_hit_lay_h[8] |
|
private |
◆ m_inChan
std::ifstream ALFA_Raw2Digit::m_inChan |
|
private |
◆ m_inDet
std::ifstream ALFA_Raw2Digit::m_inDet |
|
private |
◆ m_inOD
std::ifstream ALFA_Raw2Digit::m_inOD |
|
private |
◆ m_inPMF
std::ifstream ALFA_Raw2Digit::m_inPMF |
|
private |
◆ m_key_DigitCollection
std::string ALFA_Raw2Digit::m_key_DigitCollection |
|
private |
◆ m_key_ODDigitCollection
std::string ALFA_Raw2Digit::m_key_ODDigitCollection |
|
private |
◆ m_layer_b
bool ALFA_Raw2Digit::m_layer_b[8][20] |
|
private |
◆ m_lumi_block
uint32_t ALFA_Raw2Digit::m_lumi_block |
|
private |
◆ m_lumi_block_old
uint32_t ALFA_Raw2Digit::m_lumi_block_old |
|
private |
◆ m_MapChan
int ALFA_Raw2Digit::m_MapChan |
|
private |
◆ m_mapmt2maroc
int ALFA_Raw2Digit::m_mapmt2maroc[8][20][64] |
|
private |
◆ m_MAPMTChan
int ALFA_Raw2Digit::m_MAPMTChan |
|
private |
◆ m_mapname
std::string ALFA_Raw2Digit::m_mapname |
|
private |
◆ m_maroc2fiber
int ALFA_Raw2Digit::m_maroc2fiber[8][20][64] |
|
private |
◆ m_maroc2mapmt
int ALFA_Raw2Digit::m_maroc2mapmt[8][20][64] |
|
private |
◆ m_mb2det
int ALFA_Raw2Digit::m_mb2det[8] |
|
private |
◆ m_mbID
int ALFA_Raw2Digit::m_mbID |
|
private |
◆ m_n_hits_lay
Int_t ALFA_Raw2Digit::m_n_hits_lay[8][20] |
|
private |
◆ m_nEvents
int ALFA_Raw2Digit::m_nEvents |
|
private |
◆ m_OD_pmf2layer
int ALFA_Raw2Digit::m_OD_pmf2layer[8][4] |
|
private |
◆ m_OD_pmf_maroc2fiber
int ALFA_Raw2Digit::m_OD_pmf_maroc2fiber[8][4][64] |
|
private |
◆ m_OD_pmf_maroc2side
int ALFA_Raw2Digit::m_OD_pmf_maroc2side[8][4][64] |
|
private |
◆ m_ODdigitCollection
◆ m_ODdigitObject
◆ m_ODfiber
int ALFA_Raw2Digit::m_ODfiber |
|
private |
◆ m_ODplate
int ALFA_Raw2Digit::m_ODplate |
|
private |
◆ m_ODpot
int ALFA_Raw2Digit::m_ODpot |
|
private |
◆ m_ODside
int ALFA_Raw2Digit::m_ODside |
|
private |
◆ m_plate
int ALFA_Raw2Digit::m_plate |
|
private |
◆ m_pmf2layer
int ALFA_Raw2Digit::m_pmf2layer[8][23] |
|
private |
◆ m_pmf_chan_hit_counter
Int_t ALFA_Raw2Digit::m_pmf_chan_hit_counter[8][23][64] |
|
private |
◆ m_pmfID
int ALFA_Raw2Digit::m_pmfID |
|
private |
◆ m_pot
int ALFA_Raw2Digit::m_pot |
|
private |
◆ m_pot_b
bool ALFA_Raw2Digit::m_pot_b[8] |
|
private |
◆ m_rootOutput
TFile* ALFA_Raw2Digit::m_rootOutput |
|
private |
◆ m_rootOutputFileName
TString ALFA_Raw2Digit::m_rootOutputFileName |
|
private |
◆ m_s
std::stringstream ALFA_Raw2Digit::m_s |
|
private |
◆ m_side
int ALFA_Raw2Digit::m_side |
|
private |
◆ m_strMeasuredDataType
std::string ALFA_Raw2Digit::m_strMeasuredDataType |
|
private |
◆ m_toFile
std::ofstream ALFA_Raw2Digit::m_toFile |
|
private |
◆ m_tree
TTree* ALFA_Raw2Digit::m_tree |
|
private |
◆ m_trigger_pattern
std::vector<bool> ALFA_Raw2Digit::m_trigger_pattern |
|
private |
◆ m_trigger_pattern_b
bool ALFA_Raw2Digit::m_trigger_pattern_b[8][16] |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_WordId_count
int ALFA_Raw2Digit::m_WordId_count |
|
private |
The documentation for this class was generated from the following files:
Const iterator class for DataVector/DataList.
int m_maroc2mapmt[8][20][64]
ALFA_ODDigitCollection * m_ODdigitCollection
static std::string find_file(const std::string &logical_file_name, const std::string &search_path, SearchType search_type=LocalSearch)
std::string m_key_DigitCollection
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
int m_maroc2fiber[8][20][64]
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
virtual void setOwner(IDataHandleHolder *o)=0
bool m_trigger_pattern_b[8][16]
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
int m_mapmt2maroc[8][20][64]
virtual StatusCode sysInitialize() override
Override sysInitialize.
std::string m_key_ODDigitCollection
std::string m_strMeasuredDataType
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
::StatusCode StatusCode
StatusCode definition for legacy code.
uint32_t m_lumi_block_old
uint32_t GetLumiBlock() const
std::string m_ALFA_RawDataCollectionKey
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
ALFA_DigitCollection * m_digitCollection
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
TH2D * m_All_Trigger_norm
value_type push_back(value_type pElem)
Add an element to the end of the collection.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
DataObjIDColl m_extendedExtraObjects
bool m_fiber_b[8][20][64]
#define ATH_MSG_WARNING(x)
This container provides acces to the PMF RDOs.
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
int m_OD_pmf_maroc2fiber[8][4][64]
Int_t m_n_hits_lay[8][20]
Int_t m_pmf_chan_hit_counter[8][23][64]
AthAlgorithm()
Default constructor:
int m_OD_pmf_maroc2side[8][4][64]
StatusCode recordCollection()
ALFA_ODDigit * m_ODdigitObject
StatusCode recordODCollection()
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
ALFA_Digit * m_digitObject