ATLAS Offline Software
Loading...
Searching...
No Matches
DumpLArRawChannels.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef DUMPLARRAWCHANNEL_H
6#define DUMPLARRAWCHANNEL_H
13
14#include "TTree.h"
15#include "GaudiKernel/ITHistSvc.h"
16
17
18//#include "LArDetDescr/LArDetDescrManager.h"
19#include <fstream>
20
22{
23 public:
24 DumpLArRawChannels(const std::string & name, ISvcLocator * pSvcLocator);
25
27
28 //standart algorithm methods
29 StatusCode initialize();
30 StatusCode execute();
31 StatusCode finalize();
32 private:
33 SG::ReadCondHandleKey<LArOnOffIdMapping> m_cablingKey {this,"keyCabling", "LArOnOffIdMap", "Input key for Id mapping"};
35 //LArRawChannelContainer* m_larChannelCont;
38 std::ofstream m_outfile;
39 std::string m_key, m_FileName;
40 private:
41
42 std::string m_ntup;
43 TTree* m_tree=nullptr;
44 int m_evt=0;
45 float m_e=0,m_t=0,m_Q=0;
46 unsigned m_gain=0;
47 unsigned m_id=0;
48 bool m_toLog;
49 bool m_toFile = false;
50
52
53 class mySort {
54 public:
55 bool operator()(const LArRawChannel* a, const LArRawChannel* b);
56 };
57};
58
59#endif
static Double_t a
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
bool operator()(const LArRawChannel *a, const LArRawChannel *b)
const LArEM_ID * m_emId
ServiceHandle< ITHistSvc > m_thistSvc
DumpLArRawChannels(const std::string &name, ISvcLocator *pSvcLocator)
const LArOnlineID * m_onlineHelper
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Helper class for LArEM offline identifiers.
Definition LArEM_ID.h:111
Liquid Argon ROD output object base class.