PFSubtractionStatusSetter.h 1.55 KB
Newer Older
Mark Hodgkinson's avatar
Mark Hodgkinson committed
1
2
3
4
/*                                                                                                                                                                                                                                          
  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration                                                                                                                                                                   
*/

5
6
7
#ifndef PFSUBTRACTIONSTATUSSETTER_H
#define PFSUBTRACTIONSTATUSSETTER_H

8
9
#include "AthenaBaseComps/AthMessaging.h"

10
11
12
13
14
15
#include "xAODCaloEvent/CaloCluster.h"
class eflowCaloObject;

#include <vector>
#include <utility>

16
17
18
19
/** This class contains a few functions to set the amount of energy removed from a xAOD::CaloCluster by a xAOD::Track in eflowRec.
It can either set this for a specific track attached to an eflowCaloObject or set it for all tracks in an eflowCaloObject **/

class PFSubtractionStatusSetter : public AthMessaging  {
20
21

public:
22
23
24
25
26
27
  PFSubtractionStatusSetter();

  /** Set the ratio of new to old cluster energy for each cluster matched to a track with trackIndex */
  void markSubtractionStatus(const std::vector<std::pair<xAOD::CaloCluster*, bool> >& clusterList, std::vector<float>& clusterSubtractedEnergyRatios,eflowCaloObject& thisEflowCaloObject, unsigned int trackIndex);    
  /** Set the ratio of new to old cluster energy, to zero, for all cluster matched to all tracks attached to the eflowCaloObject */
  void markAllTracksAnnihStatus(eflowCaloObject& thisEflowCaloObject);  
28
29
};
#endif